forked from JeffreyChow19/cookpaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (19 loc) · 727 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (19 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:20.04
ENV REGISTRATION_TOKEN=GR1348941DaJZamQKP2A9MCy5xP4C
RUN apt-get update && \
apt-get install -y curl git && \
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | bash && \
apt-get install -y gitlab-runner
RUN gitlab-runner register \
--non-interactive \
--executor "docker" \
--docker-image alpine:latest \
--url https://gitlab.informatika.org/ \
--registration-token $REGISTRATION_TOKEN \
--description "docker runner for rpl k02 g08" \
--maintenance-note "rebuild docker runner if failed" \
--tag-list docker-runner-rpl-g08 \
--run-untagged="true" \
--locked="true" \
--access-level="not_protected"
CMD ["gitlab-runner", "run"]