Skip to content

Instantly share code, notes, and snippets.

@mpouleijn
Created December 2, 2021 15:42
Show Gist options
  • Save mpouleijn/d417bcea3a2c0eaa00fa873bfe2b1f6c to your computer and use it in GitHub Desktop.
Save mpouleijn/d417bcea3a2c0eaa00fa873bfe2b1f6c to your computer and use it in GitHub Desktop.
openshift-installer-for-powervc
##
## pre-requesits:
## - set the IBMCLOUD_API_KEY enviroment value
## - set the RHEL_SUBS_PASSWORD environment value
## - create an ssh key in the directoy of this dockerfile
## - download the pull-secret.txt from cloud.redhat.com and place it in the directory of this docker file
FROM ubuntu:latest
ENV IBMCLOUD_API_KEY=""
ENV RHEL_SUBS_PASSWORD=""
ENV PATH="/root/ocp-install-dir:${PATH}"
RUN apt-get update && apt-get install -y curl vim nano ssh-client
RUN cd /root && mkdir ocp-install-dir \
&& cd ocp-install-dir \
&& curl -sL https://raw.githubusercontent.com/ocp-power-automation/openshift-install-power/master/openshift-install-powervs -o openshift-install-powervs \
&& chmod +x openshift-install-powervs \
&& export PATH=$PATH:$(pwd) \
&& mkdir /root/.ssh/
COPY id_rsa /root/.ssh/
COPY id_rsa.pub /root/.ssh/
COPY pull-secret.txt /root/ocp-install-dir
RUN chmod 600 /root/.ssh/id_rsa
WORKDIR /root/ocp-install-dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment