We are using USER command to run sqld process from sqld user but this is quite non-flexible. For example, if we will try to mount local user directory to the container it will fail with an error:
This PR changes the way we spawn sqld process: now we run docker-wrapper.sh with root permission which internally change permission of the data dir recursively and then spawn docker-entrypoint.sh from the sqld user with the gosu utility
Context
We are using
USER
command to runsqld
process fromsqld
user but this is quite non-flexible. For example, if we will try to mount local user directory to the container it will fail with an error:This PR changes the way we spawn
sqld
process: now we rundocker-wrapper.sh
with root permission which internally change permission of the data dir recursively and then spawndocker-entrypoint.sh
from thesqld
user with thegosu
utility