Skip to content

Commit d90b283

Browse files
committed
fixup! fixup! Change builder image
Signed-off-by: Julien Ropé <[email protected]>
1 parent 561b489 commit d90b283

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/cloud-api-adaptor/Dockerfile.openshift

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ ARG BUILD_TYPE=release
1515
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_golang_1.23 AS builder-release
1616
ARG YQ_VERSION=v4.35.1
1717

18-
# the build process assumes go is under "/go", so let's make sure it works
19-
RUN ln -s /opt/app-root/src/go /go
2018
RUN GOFLAGS="" go install github.com/mikefarah/yq/v4@$YQ_VERSION
2119
# This registering RHEL when building on an unsubscribed system
2220
# If you are running a UBI container on a registered and subscribed RHEL host,
@@ -57,8 +55,8 @@ COPY cloud-api-adaptor/proto ./proto
5755

5856
# Set the desired cloud providers for our downstream build (not upsream default)
5957
ENV BUILTIN_CLOUD_PROVIDERS="strictfipsruntime aws azure ibmcloud vsphere libvirt gcp"
60-
# Make sure the PATH and GOPATH are set appropriately - our builder image being different, the upstream scripts fail otherwise
61-
ENV PATH=/opt/app-root/src/go/bin:$PATH
58+
# Make sure the PATH is set appropriately - our builder image being different, the upstream scripts fail otherwise
59+
ENV PATH=$GOPATH/bin:$PATH
6260
RUN CC=gcc make ARCH=$TARGETARCH COMMIT=$COMMIT VERSION=$VERSION RELEASE_BUILD=$RELEASE_BUILD cloud-api-adaptor
6361

6462
# FROM builder-release AS iptables

0 commit comments

Comments
 (0)