Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build only needed cmd in container image #329

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile.aws-ebs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
WORKDIR /go/src/github.com/openshift/csi-operator
COPY . .
RUN make
RUN make GO_BUILD_PACKAGES=./cmd/aws-ebs-csi-driver-operator

FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
COPY --from=builder /go/src/github.com/openshift/csi-operator/bin/aws-ebs-csi-driver-operator /usr/bin/
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.aws-efs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
WORKDIR /go/src/github.com/openshift/csi-operator
COPY . .
RUN make
RUN make GO_BUILD_PACKAGES=./cmd/aws-efs-csi-driver-operator

FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
COPY --from=builder /go/src/github.com/openshift/csi-operator/bin/aws-efs-csi-driver-operator /usr/bin/
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.azure-disk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
WORKDIR /go/src/github.com/openshift/csi-operator
COPY . .
RUN make
RUN make GO_BUILD_PACKAGES=./cmd/azure-disk-csi-driver-operator


FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.azure-file
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
WORKDIR /go/src/github.com/openshift/csi-operator
COPY . .
RUN make
RUN make GO_BUILD_PACKAGES=./cmd/azure-file-csi-driver-operator


FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.create_efs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS builder
WORKDIR /go/src/github.com/openshift/csi-operator
COPY . .
RUN make
RUN make GO_BUILD_PACKAGES=./cmd/create-efs-volume

FROM registry.ci.openshift.org/ocp/4.17:base-rhel9
COPY --from=builder /go/src/github.com/openshift/csi-operator/bin/create-efs-volume /usr/bin/
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.openstack-cinder
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
WORKDIR /go/src/github.com/openshift/csi-operator
COPY . .
RUN make
RUN make GO_BUILD_PACKAGES=./cmd/openstack-cinder-csi-driver-operator

FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
COPY --from=builder /go/src/github.com/openshift/csi-operator/bin/openstack-cinder-csi-driver-operator /usr/bin/
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.openstack-manila
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
WORKDIR /go/src/github.com/openshift/csi-operator
COPY . .
RUN make
RUN make GO_BUILD_PACKAGES=./cmd/openstack-manila-csi-driver-operator

FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
COPY --from=builder /go/src/github.com/openshift/csi-operator/bin/openstack-manila-csi-driver-operator /usr/bin/
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.samba
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
WORKDIR /go/src/github.com/openshift/csi-operator
COPY . .
RUN make
RUN make GO_BUILD_PACKAGES=./cmd/smb-csi-driver-operator

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