Update permissions of the mysql data directory in the Dockerfile/Add missing dependency for pwmake
There are two changes in this MR.
-
Update the permissions of the MySQL data directory (/var/lib/mysql) in the Dockerfile to avoid permissions issues when the entrypoint script runs. The permissions will be set to the mysql:mysql user during build time vs at runtime. Without this change, there will need to work arounds when using this image like running an init container as root to update the permissions of /var/lib/mysql to be owned by the mysql user. See the official MySQL image for reference https://github.com/docker-library/mysql/blob/master/8.0/Dockerfile#L73.
-
Add the
cracklib-dicts
dependency forpwmake 128
to work when generating a random root password (this closes https://repo1.dsop.io/dsop/opensource/mysql/mysql8/-/issues/2)