Skip to content

Commit 1a3d6c2

Browse files
Merge pull request #8326 from andfasano/agent-day2-fix-oc-dependency
AGENT-863: fix oc dependency in installer images
2 parents c2fa2bf + b13f921 commit 1a3d6c2

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

images/baremetal/Dockerfile.ci

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ COPY . .
88
RUN DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
99
RUN DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build-node-joiner.sh
1010

11-
FROM registry.ci.openshift.org/ocp/4.16:cli-artifacts AS tools
12-
1311
FROM registry.ci.openshift.org/ocp/4.16:base
1412
COPY --from=builder /go/src/github.com/openshift/installer/bin/openshift-install /bin/openshift-install
1513

@@ -20,8 +18,7 @@ RUN dnf upgrade -y && \
2018

2119
# node-joiner requirements
2220
COPY --from=builder /go/src/github.com/openshift/installer/bin/node-joiner /bin/node-joiner
23-
COPY --from=tools /usr/bin/oc /bin/oc
24-
RUN dnf install -y nmstate
21+
RUN dnf install -y nmstate openshift-clients
2522

2623
RUN mkdir /output && chown 1000:1000 /output
2724
USER 1000:1000

images/installer/Dockerfile.ci

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,9 @@ COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/ terr
1313
RUN DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
1414
RUN go run -mod=vendor hack/build-coreos-manifest.go
1515

16-
FROM registry.ci.openshift.org/ocp/4.16:cli-artifacts AS tools
17-
1816
FROM registry.ci.openshift.org/ocp/4.16:base
1917
COPY --from=builder /go/src/github.com/openshift/installer/bin/openshift-install /bin/openshift-install
2018
COPY --from=builder /go/src/github.com/openshift/installer/bin/manifests/ /manifests/
21-
# Required to run agent-based installer from the container
22-
COPY --from=tools /usr/bin/oc /bin/oc
23-
RUN dnf install -y nmstate
2419

2520
RUN mkdir /output && chown 1000:1000 /output
2621
USER 1000:1000

0 commit comments

Comments
 (0)