Skip to content

Instantly share code, notes, and snippets.

@bamthomas
Last active August 29, 2015 14:07
Show Gist options
  • Save bamthomas/bdb10c1c84f190c67479 to your computer and use it in GitHub Desktop.
Save bamthomas/bdb10c1c84f190c67479 to your computer and use it in GitHub Desktop.
docker rethinkdb node
FROM ubuntu:14.04
RUN locale-gen fr_FR.UTF-8
ENV LANG fr_FR.UTF-8
ENV LANGUAGE fr:en
ENV LC_ALL fr_FR.UTF-8
RUN apt-get update
RUN apt-get install -y wget
RUN wget -qO- http://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
RUN echo 'deb http://download.rethinkdb.com/apt trusty main' | tee /etc/apt/sources.list.d/10gen.list
RUN apt-get update
RUN apt-get install -y rethinkdb
EXPOSE 8100
ENTRYPOINT ["/usr/bin/rethinkdb"]
# for 3 nodes cluster
docker run --name rethinkdb_master -p 8100:8100 -d rethinkdb --bind all --http-port 8100
docker run -d rethinkdb --bind all --join $(docker inspect --format '{{ .NetworkSettings.IPAddress }}' rethinkdb_master)
docker run -d rethinkdb --bind all --join $(docker inspect --format '{{ .NetworkSettings.IPAddress }}' rethinkdb_master)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment