@@ -10,12 +10,15 @@ COPY . .
1010RUN DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
1111
1212FROM registry.ci.openshift.org/ocp/4.10:cli as cli
13+ FROM quay.io/ocp-splat/govc:v0.29.0 as govc
1314
1415FROM registry.ci.openshift.org/ocp/4.10:base
1516COPY --from=cli /usr/bin/oc /bin/oc
1617COPY --from=builder /go/src/github.com/openshift/installer/bin/openshift-install /bin/openshift-install
1718COPY --from=builder /go/src/github.com/openshift/installer/upi /var/lib/openshift-install/upi
1819
20+ COPY --from=govc /govc /bin/govc
21+
1922RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
2023 sh -c 'echo -e "[azure-cli]\nname=Azure CLI\nbaseurl=https://packages.microsoft.com/yumrepos/azure-cli\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" >/etc/yum.repos.d/azure-cli.repo' && \
2124 sh -c 'echo -e "[google-cloud-cli]\nname=Google Cloud CLI\nbaseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el8-x86_64\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg\n https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg" > /etc/yum.repos.d/google-cloud-sdk.repo'
@@ -68,7 +71,6 @@ ENV IGNITION_PROVIDER_VERSION=v2.1.0
6871RUN curl -L -O https://github.com/community-terraform-providers/terraform-provider-ignition/releases/download/${IGNITION_PROVIDER_VERSION}/terraform-provider-ignition-${IGNITION_PROVIDER_VERSION}-linux-amd64.tar.gz && \
6972 tar xzf terraform-provider-ignition-${IGNITION_PROVIDER_VERSION}-linux-amd64.tar.gz && \
7073 mv terraform-provider-ignition-${IGNITION_PROVIDER_VERSION}-linux-amd64/terraform-provider-ignition /bin/terraform-provider-ignition
71- RUN curl -L -o - "https://github.com/vmware/govmomi/releases/latest/download/govc_$(uname -s)_$(uname -m).tar.gz" | tar -C /bin -xvzf - govc
7274RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
7375 unzip awscliv2.zip && \
7476 ./aws/install -b /bin && \
@@ -87,7 +89,7 @@ RUN mkdir /output && HOME=/output && \
8789 ibmcloud version && \
8890 ibmcloud plugin list
8991
90- RUN chown 1000:1000 /output && chmod -R g=u "$HOME /.bluemix/"
92+ RUN chown 1000:1000 /output && chmod -R g=u "/output /.bluemix/"
9193USER 1000:1000
9294ENV PATH /bin
9395ENV HOME /output
0 commit comments