From a01ce11538dab4d26859316a99845cc6774049de Mon Sep 17 00:00:00 2001 From: Tomokazu Tantaka Date: Tue, 24 Dec 2024 15:46:26 +0900 Subject: [PATCH] remove replica --- .github/workflows/ci_server.yml | 7 +++++-- docker-compose.yml | 2 -- mongo-init.js | 6 ------ 3 files changed, 5 insertions(+), 10 deletions(-) delete mode 100644 mongo-init.js diff --git a/.github/workflows/ci_server.yml b/.github/workflows/ci_server.yml index 3dccdbcb0..fbb7df89a 100644 --- a/.github/workflows/ci_server.yml +++ b/.github/workflows/ci_server.yml @@ -25,11 +25,14 @@ jobs: ci-server-test: runs-on: ubuntu-latest + services: + mongo: + image: mongo:7 + ports: + - 27017:27017 steps: - name: checkout uses: actions/checkout@v3 - - name: Docker Compose start - run: docker compose -f $GITHUB_WORKSPACE/docker-compose.yml up -d reearth-mongo - name: set up uses: actions/setup-go@v4 with: diff --git a/docker-compose.yml b/docker-compose.yml index 2437f8e0d..f764f2a10 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,5 +20,3 @@ services: - 27017:27017 volumes: - ./mongo:/data/db - - ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro - command: ["mongod", "--replSet", "rs0"] diff --git a/mongo-init.js b/mongo-init.js deleted file mode 100644 index 0b19d02ed..000000000 --- a/mongo-init.js +++ /dev/null @@ -1,6 +0,0 @@ -rs.initiate({ - _id: "rs0", - members: [{ _id: 0, host: "localhost:27017" }], -}); - -rs.status();