Skip to content

Commit

Permalink
Update mongodb.md (#1122)
Browse files Browse the repository at this point in the history
In older version docker build was failing.
  • Loading branch information
KonradKlimczak authored and johndmulhausen committed Jan 17, 2017
1 parent 5fb142c commit 4272c6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/examples/mongodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ a MongoDB repository file for the package manager.
```dockerfile
# Installation:
# Import MongoDB public GPG key AND create a MongoDB list file
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
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 apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
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
```

After this initial preparation we can update our packages and install MongoDB.
Expand Down Expand Up @@ -192,4 +192,4 @@ $ mongo --port 28002

- [Linking containers](../userguide/networking/default_network/dockerlinks.md)
- [Cross-host linking containers](../admin/ambassador_pattern_linking.md)
- [Creating an Automated Build](/docker-hub/builds/)
- [Creating an Automated Build](/docker-hub/builds/)

0 comments on commit 4272c6b

Please sign in to comment.