File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ ARG TAGS="baremetal fipscapable"
66WORKDIR /go/src/github.com/openshift/installer
77COPY . .
88RUN DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
9+ RUN DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build-node-joiner.sh
910
11+ FROM registry.ci.openshift.org/ocp/4.16:cli-artifacts AS tools
1012
1113FROM registry.ci.openshift.org/ocp/4.16:base
1214COPY --from=builder /go/src/github.com/openshift/installer/bin/openshift-install /bin/openshift-install
@@ -16,6 +18,11 @@ RUN dnf upgrade -y && \
1618 openssl unzip jq openssh-clients && \
1719 dnf clean all && rm -rf /var/cache/yum/*
1820
21+ # node-joiner requirements
22+ 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
25+
1926RUN mkdir /output && chown 1000:1000 /output
2027USER 1000:1000
2128ENV PATH /bin
Original file line number Diff line number Diff line change @@ -12,15 +12,13 @@ COPY . .
1212COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/ terraform/bin/
1313RUN DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
1414RUN go run -mod=vendor hack/build-coreos-manifest.go
15- RUN DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build-node-joiner.sh
1615
1716FROM registry.ci.openshift.org/ocp/4.16:cli-artifacts AS tools
1817
1918FROM registry.ci.openshift.org/ocp/4.16:base
2019COPY --from=builder /go/src/github.com/openshift/installer/bin/openshift-install /bin/openshift-install
2120COPY --from=builder /go/src/github.com/openshift/installer/bin/manifests/ /manifests/
22- # node-joiner requirements
23- COPY --from=builder /go/src/github.com/openshift/installer/bin/node-joiner /bin/node-joiner
21+ # Required to run agent-based installer from the container
2422COPY --from=tools /usr/bin/oc /bin/oc
2523RUN dnf install -y nmstate
2624
You can’t perform that action at this time.
0 commit comments