{"id":18258936,"url":"https://github.com/pottava/docker-singularity","last_synced_at":"2025-04-08T23:27:47.063Z","repository":{"id":147532977,"uuid":"117335521","full_name":"pottava/docker-singularity","owner":"pottava","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-15T04:47:12.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-14T18:21:01.371Z","etag":null,"topics":["docker-image","singularity"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/pottava/singularity/","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pottava.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-13T10:45:07.000Z","updated_at":"2021-12-15T04:47:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"a514a5c8-ecf4-414b-a900-15e7b8aad77c","html_url":"https://github.com/pottava/docker-singularity","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pottava%2Fdocker-singularity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pottava%2Fdocker-singularity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pottava%2Fdocker-singularity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pottava%2Fdocker-singularity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pottava","download_url":"https://codeload.github.com/pottava/docker-singularity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247945544,"owners_count":21022784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-image","singularity"],"created_at":"2024-11-05T10:35:30.346Z","updated_at":"2025-04-08T23:27:47.019Z","avatar_url":"https://github.com/pottava.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Singularity\n\nhttp://singularity.lbl.gov/\n\n[![pottava/singularity](http://dockeri.co/image/pottava/singularity)](https://hub.docker.com/r/pottava/singularity/)\n\n## Supported tags and respective `Dockerfile` links:\n\n・latest ([versions/3.9/Dockerfile](https://github.com/pottava/docker-singularity/blob/master/versions/3.9/Dockerfile))  \n・3.9 ([versions/3.9/Dockerfile](https://github.com/pottava/docker-singularity/blob/master/versions/3.9/Dockerfile))  \n・2.6 ([versions/2.6/Dockerfile](https://github.com/pottava/docker-singularity/blob/master/versions/2.6/Dockerfile))  \n\n## Usage\n\n### Test\n\n```\n$ docker run --rm pottava/singularity:3.9 --version\n$ docker run --rm -it --privileged -v $(pwd):/work pottava/singularity:3.9 bash\n```\n\n### Configure\n\nInstall docker and create a following shell script:\n\n```\n$ sudo sh -c 'cat \u003c\u003c EOF \u003e /usr/local/bin/singularity\n#!/bin/sh\ndocker run --rm -it --privileged -e UID=\\$(id -u) -e GID=\\$(id -g) \\\\\n  -v /var/run/docker.sock:/var/run/docker.sock \\\\\n  -v /etc/localtime:/etc/localtime:ro \\\\\n  -v \\$(pwd):/home/singularity -v /tmp:/tmp -w /home/singularity \\\\\n  pottava/singularity:3.9 \"\\$@\"\nEOF'\n$ sudo chmod +x /usr/local/bin/singularity\n```\n\n### Run\n\n- v3.0 \u003c= x\n\n```\n$ singularity pull --name hello.simg shub://vsoch/hello-world\n$ sudo singularity run hello.simg\n$ sudo singularity exec hello.simg ls\n$ sudo singularity shell hello.simg\n```\n\n- v2.4 \u003c= x \u003c v3.0\n\n```\n$ singularity pull --name hello.simg shub://vsoch/hello-world\n$ singularity run hello.simg\n$ singularity exec hello.simg ls\n$ singularity shell hello.simg\n```\n\n- \u003c v2.3\n\n```\n$ docker run --rm -it --privileged -v $(pwd):/tmp \\\n    --entrypoint sh pottava/singularity:2.3 -c \\\n    \"singularity create --size 100 alpine.simg \u0026\u0026 cp /work/alpine.simg /tmp/\"\n$ singularity import alpine.simg docker://alpine:3.7\n$ singularity exec alpine.simg cat /etc/os-release\n$ singularity shell alpine.simg\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpottava%2Fdocker-singularity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpottava%2Fdocker-singularity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpottava%2Fdocker-singularity/lists"}