Sign inSign up

pottava/singularity

By pottava

Updated almost 5 years ago

Singularity images based on Alpine Linux.

Image
1

2.4K

pottava/singularity repository overview

Singularity

http://singularity.lbl.gov/

pottava/singularity

・latest (versions/3.2/Dockerfile)
・3.2 (versions/3.2/Dockerfile)
・2.6 (versions/2.6/Dockerfile)

Usage

Test
$ docker run --rm pottava/singularity:3.2 --version
$ docker run --rm -it --privileged -v $(pwd):/work pottava/singularity:3.2 sh
Configure

Install docker and create a following shell script:

$ sudo sh -c 'cat << EOF > /usr/local/bin/singularity
#!/bin/sh
docker run --rm -it --privileged -e UID=\$(id -u) -e GID=\$(id -g) \\
  -v /var/run/docker.sock:/var/run/docker.sock \\
  -v \$(pwd):/home/singularity -v /tmp:/tmp -w /home/singularity \\
  pottava/singularity:3.2 "\$@"
EOF'
$ sudo chmod +x /usr/local/bin/singularity
Run
  • v3.0 <= x
$ singularity pull --name hello.simg shub://vsoch/hello-world
$ sudo singularity run hello.simg
$ sudo singularity exec hello.simg ls
$ sudo singularity shell hello.simg
  • v2.4 <= x < v3.0
$ singularity pull --name hello.simg shub://vsoch/hello-world
$ singularity run hello.simg
$ singularity exec hello.simg ls
$ singularity shell hello.simg
  • < v2.3
$ docker run --rm -it --privileged -v $(pwd):/tmp \
    --entrypoint sh pottava/singularity:2.3 -c \
    "singularity create --size 100 alpine.simg && cp /work/alpine.simg /tmp/"
$ singularity import alpine.simg docker://alpine:3.7
$ singularity exec alpine.simg cat /etc/os-release
$ singularity shell alpine.simg

Tag summary

Content type

Image

Digest

Size

61.4 MB

Last updated

over 7 years ago

docker pull pottava/singularity