Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save truatpasteurdotfr/196074c32b51fc75c0801697537b2419 to your computer and use it in GitHub Desktop.
Save truatpasteurdotfr/196074c32b51fc75c0801697537b2419 to your computer and use it in GitHub Desktop.
vagrant for centos7 cookbook
$ vagrant init centos/7
$ vagrant ssh
[vagrant@localhost ~]$ sudo yum -y update
...
[vagrant@localhost ~]$ reboot
$ vagrant ssh
[vagrant@localhost ~ ]$ sudo yum -y install gcc make automake autoconf binutils git rpm-build libtool
[vagrant@localhost ~ ]$ git clone https://github.com/gmkurtzer/singularity.git
[vagrant@localhost ~ ]$ cd singularity
[vagrant@localhost singularity]$ ./autogen.sh
[vagrant@localhost singularity]$ ./configure
[vagrant@localhost singularity]$ make dist
[vagrant@localhost singularity]$ rpmbuild -ta singularity-2.2.tar.gz
[vagrant@localhost singularity]$ sudo rpm -ivh /home/vagrant/rpmbuild/RPMS/x86_64/singularity-2.2-0.1.el7.centos.x86_64.rpm
[vagrant@localhost singularity]$ sudo singularity create bb.img
[vagrant@localhost singularity]$ sudo singularity bootstrap bb.img examples/busybox.def
[vagrant@localhost singularity]$ ./bb.img
No Singularity runscript found, executing /bin/sh
Singularity.bb.img> ~ $ df /
Filesystem 1K-blocks Used Available Use% Mounted on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment