Last active
March 27, 2016 13:56
-
-
Save toritori0318/3f5d03276e268e41deab to your computer and use it in GitHub Desktop.
Docker+Drone+Gitlabを一発で構築するスクリプト
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/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