biarms / mysql

One more Docker MySQL project for ARM devices
GNU General Public License v2.0
157 stars 24 forks source link

Make timezone configurable #8

Open finn-matti opened 2 years ago

finn-matti commented 2 years ago

At the moment the timezone of this image is Europe/Paris. It would be great if the image could be configured to use a differenz timezone.

I found this solution to make an image with a configurable timezone.

If this is not possible, then I would like to suggest that the images have the same timezone as the original mysql image (utc).

pijusn commented 2 years ago

This incompatibility with the original image broke some tests over here. Configuring it back to UTC was good enough in that case. Specifically, this means overriding symlinks.

    symlinks = {
        "/etc/localtime": "/usr/share/zoneinfo/UTC",
        "/etc/timezone": "/usr/share/zoneinfo/UTC",
    },

In our case, configurability through environment variables doesn't matter too much but maintaining the same default as official mysql image would be appreciated.