From d2267a24266f8909b2574abe6dfbedcb295f41ee Mon Sep 17 00:00:00 2001 From: shubham Date: Sat, 14 Nov 2020 13:42:03 +0530 Subject: [PATCH] fix(build): copy binaries instead of folders Signed-off-by: shubham --- build/cspc-operator/cspc-operator.Dockerfile | 2 +- build/cvc-operator/cvc-operator.Dockerfile | 2 +- build/pool-manager/pool-manager.Dockerfile | 2 +- build/volume-manager/volume-manager.Dockerfile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/cspc-operator/cspc-operator.Dockerfile b/build/cspc-operator/cspc-operator.Dockerfile index 9168d3fe..198784ef 100644 --- a/build/cspc-operator/cspc-operator.Dockerfile +++ b/build/cspc-operator/cspc-operator.Dockerfile @@ -63,6 +63,6 @@ LABEL org.label-schema.build-date=$DBUILD_DATE LABEL org.label-schema.vcs-url=$DBUILD_REPO_URL LABEL org.label-schema.url=$DBUILD_SITE_URL -COPY --from=build /go/src/github.com/openebs/cstor-operator/bin/cspc-operator /usr/local/bin/cspc-operator +COPY --from=build /go/src/github.com/openebs/cstor-operator/bin/cspc-operator/cspc-operator /usr/local/bin/cspc-operator ENTRYPOINT ["/usr/local/bin/cspc-operator"] diff --git a/build/cvc-operator/cvc-operator.Dockerfile b/build/cvc-operator/cvc-operator.Dockerfile index 5636eae5..d6cd4ba4 100644 --- a/build/cvc-operator/cvc-operator.Dockerfile +++ b/build/cvc-operator/cvc-operator.Dockerfile @@ -63,7 +63,7 @@ LABEL org.label-schema.build-date=$DBUILD_DATE LABEL org.label-schema.vcs-url=$DBUILD_REPO_URL LABEL org.label-schema.url=$DBUILD_SITE_URL -COPY --from=build /go/src/github.com/openebs/cstor-operator/bin/cvc-operator /usr/local/bin/cvc-operator +COPY --from=build /go/src/github.com/openebs/cstor-operator/bin/cvc-operator/cvc-operator /usr/local/bin/cvc-operator COPY --from=build /go/src/github.com/openebs/cstor-operator/build/cvc-operator/entrypoint.sh /usr/local/bin/ RUN chmod +x /usr/local/bin/entrypoint.sh diff --git a/build/pool-manager/pool-manager.Dockerfile b/build/pool-manager/pool-manager.Dockerfile index ce08f3f0..438e0406 100644 --- a/build/pool-manager/pool-manager.Dockerfile +++ b/build/pool-manager/pool-manager.Dockerfile @@ -60,7 +60,7 @@ LABEL org.label-schema.build-date=$DBUILD_DATE LABEL org.label-schema.vcs-url=$DBUILD_REPO_URL LABEL org.label-schema.url=$DBUILD_SITE_URL -COPY --from=build /go/src/github.com/openebs/cstor-operator/bin/pool-manager /usr/local/bin/ +COPY --from=build /go/src/github.com/openebs/cstor-operator/bin/pool-manager/pool-manager /usr/local/bin/ COPY --from=build /go/src/github.com/openebs/cstor-operator/build/pool-manager/entrypoint.sh /usr/local/bin/ RUN echo '#!/bin/bash\nif [ $# -lt 1 ]; then\n\techo "argument missing"\n\texit 1\nfi\neval "$*"\n' >> /usr/local/bin/execute.sh diff --git a/build/volume-manager/volume-manager.Dockerfile b/build/volume-manager/volume-manager.Dockerfile index e9086b9a..fa2d0d95 100644 --- a/build/volume-manager/volume-manager.Dockerfile +++ b/build/volume-manager/volume-manager.Dockerfile @@ -60,7 +60,7 @@ RUN apt-get -y install rsyslog RUN mkdir -p /usr/local/etc/istgt -COPY --from=build /go/src/github.com/openebs/cstor-operator/bin/volume-manager /usr/local/bin/ +COPY --from=build /go/src/github.com/openebs/cstor-operator/bin/volume-manager/volume-manager /usr/local/bin/ COPY --from=build /go/src/github.com/openebs/cstor-operator/build/volume-manager/entrypoint.sh /usr/local/bin/ RUN chmod +x /usr/local/bin/entrypoint.sh