Skip to content

Conversation

@guydou
Copy link

@guydou guydou commented Jun 21, 2017

The FILE suffix is supporeted in docker-entry of postgres image, but was removed when the ./docker-entry.sh was overriden

so I added that support,

also the setup_replication.sh f needed the password that comes from file, so I added that there as well

Copy link
Owner

@DanielDent DanielDent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pull request. Looking pretty good - one quick question below.

echo "Waiting for master to ping..."
sleep 1s
done
PGPASSWORD=${POSTGRES_PASSWORD}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if only PGPASSWORD is set & POSTGRES_PASSWORD isn't?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand the question, POSTGRES_PASSWORD has to be set, otherwise the scripts will not work regradless of my change, am I missing something?

the reason I added PGPASSWORD=${POSTGRES_PASSWORD} is to make the ping to master to work, since this script need the password in order to work

@DanielDent
Copy link
Owner

I apologize I did not previously have time to properly review and merge your work.

I've created a new patch based build process on the dev branch, and builds from this process temporarily live at https://hub.docker.com/r/danieldent/docker-postgres-replication-dev/ until I and other community members have had a chance to test these updates (the new build process also builds the -alpine variants as well as Postgres 10). I have not had time to even run these new builds, so please run this builds in test prior to dropping them into a production environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants