-
-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: update for dep and use makefile
- Loading branch information
1 parent
960d403
commit 6af135d
Showing
2 changed files
with
11 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,13 @@ | ||
FROM golang:1.9-alpine | ||
|
||
RUN apk update && apk upgrade && \ | ||
apk add --no-cache bash git openssh make | ||
|
||
RUN go get -u github.com/kardianos/govendor | ||
apk add --no-cache bash git openssh make && \ | ||
go get -u github.com/golang/dep/cmd/dep | ||
ADD . /go/src/github.com/travisjeffery/jocko | ||
WORKDIR /go/src/github.com/travisjeffery/jocko | ||
RUN govendor sync | ||
RUN govendor test -v -p=1 +local | ||
RUN go build -o jocko cmd/jocko/main.go | ||
RUN go build -o createtopic cmd/createtopic/main.go | ||
RUN GOOS=linux GOARCH=amd64 make deps build | ||
|
||
FROM alpine:latest | ||
|
||
COPY --from=0 /go/src/github.com/travisjeffery/jocko/jocko /usr/local/bin/jocko | ||
COPY --from=0 /go/src/github.com/travisjeffery/jocko/createtopic /usr/local/bin/createtopic | ||
|
||
EXPOSE 9092 9093 9094 | ||
|
||
VOLUME "/tmp/jocko" | ||
|
||
CMD ["jocko"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters