Skip to content

Commit

Permalink
Add tcheck binary to docker images (cadence-workflow#2439)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark authored and longquanzheng committed Aug 30, 2019
1 parent 442aff9 commit 370146d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,27 @@ ARG TARGET=server
# Can be used in case a proxy is necessary
ARG GOPROXY

# Build tcheck binary
FROM golang:1.12.7-alpine AS tcheck

RUN apk add --update --no-cache ca-certificates git curl

ENV GO111MODULE=off

RUN curl https://glide.sh/get | sh

ENV TCHECK_VERSION=v1.1.0

RUN go get -d github.com/uber/tcheck
RUN cd /go/src/github.com/uber/tcheck && git checkout ${TCHECK_VERSION}

WORKDIR /go/src/github.com/uber/tcheck

RUN glide install

RUN go install


# Build Cadence binaries
FROM golang:1.12.7-alpine AS builder

Expand Down Expand Up @@ -51,6 +72,7 @@ FROM alpine AS cadence-server
ENV CADENCE_HOME /etc/cadence
RUN mkdir -p /etc/cadence

COPY --from=tcheck /go/bin/tcheck /usr/local/bin
COPY --from=dockerize /usr/local/bin/dockerize /usr/local/bin
COPY --from=builder /cadence/cadence-cassandra-tool /usr/local/bin
COPY --from=builder /cadence/cadence-sql-tool /usr/local/bin
Expand Down Expand Up @@ -86,6 +108,7 @@ CMD /start.sh
# Cadence CLI
FROM alpine AS cadence-cli

COPY --from=tcheck /go/bin/tcheck /usr/local/bin
COPY --from=builder /cadence/cadence /usr/local/bin

ENTRYPOINT ["cadence"]
Expand Down

0 comments on commit 370146d

Please sign in to comment.