Merge pull request #25350 from thaJeztah/carry-24314-mongodb-example-update

[Carry 24314] Make MongoDB sample Dockerfile working again
This commit is contained in:
Sebastiaan van Stijn 2016-08-03 01:27:26 +02:00 коммит произвёл GitHub
Родитель 2cb1281a4a 60f4c7dac3
Коммит 6e19e7b1d7
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -1,14 +1,15 @@
# Dockerizing MongoDB: Dockerfile for building MongoDB images # Dockerizing MongoDB: Dockerfile for building MongoDB images
# Based on ubuntu:latest, installs MongoDB following the instructions from: # Based on ubuntu:16.04, installs MongoDB following the instructions from:
# http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ # http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/
FROM ubuntu:latest FROM ubuntu:16.04
MAINTAINER Docker MAINTAINER Docker
# Installation: # Installation:
# Import MongoDB public GPG key AND create a MongoDB list file # Import MongoDB public GPG key AND create a MongoDB list file
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
RUN echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list RUN echo "deb http://repo.mongodb.org/apt/ubuntu $(cat /etc/lsb-release | grep DISTRIB_CODENAME | cut -d= -f2)/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list
# Update apt-get sources AND install MongoDB # Update apt-get sources AND install MongoDB
RUN apt-get update && apt-get install -y mongodb-org RUN apt-get update && apt-get install -y mongodb-org