Skip to content
Closed
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
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# This recipe is pulled from: https://stackoverflow.com/a/33601894

# Parent Dockerfile https://github.com/docker-library/mongo/blob/982328582c74dd2f0a9c8c77b84006f291f974c3/3.0/Dockerfile
FROM mongo:6.0.1
ARG MONGODB='6.0.1'

FROM mongo:${MONGODB}

# Modify child mongo to use /data/db2 as dbpath (because /data/db wont persist the build)
COPY ./docker/mongodb.conf /etc
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ docker build -t 5e-database .
docker run -i -t 5e-database:latest
```

During the `build` step, you can specify the version of MongoDB to use with the following:

```bash
docker build --build-arg MONGODB=4.4 -t 5e-database .
```

*MongoDB v4.4 is the latest version that does not require the AVX instruction set to run.*

### Without Docker

First you need to make sure you have [MongoDB installed locally.](https://docs.mongodb.com/manual/installation/)
Expand Down