-
-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Dockerfile, docker-compose.yml. updated examples/cluster document…
…ation closes #49
- Loading branch information
1 parent
565363f
commit 960d403
Showing
3 changed files
with
41 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
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 | ||
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 | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: '3' | ||
|
||
services: | ||
|
||
jocko_main: | ||
build: | ||
context: . | ||
image: jocko | ||
|
||
jocko_cluster: | ||
build: | ||
context: . | ||
image: jocko | ||
command: jocko --serfmembers=jocko_main:9094 |
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