From e00803a6ad70d3b01fe205aad8f3c5ffaf58cc85 Mon Sep 17 00:00:00 2001 From: Rafael Peria de Sene Date: Wed, 4 Sep 2019 20:14:43 -0300 Subject: [PATCH] Create Dockerfile.ppc64le This commit adds a new Dockerfile for ppc64le which builds travis-worker binary and run it inside a Docker container. --- Dockerfile.ppc64le | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile.ppc64le diff --git a/Dockerfile.ppc64le b/Dockerfile.ppc64le new file mode 100644 index 000000000..3e69ca912 --- /dev/null +++ b/Dockerfile.ppc64le @@ -0,0 +1,21 @@ +FROM ppc64le/golang:1.12 as builder +MAINTAINER Travis CI GmbH + +COPY . /go/src/github.com/travis-ci/worker +WORKDIR /go/src/github.com/travis-ci/worker +ENV CGO_ENABLED 0 +RUN make build + +FROM ppc64le/alpine:latest +RUN apk --no-cache add ca-certificates curl bash + +COPY --from=builder /go/bin/travis-worker /usr/local/bin/travis-worker +COPY --from=builder /go/src/github.com/travis-ci/worker/systemd.service /app/systemd.service +COPY --from=builder /go/src/github.com/travis-ci/worker/systemd-wrapper /app/systemd-wrapper +COPY --from=builder /go/src/github.com/travis-ci/worker/.docker-entrypoint.sh /docker-entrypoint.sh + +VOLUME ["/var/tmp"] +STOPSIGNAL SIGINT + +ENTRYPOINT ["/docker-entrypoint.sh"] +CMD ["/usr/local/bin/travis-worker"]