Last active
August 29, 2015 14:07
-
-
Save bamthomas/bdb10c1c84f190c67479 to your computer and use it in GitHub Desktop.
docker rethinkdb node
This file contains hidden or 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: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"] |
This file contains hidden or 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
# 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