Fix import_legacy_uploads

This commit is contained in:
Robert Schäfer 2019-04-19 15:51:30 +02:00
parent a5f8426325
commit abc17b2adc
5 changed files with 10 additions and 3 deletions

View File

@ -5,7 +5,7 @@ EXPOSE 7687 7474
VOLUME /mongo-export /uploads /data
RUN apk upgrade --update
RUN apk add --no-cache mongodb-tools openssh nodejs yarn
RUN apk add --no-cache mongodb-tools openssh nodejs yarn rsync
FROM humanconnection/nitro-backend:latest as backend
@ -23,5 +23,4 @@ RUN yarn install && \
# would happen if we `yarn install|add` in the target directory
COPY migration ./migration
COPY ./binaries/migrate.sh /usr/local/bin/migrate
COPY ./binaries/sync_uploads.sh /usr/local/bin/sync_uploads
COPY ./binaries/* /usr/local/bin/

4
maintenance/binaries/reset_db Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -e
cd /nitro-backend && yarn run db:reset

4
maintenance/binaries/seed_db Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -e
cd /nitro-backend && yarn run db:reset