Created
July 17, 2014 01:02
-
-
Save yuuichi-fujioka/9550359b8afd7687ad92 to your computer and use it in GitHub Desktop.
create ubuntu base image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SUITE=${1:trusty} | |
sudo debootstrap ${SUITE} ${SUITE} | |
sed "s/suite/${SUITE}/g" sources.list | sudo tee ${SUITE}/etc/apt/sources.list | |
sudo tar -C ${SUITE} -c . | sudo docker import - ${SUITE} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deb http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ suite main | |
deb http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ suite main restricted | |
deb-src http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ suite main restricted | |
deb http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ suite-updates main restricted | |
deb-src http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ suite-updates main restricted | |
deb http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ suite universe | |
deb-src http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ suite universe | |
deb http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ suite-updates universe | |
deb-src http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ suite-updates universe | |
deb http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ suite multiverse | |
deb-src http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ suite multiverse | |
deb http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ suite-updates multiverse | |
deb-src http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ suite-updates multiverse | |
deb http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ suite-backports main restricted universe multiverse | |
deb-src http://ftp.jaist.ac.jp/pub/Linux/ubuntu/ suite-backports main restricted universe multiverse | |
deb http://security.ubuntu.com/ubuntu suite-security main restricted | |
deb-src http://security.ubuntu.com/ubuntu suite-security main restricted | |
deb http://security.ubuntu.com/ubuntu suite-security universe | |
deb-src http://security.ubuntu.com/ubuntu suite-security universe | |
deb http://security.ubuntu.com/ubuntu suite-security multiverse | |
deb-src http://security.ubuntu.com/ubuntu suite-security multiverse |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment