Last active
December 24, 2016 06:49
-
-
Save nikukyugamer/543ed67a410a60d1c17650d19b35b7ed to your computer and use it in GitHub Desktop.
my Ubuntu docker creation template
This file contains 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 | |
# create container | |
docker run -it --name hogehoge_app --hostname app -p 12345:80 -v foo:bar ubuntu /bin/bash | |
# make environment | |
apt-get update | |
apt-get upgrade -y | |
apt-get install -y language-pack-ja-base language-pack-ja | |
update-locale LANG=ja_JP.UTF-8 LANGUAGE=ja_JP:ja | |
export LANG=ja_JP.UTF-8 # .bashrc に書いたほうがいい(以下同じ) | |
export LC_ALL=ja_JP.UTF-8 | |
export LC_CTYPE=ja_JP.UTF-8 | |
dpkg-reconfigure tzdata #=> 6, 76 (Asia/Tokyo) | |
# base app (partly) | |
apt-get install -y manpages-ja manpages-ja-dev build-essential apache2 sqlite3 libsqlite3-dev php software-properties-common wget curl zip unzip git php-dev php-curl php-fpm php-mbstring libapache2-mod-php nano | |
# main app | |
# Rails, Sinatra ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment