Last active
May 1, 2018 07:28
-
-
Save Benoss/bc2e4606f429e6437595d89baa8a021d to your computer and use it in GitHub Desktop.
Install Gitlab Runner
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
echo -e " | |
sudo apt-get update | |
sudo apt install curl apt-transport-https ca-certificates -y | |
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable" | sudo tee /etc/apt/sources.list.d/docker.list | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install ntp htop ncdu jq docker-ce gitlab-runner -y | |
sudo service docker start | |
sudo apt-get autoremove -y | |
sudo adduser gitlab-runner docker | |
echo 'sudo gitlab-runner register --url https://gitlab.com --name $HOSTNAME --tag-list linux,shell --executor shell' | |
" > install_gitlab.sh && chmod +x install_gitlab.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment