Skip to content

Instantly share code, notes, and snippets.

@mreiferson
Last active April 12, 2016 10:10
Show Gist options
  • Save mreiferson/7751214 to your computer and use it in GitHub Desktop.
Save mreiferson/7751214 to your computer and use it in GitHub Desktop.
nsqd Dockerfile
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