Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add code for section 3 video “Setting up MongoDB and New Project Stru…
…cture”
- Loading branch information
Filip Danić
committed
Dec 8, 2018
1 parent
6873b3a
commit 3750f57
Showing
6 changed files
with
4,331 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Example from https://github.com/docker/docker.github.io/blob/master/engine/examples/mongodb/Dockerfile | ||
|
||
FROM ubuntu:16.04 | ||
|
||
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 | ||
|
||
RUN apt-get update && apt-get install -y mongodb-org | ||
|
||
RUN mkdir -p /data/db | ||
|
||
EXPOSE 27017 | ||
|
||
ENTRYPOINT ["/usr/bin/mongod"] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.