Skip to content

Commit

Permalink
Update to use MongoDB 8
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperWA committed Oct 2, 2024
1 parent b8a376d commit a7d18ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ jobs:
cd docker_security && ${{ github.workspace }}/.github/docker_init/setup_mongo_security.sh
cd ${{ github.workspace }}
# Pull mongo:7 image and run it
docker pull mongo:7
# Pull mongo:8 image and run it
docker pull mongo:8
docker run --rm -d \
--name "mongo" \
--network "host" \
--volume "${{ github.workspace }}/.github/docker_init/create_x509_user.js:/docker-entrypoint-initdb.d/0_create_x509_user.js" \
--volume "${{ github.workspace }}/docker_security:/mongo_tls" \
mongo:7 \
mongo:8 \
--tlsMode allowTLS --tlsCertificateKeyFile /mongo_tls/test-server1.pem --tlsCAFile /mongo_tls/test-ca.pem
sleep 10 # Wait for the database to start
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ docker run --rm -d \
-p "27017:27017" \
-v "${PWD}/.github/docker_init/create_x509_user.js:/docker-entrypoint-initdb.d/0_create_x509_user.js" \
-v "${PWD}/docker_security:/mongo_tls" \
mongo:7 \
mongo:8 \
--tlsMode allowTLS --tlsCertificateKeyFile /mongo_tls/test-server1.pem --tlsCAFile /mongo_tls/
```
Expand Down

0 comments on commit a7d18ae

Please sign in to comment.