Skip to content

Instantly share code, notes, and snippets.

@kvigen
Created September 26, 2014 03:12

Revisions

  1. kvigen created this gist Sep 26, 2014.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    FROM ubuntu:precise
    RUN apt-get -qq update && apt-get -y install wget && \
    wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.0.tgz && \
    tar xzf mongodb-linux-x86_64-2.4.0.tgz && \
    install -t /usr/bin mongodb-linux-x86_64-2.4.0/bin/* && \
    mkdir -p /data/db /var/lib/mongodb/ && \
    rm mongodb-linux-x86_64-2.4.0.tgz && \
    rm -rf mongodb-linux-x86_64-2.4.0
    EXPOSE 27017
    ENTRYPOINT ["usr/bin/mongod"]
    CMD ["--noprealloc", "--smallfiles", "--nojournal", "--replSet", "TailTest"]