forked from KohlsTechnology/eunomia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (20 loc) · 971 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
FROM registry.access.redhat.com/ubi8/ubi:latest
ENV USER_UID=1001 \
USER_NAME=gitopsjob \
kubectl=kubectl \
KUBECTL_VERSION="v1.11.10" \
YQ_VERSION="2.7.2" \
GOLANG_YQ_VERSION="2.4.1" \
JQ_VERSION="1.6"
COPY bin /usr/local/bin
RUN yum install -y --disableplugin=subscription-manager git gettext python36-devel gcc python3-pip python3-setuptools && \
curl https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64 -L -o /usr/bin/jq && \
chmod +x /usr/bin/jq && \
curl -L https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl -o /usr/bin/kubectl && \
chmod +x /usr/bin/kubectl && \
pip3 install yq==${YQ_VERSION} && \
curl -L https://github.com/mikefarah/yq/releases/download/${GOLANG_YQ_VERSION}/yq_linux_amd64 -o /usr/bin/goyq && \
chmod +x /usr/bin/goyq && \
/usr/local/bin/user_setup
ENTRYPOINT ["/usr/local/bin/entrypoint"]
USER ${USER_UID}