This image has been created primarily for quick database checks from my Jenkins jobs.
It only includes the MySQL / MariaDB client which sees a new minor release (e.g. version 0.12.0) approximately once a year. TBC
IMAGE=mysql-client
ALPINE_VERSION=3.13
DEBIAN_VERSION=buster
ALPINE_MARIADB_VERSION=10.5
DEBIAN_MARIADB_VERSION=10.3
docker image build . -t ${IMAGE}:${ALPINE_MARIADB_VERSION}-alpine${ALPINE_VERSION}
docker image build . -f Dockerfile-slim -t ${IMAGE}:${DEBIAN_MARIADB_VERSION}-slim-${DEBIAN_VERSION}
git add Dockerfile* README.md
git commit -m "Update to Alpine ${ALPINE_VERSION}, awscli ${AWS_VERSION}"
git push
for TAG in ${ALPINE_MARIADB_VERSION}-alpine${ALPINE_VERSION} ${DEBIAN_MARIADB_VERSION}-slim-${DEBIAN_VERSION}
do
git tag ${TAG}
git push origin ${TAG}
done
docker pull logiqx/${IMAGE}:${ALPINE_MARIADB_VERSION}-alpine${ALPINE_VERSION}
for TAG in ${ALPINE_MARIADB_VERSION}-alpine latest
do
docker tag logiqx/${IMAGE}:${ALPINE_MARIADB_VERSION}-alpine${ALPINE_VERSION} logiqx/${IMAGE}:${TAG}
docker push logiqx/${IMAGE}:${TAG}
done
docker pull logiqx/${IMAGE}:${DEBIAN_MARIADB_VERSION}-slim-${DEBIAN_VERSION}
for TAG in ${DEBIAN_MARIADB_VERSION}-slim
do
docker tag logiqx/${IMAGE}:${DEBIAN_MARIADB_VERSION}-slim-${DEBIAN_VERSION} logiqx/${IMAGE}:${TAG}
docker push logiqx/${IMAGE}:${TAG}
done