forked from linkedin/Burrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Dockerfile and Docker-compose to project
- Loading branch information
Showing
6 changed files
with
103 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ Burrow | |
!config | ||
log | ||
.idea | ||
Burrow.iml | ||
Burrow.iml | ||
tmp |
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,16 @@ | ||
FROM golang:alpine | ||
|
||
MAINTAINER LinkedIn Burrow "https://github.com/linkedin/Burrow" | ||
|
||
RUN apk add --update bash curl git && rm -rf /var/cache/apk/* | ||
|
||
RUN wget https://raw.githubusercontent.com/pote/gpm/v1.4.0/bin/gpm && chmod +x gpm && mv gpm /usr/local/bin | ||
|
||
ADD . $GOPATH/src/github.com/linkedin/burrow | ||
RUN cd $GOPATH/src/github.com/linkedin/burrow && gpm install && go install | ||
|
||
ADD docker-config /etc/burrow | ||
|
||
WORKDIR /var/tmp/burrow | ||
|
||
CMD ["/go/bin/burrow", "--config", "/etc/burrow/burrow.cfg"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version: "2" | ||
services: | ||
burrow: | ||
build: . | ||
volumes: | ||
- ${PWD}/docker-config:/etc/burrow/ | ||
- ${PWD}/tmp:/var/tmp/burrow | ||
ports: | ||
- 8000:8000 | ||
depends_on: | ||
- zookeeper | ||
- kafka | ||
restart: always | ||
|
||
zookeeper: | ||
image: wurstmeister/zookeeper | ||
ports: | ||
- 2181:2181 | ||
|
||
kafka: | ||
image: wurstmeister/kafka | ||
ports: | ||
- 9092:9092 | ||
environment: | ||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181/local | ||
KAFKA_ADVERTISED_HOST_NAME: kafka | ||
KAFKA_ADVERTISED_PORT: 9092 | ||
KAFKA_CREATE_TOPICS: "test-topic:2:1,test-topic2:1:1,test-topic3:1:1" |
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 @@ | ||
[general] | ||
logconfig=/etc/burrow/logging.cfg | ||
group-blacklist=^(console-consumer-|python-kafka-consumer-).*$ | ||
|
||
[zookeeper] | ||
hostname=zookeeper | ||
port=2181 | ||
timeout=6 | ||
lock-path=/burrow/notifier | ||
|
||
[kafka "local"] | ||
broker=kafka | ||
broker-port=9092 | ||
offsets-topic=__consumer_offsets | ||
zookeeper=zookeeper | ||
zookeeper-path=/local | ||
zookeeper-offsets=true | ||
offsets-topic=__consumer_offsets | ||
|
||
[tickers] | ||
broker-offsets=60 | ||
|
||
[lagcheck] | ||
intervals=10 | ||
expire-group=604800 | ||
|
||
[httpserver] | ||
server=on | ||
port=8000 |
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,8 @@ | ||
<seelog minlevel="debug"> | ||
<outputs formatid="main"> | ||
<rollingfile type="date" filename="/var/tmp/burrow/burrow.log" datepattern="2006-01-02" maxrolls="7" /> | ||
</outputs> | ||
<formats> | ||
<format id="main" format="%Date(2006-01-02 15:04:05) [%LEVEL] %Msg%n"/> | ||
</formats> | ||
</seelog> |