Last active
April 12, 2016 10:10
-
-
Save mreiferson/7751214 to your computer and use it in GitHub Desktop.
nsqd Dockerfile
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
FROM ubuntu | |
RUN apt-get -y install wget tar ca-certificates | |
RUN wget https://s3.amazonaws.com/bitly-downloads/nsq/nsq-0.2.23.linux-amd64.go1.1.2.tar.gz | |
RUN tar zxvf nsq-0.2.23.linux-amd64.go1.1.2.tar.gz | |
RUN mkdir -p /usr/local/bin | |
RUN cp /nsq-0.2.23.linux-amd64.go1.1.2/bin/nsqd /usr/local/bin | |
RUN mkdir -p /data | |
VOLUME ["/data"] | |
EXPOSE 4150 | |
EXPOSE 4151 | |
CMD /usr/local/bin/nsqd --data-path=/data --broadcast-address=$BROADCAST_ADDRESS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment