pg_dump: not found - for cli container to connect to postgresql
See original GitHub issueIt seems that pg_dump is missing on the cli container
[xxx]cli-drupal:/app/web$ drush sql-sync @self @xxxx -y
You will destroy data in api-lagoon-master.lagoon.ch.amazee.io/drupal and replace with data from drupal.
Do you really want to continue? (y/n): y
Starting to dump database on Source. [ok]
sh: pg_dump: not found
Database dump saved to /home/drush-backups/drupal/20180222134406/xxx.sql.gz [success]
Starting to discover temporary files directory on Destination. [ok]
You will delete files in xxx-xxxx@api-lagoon-master.lagoon.ch.amazee.io:/tmp/xxx.sql.gz and replace with data from /home/drush-backups/drupal/20180222134406/xxx.sql.gz
Do you really want to continue? (y/n): y
Copying dump file from Source to Destination. [ok]
Starting to import dump file onto Destination database.
As a workaround this can be fixed by adding following line to Dockerfile.cli
RUN apk add --no-cache postgresql
It seems that pg_dump
is not existing in a seperate package https://stackoverflow.com/questions/40628472/can-i-install-pg-dump-without-installing-postgres-on-alpine
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
pg_dump: not found - for cli container to connect to postgresql
It seems that pg_dump is missing on the cli container [xxx]cli-drupal:/app/web$ drush sql-sync @self @xxxx -y You will destroy data in ...
Read more >Laravel Squash Migrate Error pg_dump not found
What solved it for me was an installation of mysql-client inside the container in which I was trying to execute php artisan schema:dump...
Read more >How to dump & restore a PostgreSQL database from a docker ...
This quickie assumes you have nothing directly installed on your development machine, so everything is run straight from and to the Docker ...
Read more >Documentation: 15: 26.1. SQL Dump - PostgreSQL
pg_dump is a regular PostgreSQL client application (albeit a particularly clever one). This means that you can perform this backup procedure from any...
Read more >Configuring Databases - CircleCI
The service image gives access to additional services like databases. ... For example, your PostgreSQL container might be running, but might not be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We’re trying to multistage the amazeeio/postgres-drupal image inside our Dockerfile.cli and to copy the pg_dump from there.
Ok as discussed during standup we’ll install the edge version of postgresql-client