diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-05-13 15:03:50 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-05-14 15:37:26 +0000 |
commit | a1edcb1e3a7bc3e5c824137d8a859973f6867590 (patch) | |
tree | 7cad57185276c00aa783ebd34d79b9e9e6b0e116 | |
parent | 4a38fb3b4acd548351edf45b09a53ec9e3f919e6 (diff) | |
download | definitions-a1edcb1e3a7bc3e5c824137d8a859973f6867590.tar.gz |
Add required files to install gitlab-ci-runner "automatically"
-rw-r--r-- | gitlab-ci-runner/etc/systemd/system/ci-runner-units.tar | bin | 0 -> 10240 bytes | |||
-rw-r--r-- | gitlab-ci-runner/manifest | 8 | ||||
-rwxr-xr-x | gitlab-ci-runner/usr/share/gitlab-install/install-runner | 21 |
3 files changed, 29 insertions, 0 deletions
diff --git a/gitlab-ci-runner/etc/systemd/system/ci-runner-units.tar b/gitlab-ci-runner/etc/systemd/system/ci-runner-units.tar Binary files differnew file mode 100644 index 00000000..45ebe48e --- /dev/null +++ b/gitlab-ci-runner/etc/systemd/system/ci-runner-units.tar diff --git a/gitlab-ci-runner/manifest b/gitlab-ci-runner/manifest new file mode 100644 index 00000000..7fd43185 --- /dev/null +++ b/gitlab-ci-runner/manifest @@ -0,0 +1,8 @@ +0040755 0 0 /etc +0040755 0 0 /etc/systemd +0040755 0 0 /etc/systemd/system +0100644 0 0 /etc/systemd/system/ci-runner-units.tar +0040755 0 0 /usr +0040755 0 0 /usr/share +0040755 0 0 /usr/share/gitlab-install +0100755 0 0 /usr/share/gitlab-install/install-runner diff --git a/gitlab-ci-runner/usr/share/gitlab-install/install-runner b/gitlab-ci-runner/usr/share/gitlab-install/install-runner new file mode 100755 index 00000000..ca5a6cce --- /dev/null +++ b/gitlab-ci-runner/usr/share/gitlab-install/install-runner @@ -0,0 +1,21 @@ +#!/bin/sh + +set -e + +gem install bundler + +git config --global http.sslVerify false +git config --global user.name 'GitLab CI Runner' +git config --global user.email 'ci_runner@localhost' +git config --global core.autocrlf input + +git clone https://gitlab.com/gitlab-org/gitlab-ci-runner.git +cd gitlab-ci-runner + +bundle install --deployment +bundle exec ./bin/setup +nohup bundle exec ./bin/runner & + +cd /etc/systemd/system +tar -xf ci-runner-units.tar +systemctl enable gitlab-ci-runner.service |