Docker image for DBD::mysql
Closed this issue · 1 comments
dveeden commented
What enhancement would you like in DBD::mysql?
The perl:5.38
docker image is based on Debian Bookworm. This means it doesn't ship with MySQL 8.x client libraries. This makes building DBD::mysql more difficult as it no longer supports the MariaDB client libraries. Both Debian Sid and Ubuntu have MySQL 8.x client libraries in their repositories.
- https://packages.ubuntu.com/search?keywords=libmysqlclient-dev
- https://packages.debian.org/search?keywords=libmysqlclient-dev
It might be good to have a Dockerfile
and maybe a pre-build image that adds the MySQL APT Repository to make this easier for people to use.
We could start with this Dockerfile
that was created by @ktown007
Other information
No response
dveeden commented
$ docker run -it dveeden/dbd-mysql:master
Loading DB routines from perl5db.pl version 1.77
Editor support available.
Enter h or 'h h' for help, or 'man perldebug' for more help.
main::(-e:1): 0
DB<1> use DBD::mysql;
DB<2> print "This is $DBD::mysql::VERSION\n"
This is 5.002
DB<3>
Some open questions:
- Let's see how well this works with the release workflow trigger
- This is based on
perl:5.38
. Is that ok or do we need multiple perl versions as well? - This is using my username on docker (
dveeden
) for now. Once this has gone through some testing we could setup a DBD::mysql specific account on docker if needed. - Once it has some testing we should probably update the README
- The
Dockerfile
now doesn't set a specific version of DBD::mysql ... maybe that would be needed and/or useful?
For now people could use the image and/or use the Dockerfile
as template or example.