Created
February 18, 2017 12:17
-
-
Save chouseknecht/6e7b4859af7f53171f1c7258db80b14a to your computer and use it in GitHub Desktop.
AC import testing - Dockerfile
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
| # | |
| # RethinkDB Dockerfile | |
| # | |
| # https://github.com/dockerfile/rethinkdb | |
| # | |
| # Pull base image. | |
| FROM dockerfile/ubuntu | |
| # Install RethinkDB. | |
| # Foo bar | |
| RUN \ | |
| echo "deb http://download.rethinkdb.com/apt `lsb_release -cs` main" > /etc/apt/sources.list.d/rethinkdb.list && \ | |
| wget -O- http://download.rethinkdb.com/apt/pubkey.gpg | apt-key add - && \ | |
| apt-get update && \ | |
| apt-get install -y rethinkdb python-pip && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Install python driver for rethinkdb | |
| RUN pip install rethinkdb | |
| # Define mountable directories. | |
| VOLUME ["/data"] | |
| # Define working directory. | |
| WORKDIR /data | |
| # Environment vars | |
| ENV myName="John Doe" myDog=Rex\ The\ Dog \ | |
| myCat=fluffy | |
| ENV foo bar baz | |
| ENV myCat bear | |
| # Define default command. | |
| CMD ["rethinkdb", "--bind", "all"] | |
| # Expose ports. | |
| # - 8080: web UI | |
| # - 28015: process | |
| # - 29015: cluster | |
| EXPOSE 8080 | |
| EXPOSE 28015 | |
| EXPOSE 29015 | |
| # Copy some things... | |
| ADD config /config # Copy config to config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment