Skip to content

Commit 973140b

Browse files
Merge pull request #7687 from r4f4/tf-providers-dockerfile
CORS-2428: images: add Dockerfile for a terraform-providers image
2 parents 074baf5 + 6727ed0 commit 973140b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.15 AS macbuilder
2+
WORKDIR /go/src/github.com/openshift/installer
3+
COPY . .
4+
RUN CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 make -C terraform
5+
6+
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.15 AS macarmbuilder
7+
WORKDIR /go/src/github.com/openshift/installer
8+
COPY . .
9+
RUN CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 make -C terraform
10+
11+
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.15 AS linuxbuilder
12+
WORKDIR /go/src/github.com/openshift/installer
13+
COPY . .
14+
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 make -C terraform
15+
16+
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.15 AS linuxarmbuilder
17+
WORKDIR /go/src/github.com/openshift/installer
18+
COPY . .
19+
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 make -C terraform
20+
21+
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.15
22+
WORKDIR /go/src/github.com/openshift/installer
23+
COPY --from=macbuilder /go/src/github.com/openshift/installer/terraform/bin/ terraform/bin/
24+
COPY --from=macarmbuilder /go/src/github.com/openshift/installer/terraform/bin/ terraform/bin/
25+
COPY --from=linuxbuilder /go/src/github.com/openshift/installer/terraform/bin/ terraform/bin/
26+
COPY --from=linuxarmbuilder /go/src/github.com/openshift/installer/terraform/bin/ terraform/bin/

0 commit comments

Comments
 (0)