Skip to content

Commit

Permalink
Disable pg_dump in docker mode
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Oct 28, 2019
1 parent a562fa1 commit 468cedc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion @app/db/scripts/dump-db
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ if [ "$GM_DBURL" = "" ]; then
echo "This script should only be ran from inside graphile-migrate";
exit 1;
fi
pg_dump \

# When ran inside docker-compose we need to be able to run a different pg_dump binary
${PG_DUMP:-pg_dump} \
--no-sync \
--schema-only \
--no-owner \
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ services:
base:
image: node:10
user: $UID
environment:
# pg_dump doesn't work in docker-compose mode currently
- PG_DUMP=echo pg_dump
volumes:
- .:/app
- .docker/node_modules:/app/node_modules
Expand Down

0 comments on commit 468cedc

Please sign in to comment.