-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experimental new docker system that will work with volume_mounts #3
base: master
Are you sure you want to change the base?
Experimental new docker system that will work with volume_mounts #3
Conversation
@PaulGWebster thank you for this PR. If everything works out well I'd like some other colleges to review mentioned security implications. |
as suggested by PR ehrbase/docker#3
…by Docker Hub [skip-ci] - to adapt changes suggested in PR ehrbase/docker#3
|
||
# Stop database before proceeding | ||
su - postgres -c "pg_ctl -D ${PGDATA} -w stop" | ||
psql -U "${POSTGRES_USER}" -d "${POSTGRES_DB}" <<-EOSQL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use verbose form of cli options --username
and --dbname
@@ -3,56 +3,65 @@ FROM postgres:11.5-alpine | |||
# Set default values for database user and passwords | |||
ARG EHRBASE_USER="ehrbase" | |||
ARG EHRBASE_PASSWORD="ehrbase" | |||
ENV EHRBASE_USER=${EHRBASE_USER} | |||
ENV EHRBASE_PASSWORD=${EHRBASE_PASSWORD} | |||
ENV EHRBASE_USER=${EHRBASE_USER:-ehrbase} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to create and push experimental docker image
There are security implications to this!
Make sure to see how the /script directory works!
Also I had to change to MD5 in the pg_hba.conf though I imagine someone with more postgres experience could resolve that!