Skip to content

Commit 468cedc

Browse files
committed
Disable pg_dump in docker mode
1 parent a562fa1 commit 468cedc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

@app/db/scripts/dump-db

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ if [ "$GM_DBURL" = "" ]; then
33
echo "This script should only be ran from inside graphile-migrate";
44
exit 1;
55
fi
6-
pg_dump \
6+
7+
# When ran inside docker-compose we need to be able to run a different pg_dump binary
8+
${PG_DUMP:-pg_dump} \
79
--no-sync \
810
--schema-only \
911
--no-owner \

docker-compose.builder.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ services:
33
base:
44
image: node:10
55
user: $UID
6+
environment:
7+
# pg_dump doesn't work in docker-compose mode currently
8+
- PG_DUMP=echo pg_dump
69
volumes:
710
- .:/app
811
- .docker/node_modules:/app/node_modules

0 commit comments

Comments
 (0)