- 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
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

View File

@@ -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: