Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

Add atomic run ability to mongodb container #240

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mongodb/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM fedora
MAINTAINER http://fedoraproject.org/wiki/Cloud

# This Label is to run the image with atomic command
LABEL RUN='docker run -d -p 27017 $IMAGE'

RUN dnf -y update && dnf clean all

# List of packages that may be needed while troubleshooting, including the MongoDB client. Only uncomment this line if you need the MongoDB client while inside the container.
Expand Down
10 changes: 8 additions & 2 deletions mongodb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@ To build:

Copy the sources down -

# docker build --rm -t <username>/mongo .
# docker build --rm -t fedora/mongo .

To run:

# docker run -d -p 27017 <username>/mongo
On Atomic host:

# atomic run fedora/mongo

On Non-Atomic host:

# docker run -d -p 27017 fedora/mongo

Watch for the database to initialize and start listening (using the container ID from "docker run":

Expand Down