forked from slauger/hcloud-okd4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (40 loc) · 1.64 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
FROM docker.io/hashicorp/terraform:0.15.1@sha256:300b21cf3325abdda4647825401bf987bc38113f258d04d1667fd9ac1e85c0d6 AS terraform
FROM docker.io/hashicorp/packer:1.7.2@sha256:516a72625ab41f03754e4b31465bdb3d46ac2d9dfefcc10df2ad59e7212b67fe AS packer
FROM docker.io/alpine/helm:3.5.4@sha256:e539a1a27a90ac844f306ac00096228c963c5b9e11b4614336fd9412d1512f5b AS helm
FROM docker.io/alpine:3.13.5@sha256:69e70a79f2d41ab5d637de98c1e0b055206ba40a8145e7bddb55ccc04e13cf8f
LABEL maintainer="nico@wunder.ms"
ARG OPENSHIFT_RELEASE
RUN apk update && \
apk add \
bash \
ca-certificates \
openssh-client \
openssl \
ansible \
make \
rsync \
curl \
git \
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
COPY --from=helm /usr/bin/helm /usr/local/bin/helm
# Create workspace
RUN mkdir /workspace
WORKDIR /workspace