Public Repository

Last pushed: a year ago
Short Description
Short description is empty for this repo.
Full Description

FROM ubuntu:14.04
MAINTAINER Sekou Oumar KONE oumar.kone@yahny.net
ENV REFRESHED_AT 2016-03-18

Add 10gen official apt source to the sources list

RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
RUN echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list

Install MongoDB

RUN apt-get -qqy update && apt-get install -y mongodb-org

Pin your specific version of MongoDB

RUN echo "mongodb-org hold" | dpkg --set-selections
RUN echo "mongodb-org-server hold" | dpkg --set-selections
RUN echo "mongodb-org-shell hold" | dpkg --set-selections
RUN echo "mongodb-org-mongos hold" | dpkg --set-selections
RUN echo "mongodb-org-tools hold" | dpkg --set-selections

Create the MongoDB data directory

VOLUME /data/db

EXPOSE 27017
ENTRYPOINT ["usr/bin/mongod"]
CMD ["--help"]

Docker Pull Command
Owner
oukone

Comments (0)