Skip to content

Instantly share code, notes, and snippets.

@t-oginogin
Created June 16, 2014 07:14
Show Gist options
  • Select an option

  • Save t-oginogin/5ef6d93e3c992e9a3218 to your computer and use it in GitHub Desktop.

Select an option

Save t-oginogin/5ef6d93e3c992e9a3218 to your computer and use it in GitHub Desktop.
CentOS6 on GCEにDockerを入れ、コンテナ上でNginx + Unicorn + Redmineを動かす ref: http://qiita.com/t_oginogin/items/d8590e130ee5f1af3a78
sudo yum -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo yum -y install docker-io
sudo service docker start
sudo chkconfig docker on
sudo yum install curl
curl -o Dockerfile https://raw.githubusercontent.com/t-oginogin/dockerfiles/master/ubuntu/Dockerfile_chef
su - ubuntu
sudo service mysql start
sudo service redmine start
sudo service nginx start
curl http://localhost:3000/
sudo docker build -t t.oginogin/chef .
sudo docker run -p 3000:3000 -it --name chef t.oginogin/chef /bin/bash
su - ubuntu
git clone https://github.com/t-oginogin/chef-recipes-ubuntu.git ~/chef-repo
cd ~/chef-repo
sudo chef-solo -c solo.rb -j ./localhost.json
sudo docker commit chef t.oginogin/redmine
sudo docker run -p 3000:3000 -it --name redmine t.oginogin/redmine /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment