Skip to content

Instantly share code, notes, and snippets.

@toritori0318
Last active March 27, 2016 13:56
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toritori0318/3f5d03276e268e41deab to your computer and use it in GitHub Desktop.
Save toritori0318/3f5d03276e268e41deab to your computer and use it in GitHub Desktop.
Docker+Drone+Gitlabを一発で構築するスクリプト
#!/bin/sh
set -x
GITLAB_URL='http://ec2-xx-xx-xx-xx.ap-northeast-1.compute.amazonaws.com:81'
# docker
sudo apt-get update
sudo apt-get install -y libsqlite3-dev
sudo apt-get install -y docker.io
# drone
wget downloads.drone.io/master/drone.deb
sudo dpkg --install drone.deb
# gitlab
sudo mkdir -p /etc/gitlab
sudo touch /etc/gitlab/gitlab.rb
sudo chmod 600 /etc/gitlab/gitlab.rb
sudo sh -c "echo external_url \'$GITLAB_URL\' >> /etc/gitlab/gitlab.rb"
wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.9.4-omnibus.1-1_amd64.deb
sudo dpkg -i gitlab_7.9.4-omnibus.1-1_amd64.deb
sudo gitlab-ctl reconfigure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment