Skip to content

Commit 7f26187

Browse files
committed
build only needed cmd in container image
1 parent 392697b commit 7f26187

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.22-openshift-4.18 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.18: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.22-openshift-4.18 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.18: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.22-openshift-4.18 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.18: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.22-openshift-4.18 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.18: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.22-openshift-4.17 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.17: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.22-openshift-4.18 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.18: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.22-openshift-4.18 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.18: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.22-openshift-4.18 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.18: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)