sqitchers / docker-sqitch

Docker Image packaging for Sqitch
MIT License
36 stars 39 forks source link

Change home directory mountpoint to /root #3

Closed nugget closed 5 years ago

nugget commented 5 years ago

The PostgreSQL libraries do not honor the $HOME environment variable when looking for configuration files like .pgpass. This change amends the Dockerfile to mount the user's home directory in /root which conforms to the /etc/passwd entry for the root user. This allows sqitch to successfully locate .pgpass for credentials when connecting to db:pg: targets.

This could alternatively be solved by overriding or changing /etc/passwd to point to /home for the root user, but this approach seemed the least invasive.

See Issue #2 for more information.

theory commented 5 years ago

Smart, thank you!