-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (20 loc) · 1016 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# FROM registry.access.redhat.com/ubi8-minimal
FROM registry.access.redhat.com/ubi8/ubi-minimal
LABEL maintainer="Robert Bohne <robert.bohne@redhat.com>"
ENV HOME='/runner/'
RUN microdnf update -y && rm -rf /var/cache/yum
RUN microdnf install nss_wrapper gettext tar gzip -y \
&& microdnf clean all
RUN curl -L -s \
https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.2.12/openshift-client-linux-4.2.12.tar.gz \
| tar -C /usr/local/bin/ -zxv oc kubectl ; \
chmod +x /usr/local/bin/oc ; \
chmod +x /usr/local/bin/kubectl
RUN curl -L -# \
--output /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
RUN mkdir /container-scripts/ && cp /etc/passwd /container-scripts/ && chmod 666 /container-scripts/passwd
RUN mkdir -p /runner/.gitlab-runner/ && chmod -R 777 /runner
ADD container-scripts/* /container-scripts/
ENTRYPOINT ["/container-scripts/entrypoint.sh"]