Skip to content

Commit 93890a4

Browse files
committed
move the node-joiner binary into the baremetal-installer image
1 parent 364b2a6 commit 93890a4

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

images/baremetal/Dockerfile.ci

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ ARG TAGS="baremetal fipscapable"
66
WORKDIR /go/src/github.com/openshift/installer
77
COPY . .
88
RUN 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

1113
FROM registry.ci.openshift.org/ocp/4.16:base
1214
COPY --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+
1926
RUN mkdir /output && chown 1000:1000 /output
2027
USER 1000:1000
2128
ENV PATH /bin

images/installer/Dockerfile.ci

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ COPY . .
1212
COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/ terraform/bin/
1313
RUN DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
1414
RUN go run -mod=vendor hack/build-coreos-manifest.go
15-
RUN DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build-node-joiner.sh
1615

1716
FROM registry.ci.openshift.org/ocp/4.16:cli-artifacts AS tools
1817

1918
FROM registry.ci.openshift.org/ocp/4.16:base
2019
COPY --from=builder /go/src/github.com/openshift/installer/bin/openshift-install /bin/openshift-install
2120
COPY --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
2422
COPY --from=tools /usr/bin/oc /bin/oc
2523
RUN dnf install -y nmstate
2624

0 commit comments

Comments
 (0)