# HG changeset patch # User Tom Gottfried # Date 1580136595 -3600 # Node ID 3fc3f1ed8531e21dd7bff4a2fcd6b3edfed2db87 # Parent 8a4c98b80fbd3468a9f0652af96e069b40cf4e2f Fix build for restrictive UMASK on host Building a database image failed due to insufficient permissions for the postgres user to read and execute files transfered with COPY from the host if these files did not have the necessary file modes set for all users, because files are owned by root by default. diff -r 8a4c98b80fbd -r 3fc3f1ed8531 docker/Dockerfile.db --- a/docker/Dockerfile.db Fri Jan 24 17:33:12 2020 +0100 +++ b/docker/Dockerfile.db Mon Jan 27 15:49:55 2020 +0100 @@ -34,10 +34,10 @@ # Expose the PostgreSQL port EXPOSE 5432 -# Create GEMMA role and database +# Create GEMMA roles and database WORKDIR /opt/gemma -COPY schema/*.sql schema/*.sh ./ -COPY schema/demo-data ./demo-data/ +COPY --chown=postgres schema/*.sql schema/*.sh ./ +COPY --chown=postgres schema/demo-data ./demo-data/ RUN $PGBIN/pg_ctl start -wo "--config_file=$PGCONF" && \ ./install-db.sh --demo --metapw "geo2Serv" && \ $PGBIN/pg_ctl stop -m smart