-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 997 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 997 Bytes
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 alpine:3.11
ARG GLIBC_VERSION=2.31-r0
# Install jq
RUN apk add jq
# Install GNU C Library & dependencies
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \
&& wget "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk" \
&& apk --no-cache add make git ca-certificates "glibc-${GLIBC_VERSION}.apk" \
&& rm "glibc-${GLIBC_VERSION}.apk"
### Download pre-compiled oc client from silver.
# Note : alternatives are:
# 1) building from scratch. This would be fine, but since we don't have somewhere
# to host the image, too slow.
# 2) download some other packaged version from an official openshift github release.
RUN wget --quiet https://downloads-openshift-console.apps.silver.devops.gov.bc.ca/amd64/linux/oc.tar
RUN tar -xf oc.tar
RUN mv oc /usr/local/bin/oc
RUN rm oc.tar
# Action repo contents to /deployment dir
COPY . /deployment
ENTRYPOINT ["/deployment/entrypoint.sh"]