@@ -8,32 +8,28 @@ The Singularity source code contains several example definition files in the `/e
88```
99$ mkdir ../lolcow
1010
11- $ cp examples/ubuntu /Singularity ../lolcow/
11+ $ cp examples/debian /Singularity ../lolcow/
1212
1313$ cd ../lolcow
1414
1515$ nano Singularity
1616```
1717
18- Edit it until it looks like this:
18+ It should look like this:
1919
2020```
2121BootStrap: debootstrap
22- OSVersion: xenial
23- MirrorURL: http://us.archive.ubuntu.com/ubuntu/
24-
22+ OSVersion: stable
23+ MirrorURL: http://ftp.us.debian.org/debian/
2524
2625%runscript
2726 echo "This is what happens when you run the container..."
2827
29-
3028%post
3129 echo "Hello from inside the container"
32- sed -i 's/$/ universe/' /etc/apt/sources.list
3330 apt-get update
3431 apt-get -y install vim
3532 apt-get clean
36-
3733```
3834
3935See the [ Singularity docs] ( http://singularity.lbl.gov/docs-recipes ) for an explanation of each of these sections.
@@ -64,19 +60,17 @@ Depending on the environment on your host system you may see your prompt change.
6460
6561```
6662Singularity lolcow:~> cat /etc/os-release
67- NAME="Ubuntu"
68- VERSION="16.04 LTS (Xenial Xerus)"
69- ID=ubuntu
70- ID_LIKE=debian
71- PRETTY_NAME="Ubuntu 16.04 LTS"
72- VERSION_ID="16.04"
73- HOME_URL="http://www.ubuntu.com/"
74- SUPPORT_URL="http://help.ubuntu.com/"
75- BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
76- UBUNTU_CODENAME=xenial
63+ PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
64+ NAME="Debian GNU/Linux"
65+ VERSION_ID="9"
66+ VERSION="9 (stretch)"
67+ ID=debian
68+ HOME_URL="https://www.debian.org/"
69+ SUPPORT_URL="https://www.debian.org/support"
70+ BUG_REPORT_URL="https://bugs.debian.org/"
7771```
7872
79- No matter what OS is running on your host, your container is running Ubuntu 16.04 !
73+ No matter what OS is running on your host, your container is running Debian Stable !
8074
8175Let's try a few more commands:
8276
@@ -190,17 +184,14 @@ Here is what our updated definition file should look like.
190184
191185```
192186BootStrap: debootstrap
193- OSVersion: xenial
194- MirrorURL: http://us.archive.ubuntu.com/ubuntu/
195-
187+ OSVersion: stable
188+ MirrorURL: http://ftp.us.debian.org/debian/
196189
197190%runscript
198191 echo "This is what happens when you run the container..."
199192
200-
201193%post
202194 echo "Hello from inside the container"
203- sed -i 's/$/ universe/' /etc/apt/sources.list
204195 apt-get update
205196 apt-get -y install fortune cowsay lolcat
206197 apt-get clean
@@ -223,17 +214,14 @@ Singularity stores a lot of [useful metadata](http://singularity.lbl.gov/docs-en
223214```
224215$ singularity inspect --deffile lolcow.simg
225216BootStrap: debootstrap
226- OSVersion: xenial
227- MirrorURL: http://us.archive.ubuntu.com/ubuntu/
228-
217+ OSVersion: stable
218+ MirrorURL: http://ftp.us.debian.org/debian/
229219
230220%runscript
231221 echo "This is what happens when you run the container..."
232222
233-
234223%post
235224 echo "Hello from inside the container"
236- sed -i 's/$/ universe/' /etc/apt/sources.list
237225 apt-get update
238226 apt-get -y install fortune cowsay lolcat
239227 apt-get clean
0 commit comments