Skip to content

Build various versions of the MySQL clients (mysql, mysqldump)

License

Notifications You must be signed in to change notification settings

ddev/mysql-client-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ddev/mysql-client-build docker image

Overview

This image is used to build specific versions of the mysql client binaries.

It's primarily intended for DDEV's ddev-webserver

See issue.

Features

  • builder for ARM64 and AMD64 versions of mysql and mysqldump binaries that will run on the related Debian 12 Bookworm versions.

Instructions

Running the build script

The build script is build-clients.sh and it can be run with something like:

./build-clients.sh --mysql-version 5.7.44 --arch amd64

When to build

Luckily, this doesn't have to be built too terribly often. Mostly it's only when we have a new mysql server version to deploy.

Building with GitHub Release

Every push builds a set of files that are available on the test page.

But mostly a new release will create a set of tarballs for each version and architecture.

You can update the list of versions to be built in the strategy stanza of .github/workflows/tests.yaml

Building and pushing the imageto Docker Hub

Updating the image is done with the script in image/push.sh:

cd image
./push.sh

Running

It's unusual to run the container by itself, but:

docker run -it --rm ddev/mysql-client-build bash

Source:

https://github.com/ddev/mysql-client-build/blob/main/image/Dockerfile

Maintained by:

The DDEV Docker Maintainers

Where to get help:

Where to file issues:

https://github.com/ddev/mysql-client-build/issues

Documentation:

What is DDEV?

DDEV is an open source tool for launching local web development environments in minutes. It supports PHP, Node.js, and Python (experimental).

These environments can be extended, version controlled, and shared, so you can take advantage of a Docker workflow without Docker experience or bespoke configuration. Projects can be changed, powered down, or removed as easily as they’re started.

License

View license information for the software contained in this image.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.