SlideShare a Scribd company logo
SINGULARITYCONTAINERS FOR SCIENTIFIC COMPUTE
Vanessa Sochat, PhD
Research Software Engineer
Research Computing
Stanford School of Medicine
DOCKER...
SINGULARITY: CONTAINERS FOR HPC
SINGULARITY: CONTAINERS FOR HPC
Scientists need containers too.
SINGULARITY: CONTAINERS FOR HPC
SINGULARITY: CONTAINERS FOR HPC
LIFE’S
WORK
Why do we use them?
SINGULARITY: CONTAINERS FOR HPC
- Science is founded on reproducibility of work
- Different environments require mobility of compute
- Running a thing many times → scalability
- Please, let’s not go to isolation / dependency hell
HELLO, SINGULARITY!
SINGULARITY: CONTAINERS FOR HPC
The problems Singularity solves
SINGULARITY: CONTAINERS FOR HPC
Reproducibility and archive of software and environments
A container is a file. It’s portable and sharable.
Integration with traditional HPC
The user inside the container is the user outside
Singularity, integrate!
SINGULARITY: CONTAINERS FOR HPC
You can import from a Docker image, a tarball, mirror url
Add to an import using bootstrap
Automatically do the above with Singularity Hub a la Github
SINGULARITY: CONTAINERS FOR HPC
SINGULARITY: CONTAINERS FOR HPC
./container.img
https://www.singularity-hub.org
SINGULARITY HUB: CONTAINER REGISTRY
https://www.singularity-hub.org
SINGULARITY HUB: CONTAINER COLLECTIONS
github repo
https://www.singularity-hub.org
SINGULARITY HUB: CONTAINER COLLECTIONS
github repo
Bootstrap: docker
From: ubuntu:14.04
https://www.singularity-hub.org
SINGULARITY HUB: CONTAINER COLLECTION
push
https://www.singularity-hub.org
SINGULARITY HUB: CONTAINER BUILD
https://www.singularity-hub.org
SINGULARITY HUB: CONTAINER OPERATING SYSTEM
https://www.singularity-hub.org
SINGULARITY HUB: CONTAINER USAGE COMMANDS
https://www.singularity-hub.org
SINGULARITY HUB: CONTAINER BUILD LOG
SINGULARITY HUB: BUILD INFRASTRUCTURE
https://www.singularity-hub.org
SINGULARITY HUB: BUILD INFRASTRUCTURE
https://www.singularity-hub.org
module load singularity/jan2017master
singularity pull shub://vsoch/analysis
singularity shell shub://vsoch/analysis
singularity run shub://vsoch/analysis
singularity exec shub://vsoch/analysis
SINGULARITY HUB: THE BUILD SPECIFICATION
Singularity
sudo singularity create analysis.img
sudo singularity bootstrap analysis.img Singularity
Bootstrap: docker
From: python:latest
SINGULARITY HUB: THE BUILD SPECIFICATION
Singularity
sudo singularity create analysis.img
sudo singularity bootstrap analysis.img Singularity
Bootstrap: docker
From: python:latest
%post
echo “This is just run once after bootstrap!”
echo “Install and add stuff here!”
apt-get update
apt-get install -y vim wget
SINGULARITY HUB: THE BUILD SPECIFICATION
Singularity
sudo singularity create analysis.img
sudo singularity bootstrap analysis.img Singularity
Bootstrap: docker
From: python:latest
%post
echo “This is just run once after bootstrap!”
echo “Install and add stuff here!”
apt-get update
apt-get install -y vim wget
%runscript
exec /usr/bin/python “$@”
How to get started?
SINGULARITY: GETTING STARTED
module load singularity/jan2017master
singularity shell docker://python:latest 1. Try it out.
How to get started?
SINGULARITY: GETTING STARTED
module load singularity/jan2017master
singularity shell docker://python:latest
Bootstrap: docker
From:python:latest
1. Try it out.
2. Make your own image
a. Docker hub
b. Singularity build file
How to get started?
SINGULARITY: GETTING STARTED
module load singularity/jan2017master
singularity shell docker://python:latest
Bootstrap: docker
From:python:latest
1. Try it out.
2. Make your own image
a. Docker hub
b. Singularity build file
sudo singularity create ubuntu.img
sudo singularity bootstrap docker://python:latest
How to get started?
SINGULARITY: GETTING STARTED
module load singularity/jan2017master
singularity shell docker://python:latest
Bootstrap: docker
From:python:latest
1. Try it out.
2. Make your own image
a. Docker hub
b. Singularity build file
https://www.singularity-hub.org
sudo singularity create ubuntu.img
sudo singularity bootstrap docker://python:latest
HPC Admin, Developers, and Scientists
SINGULARITY: CONTAINERS FOR HPC
SINGULARITY: CONTAINERS FOR HPC
https://singularity.lbl.gov
SINGULARITY: CONTAINERS FOR HPC
http://singularity.lbl.gov/singularity-tutorial
SINGULARITY: CONTAINERS FOR HPC
vsochat@stanford.edu

More Related Content

PDF
Puppet Camp Seattle 2014: Docker and Puppet: 1+1=3
PDF
ぼくがかんがえたさいきょうのクリーンアーキテクチャ部分適応
PDF
Collecting Photo Stream in Node.js on Heroku
PDF
ブログをいっぱい書いていたら色々とうまくいった話
PPTX
Jenkins X on AKS
PDF
Docker and Puppet — Puppet Camp L.A. — SCALE12X
PDF
OSDC 2019 | Virtualisation in Docker, using KVM as Hypervisor by Kososochukwu...
PDF
Alfresco Day Roma 2015: Infrastructure as Code with Chef-Alfresco
Puppet Camp Seattle 2014: Docker and Puppet: 1+1=3
ぼくがかんがえたさいきょうのクリーンアーキテクチャ部分適応
Collecting Photo Stream in Node.js on Heroku
ブログをいっぱい書いていたら色々とうまくいった話
Jenkins X on AKS
Docker and Puppet — Puppet Camp L.A. — SCALE12X
OSDC 2019 | Virtualisation in Docker, using KVM as Hypervisor by Kososochukwu...
Alfresco Day Roma 2015: Infrastructure as Code with Chef-Alfresco

What's hot (7)

PDF
Cloud expo-east-2015
PDF
Windows Azure Mobile Services
PPTX
Austin - Container Days - Docker 101
PDF
Infrastructure as code with Puppet and Apache CloudStack
PPTX
Git, gitHub, Azure and Visual Studio
PDF
Dockerizing Meteor - 6th Meteor Meetup Seoul
PDF
Docker tutorial2
Cloud expo-east-2015
Windows Azure Mobile Services
Austin - Container Days - Docker 101
Infrastructure as code with Puppet and Apache CloudStack
Git, gitHub, Azure and Visual Studio
Dockerizing Meteor - 6th Meteor Meetup Seoul
Docker tutorial2
Ad

Similar to Singularity Containers for Scientific Compute (20)

PDF
Using Docker with Puppet - PuppetConf 2014
PPTX
Introduction to Singularity and Data Containers
PDF
Containers for Science and High-Performance Computing
PDF
Introduction to High-Performance Computing (HPC) Containers and Singularity*
ODP
5 minute intro to virtualenv
PPTX
Docker Starter Pack
PDF
Using Docker to build and test in your laptop and Jenkins
PPTX
Introduction to JIB and Google Cloud Run
PDF
PDXPortland - Dockerize Django
PDF
Docker 102 - Immutable Infrastructure
PPTX
The Tale of a Docker-based Continuous Delivery Pipeline by Rafe Colton (ModCl...
PDF
Dockercon EU 2014
PPTX
Vagrant crash course
PDF
Containerization Is More than the New Virtualization
PPTX
Docker 101
PDF
EclipseCon 2016 - OCCIware : one Cloud API to rule them all
PDF
OCCIware Project at EclipseCon France 2016, by Marc Dutoo, Open Wide
PDF
Introduction to Docker and deployment and Azure
PPTX
MongoDB Ops Manager and Kubernetes - James Broadhead
Using Docker with Puppet - PuppetConf 2014
Introduction to Singularity and Data Containers
Containers for Science and High-Performance Computing
Introduction to High-Performance Computing (HPC) Containers and Singularity*
5 minute intro to virtualenv
Docker Starter Pack
Using Docker to build and test in your laptop and Jenkins
Introduction to JIB and Google Cloud Run
PDXPortland - Dockerize Django
Docker 102 - Immutable Infrastructure
The Tale of a Docker-based Continuous Delivery Pipeline by Rafe Colton (ModCl...
Dockercon EU 2014
Vagrant crash course
Containerization Is More than the New Virtualization
Docker 101
EclipseCon 2016 - OCCIware : one Cloud API to rule them all
OCCIware Project at EclipseCon France 2016, by Marc Dutoo, Open Wide
Introduction to Docker and deployment and Azure
MongoDB Ops Manager and Kubernetes - James Broadhead
Ad

More from Vanessa S (20)

PDF
The Stories We Tell Ourselves
PDF
Singularity Registry HPC
PPTX
Research Software Engineering at Stanford University
PPTX
Research Software Engineering at Stanford
PPTX
Adding An Operator to Airflow: A Contributor Overflow Exception
PPTX
The Research Software Encyclopedia
PDF
The Scientific Filesystem
PPTX
Laboratory of NeuroGenetics QA (8/2010)
PDF
PEARC17: Reproducibility and Containers: The Perfect Sandwich
PPTX
Building Tools for Neuroimaging
PPTX
Brain Maps like Mine
PPTX
Qualifying Exam Presentation
PDF
Pre-Proposal Presentation
PDF
Independent component analysis
PDF
Subnetworks in Schizophrenia, fMRI
PPTX
Research in Progress April 2014
PDF
Research in Progress Presentation
PDF
Introduction to Machine Learning Lecture
PDF
Introduction to Neuroimaging Informatics
PDF
ISIS Clustering Functional Connectivity
The Stories We Tell Ourselves
Singularity Registry HPC
Research Software Engineering at Stanford University
Research Software Engineering at Stanford
Adding An Operator to Airflow: A Contributor Overflow Exception
The Research Software Encyclopedia
The Scientific Filesystem
Laboratory of NeuroGenetics QA (8/2010)
PEARC17: Reproducibility and Containers: The Perfect Sandwich
Building Tools for Neuroimaging
Brain Maps like Mine
Qualifying Exam Presentation
Pre-Proposal Presentation
Independent component analysis
Subnetworks in Schizophrenia, fMRI
Research in Progress April 2014
Research in Progress Presentation
Introduction to Machine Learning Lecture
Introduction to Neuroimaging Informatics
ISIS Clustering Functional Connectivity

Recently uploaded (20)

PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Approach and Philosophy of On baking technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Machine learning based COVID-19 study performance prediction
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
1. Introduction to Computer Programming.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Mushroom cultivation and it's methods.pdf
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Spectral efficient network and resource selection model in 5G networks
Univ-Connecticut-ChatGPT-Presentaion.pdf
NewMind AI Weekly Chronicles - August'25-Week II
Network Security Unit 5.pdf for BCA BBA.
Group 1 Presentation -Planning and Decision Making .pptx
Spectroscopy.pptx food analysis technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Approach and Philosophy of On baking technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Programs and apps: productivity, graphics, security and other tools
Machine learning based COVID-19 study performance prediction
Assigned Numbers - 2025 - Bluetooth® Document
1. Introduction to Computer Programming.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Mushroom cultivation and it's methods.pdf
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Empathic Computing: Creating Shared Understanding
Per capita expenditure prediction using model stacking based on satellite ima...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

Singularity Containers for Scientific Compute