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
822B

  1. FROM ubuntu
  2. MAINTAINER charles@charlesreid1.com
  3. # Install MongoDB 3.0
  4. RUN DEBIAN_FRONTEND=noninteractive && \
  5. apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 && \
  6. 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 && \
  7. apt-get update && \
  8. 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 && \
  9. apt-get install -y netcat && \
  10. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  11. # Add scripts
  12. ADD scripts /scripts
  13. RUN chmod +x /scripts/*.sh
  14. RUN touch /.firstrun
  15. # Command to run
  16. ENTRYPOINT ["/scripts/run.sh"]
  17. CMD [""]
  18. # Expose listen port
  19. EXPOSE 27017
  20. # Expose our data volumes
  21. VOLUME ["/data"]