Skip to content

Commit 10b04b8

Browse files
Merge pull request #329 from sanchezl/cleanup-build
NO-JIRA: build only needed cmd in container image
2 parents 9815fef + 7f26187 commit 10b04b8

8 files changed

+8
-8
lines changed

Dockerfile.aws-ebs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
22
WORKDIR /go/src/github.com/openshift/csi-operator
33
COPY . .
4-
RUN make
4+
RUN make GO_BUILD_PACKAGES=./cmd/aws-ebs-csi-driver-operator
55

66
FROM registry.ci.openshift.org/ocp/4.19:base-rhel9
77
COPY --from=builder /go/src/github.com/openshift/csi-operator/bin/aws-ebs-csi-driver-operator /usr/bin/

Dockerfile.aws-efs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
22
WORKDIR /go/src/github.com/openshift/csi-operator
33
COPY . .
4-
RUN make
4+
RUN make GO_BUILD_PACKAGES=./cmd/aws-efs-csi-driver-operator
55

66
FROM registry.ci.openshift.org/ocp/4.19:base-rhel9
77
COPY --from=builder /go/src/github.com/openshift/csi-operator/bin/aws-efs-csi-driver-operator /usr/bin/

Dockerfile.azure-disk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
22
WORKDIR /go/src/github.com/openshift/csi-operator
33
COPY . .
4-
RUN make
4+
RUN make GO_BUILD_PACKAGES=./cmd/azure-disk-csi-driver-operator
55

66

77
FROM registry.ci.openshift.org/ocp/4.19:base-rhel9

Dockerfile.azure-file

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
22
WORKDIR /go/src/github.com/openshift/csi-operator
33
COPY . .
4-
RUN make
4+
RUN make GO_BUILD_PACKAGES=./cmd/azure-file-csi-driver-operator
55

66

77
FROM registry.ci.openshift.org/ocp/4.19:base-rhel9

Dockerfile.create_efs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
22
WORKDIR /go/src/github.com/openshift/csi-operator
33
COPY . .
4-
RUN make
4+
RUN make GO_BUILD_PACKAGES=./cmd/create-efs-volume
55

66
FROM registry.ci.openshift.org/ocp/4.19:base-rhel9
77
COPY --from=builder /go/src/github.com/openshift/csi-operator/bin/create-efs-volume /usr/bin/

Dockerfile.openstack-cinder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
22
WORKDIR /go/src/github.com/openshift/csi-operator
33
COPY . .
4-
RUN make
4+
RUN make GO_BUILD_PACKAGES=./cmd/openstack-cinder-csi-driver-operator
55

66
FROM registry.ci.openshift.org/ocp/4.19:base-rhel9
77
COPY --from=builder /go/src/github.com/openshift/csi-operator/bin/openstack-cinder-csi-driver-operator /usr/bin/

Dockerfile.openstack-manila

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
22
WORKDIR /go/src/github.com/openshift/csi-operator
33
COPY . .
4-
RUN make
4+
RUN make GO_BUILD_PACKAGES=./cmd/openstack-manila-csi-driver-operator
55

66
FROM registry.ci.openshift.org/ocp/4.19:base-rhel9
77
COPY --from=builder /go/src/github.com/openshift/csi-operator/bin/openstack-manila-csi-driver-operator /usr/bin/

Dockerfile.samba

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
22
WORKDIR /go/src/github.com/openshift/csi-operator
33
COPY . .
4-
RUN make
4+
RUN make GO_BUILD_PACKAGES=./cmd/smb-csi-driver-operator
55

66
FROM registry.ci.openshift.org/ocp/4.19:base-rhel9
77
COPY --from=builder /go/src/github.com/openshift/csi-operator/bin/smb-csi-driver-operator /usr/bin/

0 commit comments

Comments
 (0)