sqitchers / docker-sqitch

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

Permission error when running Snowflake image under Linux #49

Closed peter-wimsey closed 1 year ago

peter-wimsey commented 1 year ago

When running docker-sqitch.sh I get

$ sqitch deploy
Deploying changes to database
  + change .. [Errno 13] Permission denied: '/var/.snowsql'

Not the same for all commands, log and status work, deploy and revert do not.

I believe this is related to cd14783c71 - my current Linux user has permissions to the mounted files in /repo but not to /var/.snowsql.

Adding the following line

RUN chmod --recursive a+rx /var/.snowsql

at https://github.com/sqitchers/docker-sqitch/blob/v1.3.1.0/snowflake/Dockerfile#L55 seems to fix the issue.

theory commented 1 year ago

Nice find, thank you!