Files for building MongoDB docker container.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
822 B

FROM ubuntu
MAINTAINER charles@charlesreid1.com
10 years ago
# Install MongoDB 3.0
10 years ago
RUN DEBIAN_FRONTEND=noninteractive && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 && \
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list && \
10 years ago
apt-get update && \
apt-get install -y mongodb-org=3.0.7 mongodb-org-server=3.0.7 mongodb-org-shell=3.0.7 mongodb-org-mongos=3.0.7 mongodb-org-tools=3.0.7 && \
apt-get install -y netcat && \
10 years ago
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
10 years ago
# Add scripts
ADD scripts /scripts
RUN chmod +x /scripts/*.sh
RUN touch /.firstrun
# Command to run
ENTRYPOINT ["/scripts/run.sh"]
CMD [""]
# Expose listen port
EXPOSE 27017
10 years ago
# Expose our data volumes
VOLUME ["/data"]