- Trying to fix the mongo init
Some checks failed
continuous-integration/drone/push Build encountered an error

This commit is contained in:
2023-05-10 10:01:17 -04:00
parent 09332aca24
commit 08e6af2eae
2 changed files with 15 additions and 10 deletions

View File

@@ -3,7 +3,7 @@ type: docker
name: Test Pipeline name: Test Pipeline
workspace: workspace:
path: /drone/grow path: /drone/auth
steps: steps:
- name: yarn install - name: yarn install
@@ -70,7 +70,7 @@ type: docker
name: Publish Pipeline name: Publish Pipeline
workspace: workspace:
path: /drone/grow path: /drone/auth
steps: steps:
- name: Build Package - name: Build Package
@@ -85,7 +85,7 @@ steps:
- yarn publish -t ${DRONE_TAG} - yarn publish -t ${DRONE_TAG}
volumes: volumes:
- name: npmrc - name: npmrc
path: /drone/grow/.npmrc path: /drone/auth/.npmrc
- name: Report NPM Publish Status - name: Report NPM Publish Status
image: plugins/webhook image: plugins/webhook
settings: settings:
@@ -154,7 +154,7 @@ type: docker
name: Staging Deploy Pipeline name: Staging Deploy Pipeline
workspace: workspace:
path: /drone/grow path: /drone/auth
steps: steps:
- name: Deploy Container - name: Deploy Container
@@ -172,11 +172,13 @@ steps:
- docker compose -f docker-compose.staging-build.yml up --wait - docker compose -f docker-compose.staging-build.yml up --wait
volumes: volumes:
- name: env-secrets - name: env-secrets
path: /drone/grow/staging.env path: /drone/auth/staging.env
- name: dockersock - name: dockersock
path: /var/run/docker.sock path: /var/run/docker.sock
- name: dockerconfig - 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 - name: Send Status Notifications
image: plugins/webhook image: plugins/webhook
privileged: true privileged: true
@@ -204,6 +206,9 @@ volumes:
- name: env-secrets - name: env-secrets
host: host:
path: /volume1/docker/beethoven/labs-auth/staging.env path: /volume1/docker/beethoven/labs-auth/staging.env
- name: mongo-init
host:
path: /drone/auth/mongo-init.js
depends_on: depends_on:
- Test Pipeline - Test Pipeline
@@ -220,7 +225,7 @@ type: docker
name: Production Deploy Pipeline name: Production Deploy Pipeline
workspace: workspace:
path: /drone/grow path: /drone/auth
clone: clone:
disable: true disable: true
@@ -241,11 +246,11 @@ steps:
- docker compose -f docker-compose.production-build.yml up --wait - docker compose -f docker-compose.production-build.yml up --wait
volumes: volumes:
- name: env-secrets - name: env-secrets
path: /drone/grow/production.env path: /drone/auth/production.env
- name: dockersock - name: dockersock
path: /var/run/docker.sock path: /var/run/docker.sock
- name: dockerconfig - name: dockerconfig
path: /drone/grow/.docker/config.json path: /drone/auth/.docker/config.json
- name: Send Status Notifications - name: Send Status Notifications
image: plugins/webhook image: plugins/webhook
privileged: true privileged: true

View File

@@ -9,7 +9,7 @@ services:
- docknet - docknet
volumes: volumes:
- 'auth-db:/data' - '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 restart: unless-stopped
image: mongo:latest image: mongo:latest
auth-service: auth-service: