Skip to content

Commit 22b442c

Browse files
Merge pull request #9673 from patrickdillon/images-decouple-tf
CORS-3960: Remove Terraform from Dockerfiles
2 parents 71a467e + fad636f commit 22b442c

File tree

4 files changed

+1
-11
lines changed

4 files changed

+1
-11
lines changed

images/installer-artifacts/Dockerfile.rhel

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# This Dockerfile builds an image containing Mac and Linux/AMD64 versions of
22
# the installer layered on top of the cluster-native Linux installer image.
33

4-
FROM registry.ci.openshift.org/ocp/4.19:installer-terraform-providers AS providers
54
# We copy from the -artifacts images because they are statically linked
65
FROM registry.ci.openshift.org/ocp/4.19:installer-kube-apiserver-artifacts AS kas-artifacts
76
FROM registry.ci.openshift.org/ocp/4.19:installer-etcd-artifacts AS etcd-artifacts
@@ -13,7 +12,6 @@ ENV GO_COMPLIANCE_EXCLUDE=".*"
1312
ARG TAGS=""
1413
WORKDIR /go/src/github.com/openshift/installer
1514
COPY . .
16-
COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/darwin_amd64 terraform/bin/darwin_amd64
1715
COPY --from=kas-artifacts /usr/share/openshift/darwin/amd64 cluster-api/bin/darwin_amd64
1816
COPY --from=etcd-artifacts /usr/share/openshift/darwin/amd64 cluster-api/bin/darwin_amd64
1917
RUN GOOS=darwin GOARCH=amd64 DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
@@ -23,7 +21,6 @@ ENV GO_COMPLIANCE_EXCLUDE=".*"
2321
ARG TAGS=""
2422
WORKDIR /go/src/github.com/openshift/installer
2523
COPY . .
26-
COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/darwin_arm64 terraform/bin/darwin_arm64
2724
COPY --from=kas-artifacts /usr/share/openshift/darwin/arm64 cluster-api/bin/darwin_arm64
2825
COPY --from=etcd-artifacts /usr/share/openshift/darwin/arm64 cluster-api/bin/darwin_arm64
2926
RUN GOOS=darwin GOARCH=arm64 DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
@@ -33,7 +30,6 @@ ENV GO_COMPLIANCE_EXCLUDE=".*"
3330
ARG TAGS=""
3431
WORKDIR /go/src/github.com/openshift/installer
3532
COPY . .
36-
COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/linux_amd64 terraform/bin/linux_amd64
3733
COPY --from=kas-artifacts /usr/share/openshift/linux/amd64 cluster-api/bin/linux_amd64
3834
COPY --from=etcd-artifacts /usr/share/openshift/linux/amd64 cluster-api/bin/linux_amd64
3935
RUN GOOS=linux GOARCH=amd64 DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
@@ -44,7 +40,6 @@ ARG TAGS=""
4440
ARG SKIP_ENVTEST="y"
4541
WORKDIR /go/src/github.com/openshift/installer
4642
COPY . .
47-
COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/linux_arm64 terraform/bin/linux_arm64
4843
COPY --from=kas-artifacts /usr/share/openshift/linux/arm64 cluster-api/bin/linux_arm64
4944
COPY --from=etcd-artifacts /usr/share/openshift/linux/arm64 cluster-api/bin/linux_arm64
5045
RUN GOOS=linux GOARCH=arm64 DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh

images/installer/Dockerfile.ci

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# This Dockerfile is used by CI to publish the installer image.
22
# It builds an image containing only the openshift-install.
33

4-
FROM registry.ci.openshift.org/ocp/4.19:installer-terraform-providers AS providers
54
# We copy from the -artifacts images because they are statically linked
65
FROM registry.ci.openshift.org/ocp/4.19:installer-kube-apiserver-artifacts AS kas-artifacts
76
FROM registry.ci.openshift.org/ocp/4.19:installer-etcd-artifacts AS etcd-artifacts
@@ -13,7 +12,6 @@ ARG TAGS=""
1312
ARG SKIP_ENVTEST="y"
1413
WORKDIR /go/src/github.com/openshift/installer
1514
COPY . .
16-
COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/ terraform/bin/
1715
COPY --from=kas-artifacts /usr/share/openshift/ cluster-api/bin/
1816
COPY --from=etcd-artifacts /usr/share/openshift/ cluster-api/bin/
1917
RUN mkdir -p cluster-api/bin/$(go env GOOS)_$(go env GOHOSTARCH) && \

images/installer/Dockerfile.upi.ci

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# It builds an image containing binaries like jq, terraform, awscli, oc, etc. to allow bringing up UPI infrastructure.
33
# It also contains the `upi` directory that contains various terraform and cloud formation templates that are used to create infrastructure resources.
44

5-
FROM registry.ci.openshift.org/ocp/4.17:installer-terraform-providers as providers
65
# We copy from the -artifacts images because they are statically linked
76
FROM registry.ci.openshift.org/ocp/4.17:installer-kube-apiserver-artifacts AS kas-artifacts
87
FROM registry.ci.openshift.org/ocp/4.17:installer-etcd-artifacts AS etcd-artifacts
@@ -14,7 +13,6 @@ ARG TAGS=""
1413
ARG SKIP_ENVTEST="y"
1514
WORKDIR /go/src/github.com/openshift/installer
1615
COPY . .
17-
COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/ terraform/bin/
1816
COPY --from=kas-artifacts /usr/share/openshift/ cluster-api/bin/
1917
COPY --from=etcd-artifacts /usr/share/openshift/ cluster-api/bin/
2018
RUN mkdir -p cluster-api/bin/$(go env GOOS)_$(go env GOHOSTARCH) && \

images/openstack/Dockerfile.ci

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This Dockerfile is used by CI to test using OpenShift Installer against an OpenStack cloud.
22
# It builds an image containing the openshift-install command as well as the openstack cli.
3-
FROM registry.ci.openshift.org/ocp/4.17:installer-terraform-providers as providers
3+
44
# We copy from the -artifacts images because they are statically linked
55
FROM registry.ci.openshift.org/ocp/4.17:installer-kube-apiserver-artifacts AS kas-artifacts
66
FROM registry.ci.openshift.org/ocp/4.17:installer-etcd-artifacts AS etcd-artifacts
@@ -12,7 +12,6 @@ ARG TAGS=""
1212
ARG SKIP_ENVTEST="y"
1313
WORKDIR /go/src/github.com/openshift/installer
1414
COPY . .
15-
COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/ terraform/bin/
1615
COPY --from=kas-artifacts /usr/share/openshift/ cluster-api/bin/
1716
COPY --from=etcd-artifacts /usr/share/openshift/ cluster-api/bin/
1817
RUN mkdir -p cluster-api/bin/$(go env GOOS)_$(go env GOHOSTARCH) && \

0 commit comments

Comments
 (0)