Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ jobs:
# uses: borda/cache-container-images-action@b32a5e804cb39af3c3d134fc03ab76eac0bfcfa9
# with:
# prefix-key: "mongo-db"
# images: mongo:latest
# images: mongo:8
- name: Start MongoDB in docker
if: matrix.backend == 'mongodb'
run: |
# start MongoDB in a container
docker run -d -p ${{ env.CACHIER_TEST_PORT }}:27017 --name mongodb mongo:latest
docker run -d -p ${{ env.CACHIER_TEST_PORT }}:27017 --name mongodb mongo:8
# wait for MongoDB to start, which is in average 5 seconds
sleep 5
# show running containers
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ mongo-start:
@echo "Starting MongoDB container..."
@docker ps -q -f name=cachier-test-mongo | grep -q . && \
(echo "MongoDB container already running" && exit 0) || \
(docker run -d -p 27017:27017 --name cachier-test-mongo mongo:latest && \
(docker run -d -p 27017:27017 --name cachier-test-mongo mongo:8 && \
echo "Waiting for MongoDB to start..." && sleep 5)

mongo-stop:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ This script automatically handles Docker container lifecycle, environment variab
.. code-block:: bash

# Start MongoDB with Docker
docker run -d -p 27017:27017 --name cachier-test-mongo mongo:latest
docker run -d -p 27017:27017 --name cachier-test-mongo mongo:8

# Run tests
CACHIER_TEST_HOST=localhost CACHIER_TEST_PORT=27017 CACHIER_TEST_VS_DOCKERIZED_MONGO=true pytest -m mongo
Expand Down
2 changes: 1 addition & 1 deletion scripts/README-local-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ The script manages the following containers:

| Backend | Container Name | Port | Image |
| ---------- | --------------------- | ----- | -------------- |
| MongoDB | cachier-test-mongo | 27017 | mongo:latest |
| MongoDB | cachier-test-mongo | 27017 | mongo:8 |
| Redis | cachier-test-redis | 6379 | redis:7-alpine |
| PostgreSQL | cachier-test-postgres | 5432 | postgres:15 |

Expand Down
2 changes: 1 addition & 1 deletion scripts/docker-compose.all-cores.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: "3.8"

services:
mongodb:
image: mongo:latest
image: mongo:8
container_name: cachier-test-mongo
ports:
- "27017:27017"
Expand Down
4 changes: 2 additions & 2 deletions scripts/test-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ start_mongodb() {

# Start MongoDB
if [ "$VERBOSE" = true ]; then
docker run -d -p 27017:27017 --name $MONGO_CONTAINER mongo:latest
docker run -d -p 27017:27017 --name $MONGO_CONTAINER mongo:8
else
docker run -d -p 27017:27017 --name $MONGO_CONTAINER mongo:latest > /dev/null 2>&1
docker run -d -p 27017:27017 --name $MONGO_CONTAINER mongo:8 > /dev/null 2>&1
fi

# Wait for MongoDB to be ready
Expand Down