-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (24 loc) · 997 Bytes
/
Dockerfile
File metadata and controls
29 lines (24 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
28
29
FROM ubuntu:16.04
MAINTAINER Jonathan Nagayoshi "https://github.com/sonikro"
ENV OC_VERSION "v3.11.0"
ENV OC_RELEASE "openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit"
## Init
RUN apt-get update
## Install OC Library
RUN apt-get install -y wget
RUN mkdir -p /opt/oc
RUN wget -O /opt/oc/release.tar.gz https://github.com/openshift/origin/releases/download/$OC_VERSION/$OC_RELEASE.tar.gz
RUN apt-get install ca-certificates
RUN tar --strip-components=1 -xzvf /opt/oc/release.tar.gz -C /opt/oc/ && \
mv /opt/oc/oc /usr/bin/ && \
rm -rf /opt/oc
RUN cp /usr/bin/oc /bin/oc
COPY docker-entrypoint.sh /usr/local/bin/
##Install Kustomize
RUN wget https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv3.2.3/kustomize_kustomize.v3.2.3_linux_amd64
RUN mv kustomize_kustomize.v3.2.3_linux_amd64 kustomize
RUN chmod +x kustomize
RUN mv kustomize /usr/bin/kustomize
##Install Envsubst
RUN apt-get install -y gettext-base
ENTRYPOINT [ "docker-entrypoint.sh" ]