Rename db-migration-worker to maintenance-worker

This commit is contained in:
Robert Schäfer 2019-04-18 20:14:17 +02:00
parent aea6e72f2b
commit 77ac0ce7a6
21 changed files with 16 additions and 19 deletions

View File

@ -15,7 +15,7 @@ node_modules/
scripts/ scripts/
dist/ dist/
db-migration-worker/ maintenance-worker/
neo4j/ neo4j/
public/uploads/* public/uploads/*

View File

@ -1,3 +0,0 @@
|1|GuOYlVEhTowidPs18zj9p5F2j3o=|sDHJYLz9Ftv11oXeGEjs7SpVyg0= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBM5N29bI5CeKu1/RBPyM2fwyf7fuajOO+tyhKe1+CC2sZ1XNB5Ff6t6MtCLNRv2mUuvzTbW/HkisDiA5tuXUHOk=
|1|2KP9NV+Q5g2MrtjAeFSVcs8YeOI=|nf3h4wWVwC4xbBS1kzgzE2tBldk= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNhRK6BeIEUxXlS0z/pOfkUkSPfn33g4J1U3L+MyUQYHm+7agT08799ANJhnvELKE1tt4Vx80I9UR81oxzZcy3E=
|1|HonYIRNhKyroUHPKU1HSZw0+Qzs=|5T1btfwFBz2vNSldhqAIfTbfIgQ= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNhRK6BeIEUxXlS0z/pOfkUkSPfn33g4J1U3L+MyUQYHm+7agT08799ANJhnvELKE1tt4Vx80I9UR81oxzZcy3E=

View File

@ -9,14 +9,14 @@ services:
- mongo-export:/mongo-export - mongo-export:/mongo-export
environment: environment:
- NEO4J_apoc_import_file_enabled=true - NEO4J_apoc_import_file_enabled=true
db-migration-worker: maintenance-worker:
build: build:
context: db-migration-worker context: maintenance-worker
volumes: volumes:
- mongo-export:/mongo-export - mongo-export:/mongo-export
- uploads:/uploads - uploads:/uploads
- ./db-migration-worker/migration/:/migration - ./maintenance-worker/migration/:/migration
- ./db-migration-worker/.ssh/:/root/.ssh/ - ./maintenance-worker/.ssh/:/root/.ssh/
networks: networks:
- hc-network - hc-network
depends_on: depends_on:

View File

@ -29,7 +29,7 @@ SSH_USERNAME=username SSH_HOST=some.server.com MONGODB_USERNAME='hc-api' MONGODB
Download the remote mongo database: Download the remote mongo database:
```bash ```bash
docker-compose exec db-migration-worker ./import.sh docker-compose exec maintenance-worker ./import.sh
``` ```
Import the local download into Neo4J: Import the local download into Neo4J:

View File

@ -2,7 +2,7 @@
kind: Pod kind: Pod
apiVersion: v1 apiVersion: v1
metadata: metadata:
name: nitro-db-migration-worker name: nitro-maintenance-worker
namespace: human-connection namespace: human-connection
spec: spec:
volumes: volumes:
@ -14,11 +14,11 @@
persistentVolumeClaim: persistentVolumeClaim:
claimName: mongo-export-claim claimName: mongo-export-claim
containers: containers:
- name: nitro-db-migration-worker - name: nitro-maintenance-worker
image: humanconnection/db-migration-worker:latest image: humanconnection/maintenance-worker:latest
envFrom: envFrom:
- configMapRef: - configMapRef:
name: db-migration-worker name: maintenance-worker
volumeMounts: volumeMounts:
- name: secret-volume - name: secret-volume
readOnly: false readOnly: false

View File

@ -8,12 +8,12 @@
template: template:
spec: spec:
containers: containers:
- name: nitro-db-migration-worker - name: nitro-maintenance-worker
image: humanconnection/db-migration-worker:latest image: humanconnection/maintenance-worker:latest
imagePullPolicy: Always imagePullPolicy: Always
envFrom: envFrom:
- configMapRef: - configMapRef:
name: db-migration-worker name: maintenance-worker
volumeMounts: volumeMounts:
- name: secret-volume - name: secret-volume
readOnly: false readOnly: false

View File

@ -8,12 +8,12 @@
template: template:
spec: spec:
containers: containers:
- name: nitro-db-migration-worker - name: nitro-maintenance-worker
image: humanconnection/db-migration-worker:latest image: humanconnection/maintenance-worker:latest
imagePullPolicy: Always imagePullPolicy: Always
envFrom: envFrom:
- configMapRef: - configMapRef:
name: db-migration-worker name: maintenance-worker
env: env:
- name: COMMIT - name: COMMIT
value: <BACKEND_COMMIT> value: <BACKEND_COMMIT>