Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.