From 8d5eca20a7526ed1bbe7ac3d8c61b279e9d72d90 Mon Sep 17 00:00:00 2001 From: Adam Coldrick Date: Tue, 13 May 2014 15:03:50 +0000 Subject: Add required files to install gitlab-ci-runner "automatically" --- .../etc/systemd/system/ci-runner-units.tar | Bin 0 -> 10240 bytes gitlab-ci-runner/manifest | 8 ++++++++ .../usr/share/gitlab-install/install-runner | 21 +++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 gitlab-ci-runner/etc/systemd/system/ci-runner-units.tar create mode 100644 gitlab-ci-runner/manifest create mode 100755 gitlab-ci-runner/usr/share/gitlab-install/install-runner diff --git a/gitlab-ci-runner/etc/systemd/system/ci-runner-units.tar b/gitlab-ci-runner/etc/systemd/system/ci-runner-units.tar new file mode 100644 index 00000000..45ebe48e Binary files /dev/null and b/gitlab-ci-runner/etc/systemd/system/ci-runner-units.tar differ diff --git a/gitlab-ci-runner/manifest b/gitlab-ci-runner/manifest new file mode 100644 index 00000000..a5e8e76a --- /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-gitlab 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 -- cgit v1.2.1