From e6b6227b4fa9f156b812c345fe5bfeab7f4499e6 Mon Sep 17 00:00:00 2001 From: MJB <mjb@it-innovation.soton.ac.uk> Date: Sat, 2 Jun 2018 20:34:35 +0100 Subject: [PATCH] added git runner scripts --- scripts/test/install-git-runner.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 scripts/test/install-git-runner.sh diff --git a/scripts/test/install-git-runner.sh b/scripts/test/install-git-runner.sh new file mode 100644 index 0000000..d1a8537 --- /dev/null +++ b/scripts/test/install-git-runner.sh @@ -0,0 +1,14 @@ +#!/bin/bash +apt-get update + +wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64 +chmod +x /usr/local/bin/gitlab-runner +useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash + +gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner +gitlab-runner start + +gitlab-runner register -n --url https://gitlab.it-innovation.soton.ac.uk/ --r sN3wMQp8EiAv7znNwG5s --executor shell --locked true --name ${HOSTNAME} --description ${HOSTNAME} --run-untagged true + +apt-get -y install python3 python3-pip python-influxdb +update-alternatives --install /usr/bin/python python /usr/bin/python3 10 \ No newline at end of file -- GitLab