officialのubuntu-14.04のイメージサイズが276.1MBと大きかったので
常用するために小さいイメージを用意した。
- イメージ化するときにサイズを小さくするための一連のコマンドを用意した。
apt-clean
todo: ミラーサイトを ubuntutym.u-toyama.ac.jp にしたい
追加パッケージ
- vim-tiny
- dialog
使い方
90.56MB
docker run -it tukiyo3/ubuntu-bootstrap-ja:14.04 /bin/bash
126.6MB
docker run -it tukiyo3/ubuntu-bootstrap-ja:14.10 /bin/bash
2014-12-27作成
docker run -it tukiyo3/ubuntu-bootstrap-base /bin/bash
作成手順
docker run -it ubuntu-bootstrap:14.04 /bin/bash
作り方
unlink /etc/localtime
ln -s /usr/share/zoneinfo/Japan /etc/localtime
cp -a .bashrc /.bashrc
cp -a sources.list /etc/apt/
locale-gen ja_JP.UTF-8
apt-get update -qq
apt-get install -y vim-tiny dialog
mv /etc/apt/sources.list /etc/apt/sources.list.bak
apt-get clean
apt-get update
mv /etc/apt/sources.list.bak /etc/apt/sources.list
ファイル
sources.list
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty main restricted
#deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-updates main restricted
#deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty universe
#deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty universe
deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-updates universe
#deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-updates universe
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-backports main restricted
# deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-backports main restricted
deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-security main restricted
#deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-security main restricted
deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-security universe
#deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-security universe
# deb http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-security multiverse
# deb-src http://ubuntutym.u-toyama.ac.jp/ubuntu/ trusty-security multiverse
.bashrc
export LANG=ja_JP.UTF-8
apt-clean() {
mv /etc/apt/sources.list{,.bak}
apt-get clean
apt-get update
mv /etc/apt/sources.list{.bak,}
}