Skip to content

Commit

Permalink
fix(build): copy binaries instead of folders
Browse files Browse the repository at this point in the history
Signed-off-by: shubham <[email protected]>
  • Loading branch information
shubham14bajpai authored and kmova committed Nov 14, 2020
1 parent 3673f0a commit d2267a2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/cspc-operator/cspc-operator.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion build/cvc-operator/cvc-operator.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion build/pool-manager/pool-manager.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build/volume-manager/volume-manager.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2267a2

Please sign in to comment.