Created
December 2, 2021 15:42
-
-
Save mpouleijn/d417bcea3a2c0eaa00fa873bfe2b1f6c to your computer and use it in GitHub Desktop.
openshift-installer-for-powervc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## 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