-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerize m3aggregator and m3collector and integrate for clustered do…
…wnsampling (#1061)
- Loading branch information
1 parent
668d176
commit 3bc561b
Showing
15 changed files
with
779 additions
and
165 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,29 @@ | ||
# stage 1: build | ||
FROM golang:1.10-alpine AS builder | ||
LABEL maintainer="The M3DB Authors <[email protected]>" | ||
|
||
# Install Glide | ||
RUN apk add --update glide git make bash | ||
|
||
# Add source code | ||
RUN mkdir -p /go/src/github.com/m3db/m3 | ||
ADD . /go/src/github.com/m3db/m3 | ||
|
||
# Build m3dbnode binary | ||
RUN cd /go/src/github.com/m3db/m3/ && \ | ||
git submodule update --init && \ | ||
make m3aggregator-linux-amd64 | ||
|
||
# stage 2: lightweight "release" | ||
FROM alpine:latest | ||
LABEL maintainer="The M3DB Authors <[email protected]>" | ||
|
||
EXPOSE 5000/tcp 6000/tcp 60001/tcp 7203/tcp 9000-9004/tcp | ||
|
||
RUN apk add --no-cache curl jq | ||
|
||
COPY --from=builder /go/src/github.com/m3db/m3/bin/m3aggregator /bin/ | ||
COPY --from=builder /go/src/github.com/m3db/m3/src/aggregator/config/m3aggregator.yml /etc/m3aggregator/m3aggregator.yml | ||
|
||
ENTRYPOINT [ "/bin/m3aggregator" ] | ||
CMD [ "-f", "/etc/m3aggregator/m3aggregator.yml" ] |
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,29 @@ | ||
# stage 1: build | ||
FROM golang:1.10-alpine AS builder | ||
LABEL maintainer="The M3DB Authors <[email protected]>" | ||
|
||
# Install Glide | ||
RUN apk add --update glide git make bash | ||
|
||
# Add source code | ||
RUN mkdir -p /go/src/github.com/m3db/m3 | ||
ADD . /go/src/github.com/m3db/m3 | ||
|
||
# Build m3dbnode binary | ||
RUN cd /go/src/github.com/m3db/m3/ && \ | ||
git submodule update --init && \ | ||
make m3collector-linux-amd64 | ||
|
||
# stage 2: lightweight "release" | ||
FROM alpine:latest | ||
LABEL maintainer="The M3DB Authors <[email protected]>" | ||
|
||
EXPOSE 7206-7207/tcp | ||
|
||
RUN apk add --no-cache curl jq | ||
|
||
COPY --from=builder /go/src/github.com/m3db/m3/bin/m3collector /bin/ | ||
COPY --from=builder /go/src/github.com/m3db/m3/src/collector/config/m3collector.yml /etc/m3collector/m3collector.yml | ||
|
||
ENTRYPOINT [ "/bin/m3collector" ] | ||
CMD [ "-f", "/etc/m3collector/m3collector.yml" ] |
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
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
Oops, something went wrong.