-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
27 lines (18 loc) · 682 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/ubi:8.9
# Home directories required by acme.sh script.
ENV OCP_TOOLS_VERSION=4.14
ENV ACME_VERSION=2.8.6
WORKDIR /scripts
COPY scripts .
# OpenSSL, curl and socat required for script.
RUN dnf makecache && \
dnf install -y \
openssl socat curl \
&& dnf clean all && rm -rf /var/cache/dnf/*
WORKDIR /download
RUN curl https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable-$OCP_TOOLS_VERSION/openshift-client-linux.tar.gz | tar -xz && \
mv oc /usr/bin/oc && \
mv kubectl /usr/bin/kubectl
WORKDIR /source
RUN curl -L https://github.com/acmesh-official/acme.sh/archive/$ACME_VERSION.tar.gz | tar -xz
WORKDIR /