From 08e6af2eae0c1a7189efe2a9e93dde281d894724 Mon Sep 17 00:00:00 2001 From: mifi Date: Wed, 10 May 2023 10:01:17 -0400 Subject: [PATCH] - Trying to fix the mongo init --- .drone.yml | 23 ++++++++++++++--------- docker-compose.staging-build.yml | 2 +- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 822f329..5c4b793 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,7 +3,7 @@ type: docker name: Test Pipeline workspace: - path: /drone/grow + path: /drone/auth steps: - name: yarn install @@ -70,7 +70,7 @@ type: docker name: Publish Pipeline workspace: - path: /drone/grow + path: /drone/auth steps: - name: Build Package @@ -85,7 +85,7 @@ steps: - yarn publish -t ${DRONE_TAG} volumes: - name: npmrc - path: /drone/grow/.npmrc + path: /drone/auth/.npmrc - name: Report NPM Publish Status image: plugins/webhook settings: @@ -154,7 +154,7 @@ type: docker name: Staging Deploy Pipeline workspace: - path: /drone/grow + path: /drone/auth steps: - name: Deploy Container @@ -172,11 +172,13 @@ steps: - docker compose -f docker-compose.staging-build.yml up --wait volumes: - name: env-secrets - path: /drone/grow/staging.env + path: /drone/auth/staging.env - name: dockersock path: /var/run/docker.sock - name: dockerconfig - path: /drone/grow/.docker/config.json + path: /drone/auth/.docker/config.json + - name: mongo-init + path: /docker-entrypoint-initdb.d/mongo-init.js - name: Send Status Notifications image: plugins/webhook privileged: true @@ -204,6 +206,9 @@ volumes: - name: env-secrets host: path: /volume1/docker/beethoven/labs-auth/staging.env +- name: mongo-init + host: + path: /drone/auth/mongo-init.js depends_on: - Test Pipeline @@ -220,7 +225,7 @@ type: docker name: Production Deploy Pipeline workspace: - path: /drone/grow + path: /drone/auth clone: disable: true @@ -241,11 +246,11 @@ steps: - docker compose -f docker-compose.production-build.yml up --wait volumes: - name: env-secrets - path: /drone/grow/production.env + path: /drone/auth/production.env - name: dockersock path: /var/run/docker.sock - name: dockerconfig - path: /drone/grow/.docker/config.json + path: /drone/auth/.docker/config.json - name: Send Status Notifications image: plugins/webhook privileged: true diff --git a/docker-compose.staging-build.yml b/docker-compose.staging-build.yml index 427b6de..9927198 100644 --- a/docker-compose.staging-build.yml +++ b/docker-compose.staging-build.yml @@ -9,7 +9,7 @@ services: - docknet volumes: - 'auth-db:/data' - - './mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro' + # - './mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro' restart: unless-stopped image: mongo:latest auth-service: