swarm/docker: allow choosing the binary via CMD

This commit is contained in:
Rafael Matias 2019-03-26 21:06:51 +01:00
parent 709d49218a
commit aba4eeeb05
No known key found for this signature in database
GPG key ID: 1BC39532FB4A2DBD
2 changed files with 2 additions and 1 deletions

View file

@ -21,6 +21,7 @@ COPY --from=builder /go/bin/swarm-smoke /
COPY --from=builder /go/bin/swarm-smoke-pss /
ADD run-smoke.sh /run-smoke.sh
ENTRYPOINT ["/run-smoke.sh"]
CMD [ "/swarm-smoke"]
FROM alpine:3.8 as swarm-global-store
WORKDIR /

View file

@ -4,4 +4,4 @@ set -o errexit
set -o pipefail
set -o nounset
/swarm-smoke $@ 2>&1 || true
$@ || true