Browse code

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

[Carry 24314] Make MongoDB sample Dockerfile working again
(cherry picked from commit 6e19e7b1d715ac5be4b1a7932b42c5a7eb99a9ad)

Sebastiaan van Stijn authored on 2016/08/03 08:27:26
Showing 1 changed files
... ...
@@ -1,14 +1,15 @@
1 1
 # Dockerizing MongoDB: Dockerfile for building MongoDB images
2
-# Based on ubuntu:latest, installs MongoDB following the instructions from:
2
+# Based on ubuntu:16.04, installs MongoDB following the instructions from:
3 3
 # http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/
4 4
 
5
-FROM       ubuntu:latest
5
+FROM       ubuntu:16.04
6 6
 MAINTAINER Docker
7 7
 
8 8
 # Installation:
9 9
 # Import MongoDB public GPG key AND create a MongoDB list file
10
-RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
11
-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
10
+RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
11
+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
12
+
12 13
 # Update apt-get sources AND install MongoDB
13 14
 RUN apt-get update && apt-get install -y mongodb-org
14 15