forked from IBM/sarama
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (15 loc) · 685 Bytes
/
Dockerfile
File metadata and controls
22 lines (15 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM golang:1.6
RUN mkdir -p /go/src/github.com/Shopify/sarama
COPY . /go/src/github.com/Shopify/sarama
RUN cd /go/src/github.com/Shopify/sarama && \
go-wrapper download
# Build our tools
RUN go build /go/src/github.com/Shopify/sarama/tools/kafka-console-producer/kafka-console-producer.go && \
mv kafka-console-producer /go/bin/
RUN cd /go/src/github.com/Shopify/sarama && \
go build tools/kafka-console-consumer/kafka-console-consumer.go && \
mv kafka-console-consumer /go/bin/
RUN cd /go/src/github.com/Shopify/sarama && \
go build tools/kafka-console-partitionconsumer/kafka-console-partitionconsumer.go && \
mv kafka-console-partitionconsumer /go/bin/
WORKDIR /go/bin