forked from slauger/hcloud-okd4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (42 loc) · 1.59 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM docker.io/hashicorp/terraform:1.5.0@sha256:8d8e2ca99343a8717ccb6f3d07ebd73f198ec2191c20fe202749f6fe10ea2fe1 AS terraform
FROM docker.io/hashicorp/packer:1.9.1@sha256:5195cfe0739cff95d38a0c34807e4063fdb7b41fedf17e629f05a872c64b3201 AS packer
FROM docker.io/alpine:3.18.0@sha256:02bb6f428431fbc2809c5d1b41eab5a68350194fb508869a33cb1af4444c9b11
LABEL maintainer="[email protected]"
ARG OPENSHIFT_RELEASE
ENV OPENSHIFT_RELEASE=${OPENSHIFT_RELEASE}
ARG DEPLOYMENT_TYPE
ENV DEPLOYMENT_TYPE=${DEPLOYMENT_TYPE}
RUN apk update && \
apk add \
bash \
ca-certificates \
openssh-client \
openssl \
ansible \
make \
rsync \
curl \
git \
jq \
libc6-compat \
apache2-utils \
python3 \
py3-pip \
libvirt-client
# OpenShift Installer
COPY openshift-install-linux-${OPENSHIFT_RELEASE}.tar.gz .
COPY openshift-client-linux-${OPENSHIFT_RELEASE}.tar.gz .
RUN tar vxzf openshift-install-linux-${OPENSHIFT_RELEASE}.tar.gz openshift-install && \
tar vxzf openshift-client-linux-${OPENSHIFT_RELEASE}.tar.gz oc && \
tar vxzf openshift-client-linux-${OPENSHIFT_RELEASE}.tar.gz kubectl && \
mv openshift-install /usr/local/bin/openshift-install && \
mv oc /usr/local/bin/oc && \
mv kubectl /usr/local/bin/kubectl && \
rm openshift-install-linux-${OPENSHIFT_RELEASE}.tar.gz && \
rm openshift-client-linux-${OPENSHIFT_RELEASE}.tar.gz
# External tools
COPY --from=terraform /bin/terraform /usr/local/bin/terraform
COPY --from=packer /bin/packer /usr/local/bin/packer
# Create workspace
RUN mkdir /workspace
WORKDIR /workspace