{"id":22747996,"url":"https://github.com/githubfoam/singularity-sandbox","last_synced_at":"2026-02-11T18:03:36.792Z","repository":{"id":58700453,"uuid":"128387262","full_name":"githubfoam/singularity-sandbox","owner":"githubfoam","description":"cross-platform singularity","archived":false,"fork":false,"pushed_at":"2019-08-01T19:09:07.000Z","size":22,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-23T09:07:28.028Z","etag":null,"topics":["container","cross-platform","singularity"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/githubfoam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-06T11:38:56.000Z","updated_at":"2020-06-25T18:06:56.000Z","dependencies_parsed_at":"2022-09-06T15:11:59.691Z","dependency_job_id":null,"html_url":"https://github.com/githubfoam/singularity-sandbox","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/githubfoam/singularity-sandbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fsingularity-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fsingularity-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fsingularity-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fsingularity-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/githubfoam","download_url":"https://codeload.github.com/githubfoam/singularity-sandbox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fsingularity-sandbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271746302,"owners_count":24813556,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["container","cross-platform","singularity"],"created_at":"2024-12-11T03:18:57.626Z","updated_at":"2026-02-11T18:03:31.754Z","avatar_url":"https://github.com/githubfoam.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# singularity sandbox\n~~~~\nCross-platform Singularity \n\nHost:Windows 10 / OpenSUSE / Centos   \nVagrant VM guest : Centos / Ubuntu   \n\nDownload Vagrant https://www.vagrantup.com/downloads.html\n\nDownload Oracle VM Virtualbox https://www.virtualbox.org/wiki/Downloads\n\n\"Ansible_Local\" Provisioning https://www.vagrantup.com/docs/provisioning/ansible_local.html\n\nSingularity  https://sylabs.io/docs/\nExamples https://github.com/sylabs/singularity/tree/master/examples\nhttps://singularity-tutorial.github.io/\n\n~~~~\n~~~~\n$ singularity --version\n2.6.1-dist\n$ singularity test\n~~~~\n~~~~\n$ sudo singularity build lolcow.sif docker://godlovedc/lolcow\n\n$ sudo singularity run docker://godlovedc/lolcow\nDocker image path: index.docker.io/godlovedc/lolcow:latest\nCache folder set to /root/.singularity/docker\n[6/6] |===================================| 100.0%\nCreating container runtime...\nExploding layer: sha256:9fb6c798fa41e509b58bccc5c29654c3ff4648b608f5daa67c1aab6a7d02c118.tar.gz\nExploding layer: sha256:3b61febd4aefe982e0cb9c696d415137384d1a01052b50a85aae46439e15e49a.tar.gz\nExploding layer: sha256:9d99b9777eb02b8943c0e72d7a7baec5c782f8fd976825c9d3fb48b3101aacc2.tar.gz\nExploding layer: sha256:d010c8cf75d7eb5d2504d5ffa0d19696e8d745a457dd8d28ec6dd41d3763617e.tar.gz\nExploding layer: sha256:7fac07fb303e0589b9c23e6f49d5dc1ff9d6f3c8c88cabe768b430bdb47f03a9.tar.gz\nExploding layer: sha256:8e860504ff1ee5dc7953672d128ce1e4aa4d8e3716eb39fe710b849c64b20945.tar.gz\nExploding layer: sha256:736a219344fbca3099ce5bd1d2dbfea74b22b830bac0e85ecca812c2983390cd.tar.gz\n _________________________________________\n/ Conscience doth make cowards of us all. \\\n|                                         |\n\\ -- Shakespeare                          /\n -----------------------------------------\n        \\   ^__^\n         \\  (oo)\\_______\n            (__)\\       )\\/\\\n                ||----w |\n                ||     ||\n~~~~\nCreate an Empty Container\n~~~~\n$ sudo singularity image.create -s 4096 centos7.img\nCreating empty 4096MiB image file: centos7.img\nFormatting image with ext3 file system\nImage is done: centos7.img\n\n$ sudo singularity image.create -s 4096 ubuntu.img\nCreating empty 4096MiB image file: ubuntu.img\nFormatting image with ext3 file system\nImage is done: ubuntu.img\n~~~~\nBootstrapping a Singularity Container\n~~~~\n$ sudo singularity bootstrap ./ubuntu-1.img /vagrant/definitions/ubuntu.def\n$ sudo singularity inspect --deffile ubuntu-1.img\nBootstrap: docker\nFrom: ubuntu:latest\n\n%runscript\nexec echo \"The runscript is the containers default runtime command!\"\n\n%files\n/home/vagrant/ubuntu.def /data/ubuntu.def\n%environment\nVARIABLE=HELLOWORLD\nExport VARIABLE\n\n%labels\nAUTHOR githubfoam\n\n%post\napt-get update \u0026\u0026 apt-get -y install python3 git wget\nmkdir /data\necho \"The post section is where you can install and configure your container.\"\n\n~~~~\n\n~~~~\n$ hostnamectl\n   Static hostname: control01\n         Icon name: computer-vm\n           Chassis: vm\n        Machine ID: 87877ae844c24636a27af6b5969497c9\n           Boot ID: 5182c1c54a2a4004bba348c8809dc916\n    Virtualization: oracle\n  Operating System: Ubuntu 18.10\n            Kernel: Linux 4.18.0-10-generic\n      Architecture: x86-64\n\n      $ cat Singularity.scientific\n      BootStrap: yum\n      OSVersion: 7\n      MirrorURL: http://ftp.scientificlinux.org/linux/scientific/%{OSVERSION}x/$basearch/os/\n      Include: yum\n\n\n      %runscript\n          echo \"This is what happens when you run the container...\"\n\n\n      %post\n          echo \"Hello from inside the container\"\n          yum -y install vim-minimal\n\n      $ sudo singularity build --sandbox centos7 Singularity.scientific\n      Building into existing container: centos7\n      Using container recipe deffile: Singularity.scientific\n      tar: ./.singularity.d/env/95-apps.sh: file changed as we read it\n      tar: ./.singularity.d/env: file changed as we read it\n      tar: ./.singularity.d: file changed as we read it\n      tar: .: file changed as we read it\n      Sanitizing environment\n      Adding base Singularity environment to container\n      ERROR: Neither yum nor dnf in PATH!\n      ABORT: Aborting with RETVAL=1\n      Cleaning up...\n~~~~\n~~~~\n$ hostnamectl\n   Static hostname: control01\n         Icon name: computer-vm\n           Chassis: vm\n        Machine ID: 87877ae844c24636a27af6b5969497c9\n           Boot ID: 5182c1c54a2a4004bba348c8809dc916\n    Virtualization: oracle\n  Operating System: Ubuntu 18.10\n            Kernel: Linux 4.18.0-10-generic\n      Architecture: x86-64\n\n      $ cat Singularity.bionic\n      BootStrap: debootstrap\n      OSVersion: bionic\n      MirrorURL: http://us.archive.ubuntu.com/ubuntu/\n\n\n      %runscript\n          echo \"This is what happens when you run the container...\"\n\n\n      %post\n          echo \"Hello from inside the container\"\n          apt-get update\n          apt-get clean\n\n$ sudo singularity build --sandbox bionic.sandbox Singularity.bionic\n$ ls\nbionic.sandbox  Singularity.bionic\n$ sudo singularity shell bionic.sandbox\nSingularity: Invoking an interactive shell within container...\n\nSingularity bionic.sandbox:~\u003e ls /\nbin  boot  dev  environment  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  singularity  srv  sys  tmp  usr  var\n\nSingularity bionic.sandbox:~\u003e cat /etc/os-release\nNAME=\"Ubuntu\"\nVERSION=\"18.04 LTS (Bionic Beaver)\"\nID=ubuntu\nID_LIKE=debian\nPRETTY_NAME=\"Ubuntu 18.04 LTS\"\nVERSION_ID=\"18.04\"\nHOME_URL=\"https://www.ubuntu.com/\"\nSUPPORT_URL=\"https://help.ubuntu.com/\"\nBUG_REPORT_URL=\"https://bugs.launchpad.net/ubuntu/\"\nPRIVACY_POLICY_URL=\"https://www.ubuntu.com/legal/terms-and-policies/privacy-policy\"\nVERSION_CODENAME=bionic\nUBUNTU_CODENAME=bionic\n\nSingularity bionic.sandbox:~\u003e whoami\nroot\n$ singularity shell bionic.sandbox\nSingularity: Invoking an interactive shell within container...\n\nSingularity bionic.sandbox:~/test1\u003e whoami\nvagrant\nSingularity bionic.sandbox:~/test1\u003e sudo apt-get update \u0026\u0026 sudo apt-get -y install\nbash: sudo: command not found\n\n$ sudo singularity shell --writable bionic.sandbox\nSingularity: Invoking an interactive shell within container...\n\nSingularity bionic.sandbox:~\u003e\n$ singularity shell --writable bionic.sandbox/\nSingularity: Invoking an interactive shell within container...\n\nSingularity bionic.sandbox:~/test1\u003e\n$ cat Singularity.bionic\nBootStrap: debootstrap\nOSVersion: bionic\nMirrorURL: http://us.archive.ubuntu.com/ubuntu/\n\n\n%runscript\n    echo \"This is what happens when you run the container...\"\n\n\n%post\n        echo \"Hello from inside the container\"\n        apt-get update\n        # NEW UPDATES\n        sed -i 's/$/ universe/' /etc/apt/sources.list\n        apt-get update\n        apt-get -y install vim fortune cowsay lolcat\n        apt-get clean\n\n~~~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubfoam%2Fsingularity-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithubfoam%2Fsingularity-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubfoam%2Fsingularity-sandbox/lists"}