You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+7
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,10 @@ The docker-compose setup uses a mount from the host to keep the postgres databas
58
58
However, this does require a convoluted way to add content to the DB as follows
59
59
60
60
```
61
+
docker-compose down
62
+
# needed since dropping the schema can still leave some user information behind
63
+
sudo rm -Rf postgres-data/
64
+
nohup docker-compose up --force-recreate --remove-orphans &
61
65
docker cp /tmp/backup.sql <container>:/tmp
62
66
docker exec -ti <container> /bin/bash
63
67
su - postgres
@@ -66,6 +70,9 @@ DROP SCHEMA public CASCADE;
66
70
CREATE SCHEMA public;
67
71
\quit
68
72
psql -f /tmp/backup.sql
73
+
# run migration using newly loaded DB
74
+
docker-compose down
75
+
nohup docker-compose up --force-recreate --remove-orphans &
69
76
```
70
77
71
78
Note that database migration is run once during the startup process and is controlled via the `DATABASE_GENERATED` variable. Answer `yes` if you are working as a developer and want to start work from scratch from an empty database. Answer `no` if you are working as an administrator and/or wish to start Dockstore from a production or staging copy of the database.
0 commit comments