-
Notifications
You must be signed in to change notification settings - Fork 3
/
Containerfile
25 lines (20 loc) · 1.09 KB
/
Containerfile
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
# Build:
# podman build -t quay.io/rbo/hetzner-baremetal-openshift-toolbox:latest .
#
#
# podman stop hetzner-baremetal-openshift-toolbox-latest
# podman rm hetzner-baremetal-openshift-toolbox-latest
# toolbox create --image quay.io/rbo/hetzner-baremetal-openshift-toolbox:latest
# toolbox enter hetzner-baremetal-openshift-toolbox-latest
FROM registry.fedoraproject.org/fedora-toolbox
ARG OPENSHIFT_VERSION=4.9.5
RUN \
dnf install -y ansible pip python3-google-auth.noarch vim && \
pip install hcloud && \
ansible-galaxy collection install -p /usr/share/ansible/collections community.hrobot && \
ansible-galaxy collection install -p /usr/share/ansible/collections hetzner.hcloud
RUN echo "===== Install $OPENSHIFT_VERSION openshift-install =====" \
&& curl -# -L -o /tmp/openshift-install-linux.tar.gz https://mirror.openshift.com/pub/openshift-v4/clients/ocp/$OPENSHIFT_VERSION/openshift-install-linux.tar.gz \
&& tar xzvf /tmp/openshift-install-linux.tar.gz -C /usr/local/bin/ openshift-install \
&& chmod +x /usr/local/bin/openshift-install \
&& rm /tmp/openshift-install-linux.tar.gz