From e4a78a5d7d9ba7a97c35b35b689a6f7a780b13e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Thu, 21 Nov 2024 18:10:55 +0100 Subject: [PATCH] Remove RS --- .github/workflows/build-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index 69ec90dbf..449606757 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -59,11 +59,10 @@ jobs: - name: "Create MongoDB Atlas Local Cluster" if: ${{ matrix.mongodb == 'Atlas' }} run: | - docker run --name mongodb -p 27017:27017 -e MONGO_INITDB_DATABASE=unittest --detach mongodb/mongodb-atlas-local:latest mongod --replSet rs --setParameter transactionLifetimeLimitSeconds=5 + docker run --name mongodb -p 27017:27017 -e MONGO_INITDB_DATABASE=unittest --detach mongodb/mongodb-atlas-local:latest mongod --setParameter transactionLifetimeLimitSeconds=5 until docker exec --tty mongodb mongosh 127.0.0.1:27017 --eval "db.runCommand({ ping: 1 })"; do sleep 1 done - sudo docker exec --tty mongodb mongosh 127.0.0.1:27017 --eval "rs.initiate({\"_id\":\"rs\",\"members\":[{\"_id\":0,\"host\":\"127.0.0.1:27017\" }]})" - name: "Show MongoDB server status" run: |