From 9a44955f3d555d0bf95539f40a56c4bae0f648d7 Mon Sep 17 00:00:00 2001 From: ondrejj Date: Mon, 23 Oct 2023 14:05:05 +0200 Subject: [PATCH] Docker: mariadb 10.5 image --- .github/workflows/docker.yml | 1 + mariadb-10-5/Dockerfile | 10 ++++++++++ mariadb-10-5/entrypoint.sh | 9 +++++++++ 3 files changed, 20 insertions(+) create mode 100644 mariadb-10-5/Dockerfile create mode 100755 mariadb-10-5/entrypoint.sh diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 2adb369..bd5b1b8 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -12,6 +12,7 @@ jobs: include: - version: "mariadb-10-2" - version: "mariadb-10-4" + - version: "mariadb-10-5" fail-fast: false diff --git a/mariadb-10-5/Dockerfile b/mariadb-10-5/Dockerfile new file mode 100644 index 0000000..f319598 --- /dev/null +++ b/mariadb-10-5/Dockerfile @@ -0,0 +1,10 @@ +FROM mariadb:10.5 + +ENV MARIADB_ROOT_PASSWORD=docker + +RUN apt update && apt install wait-for-it + +COPY /entrypoint.sh /usr/local/bin/entrypoint.sh + + +CMD ["echo", "OK"] diff --git a/mariadb-10-5/entrypoint.sh b/mariadb-10-5/entrypoint.sh new file mode 100755 index 0000000..6f6b337 --- /dev/null +++ b/mariadb-10-5/entrypoint.sh @@ -0,0 +1,9 @@ +#!/bin/bash +set -eo pipefail +set -x + +/docker-entrypoint.sh mysqld 1>/srv/output.log 2>&1 & + +wait-for-it localhost:3306 --timeout=30 --strict 1>/srv/output.log 2>&1 + +exec "$@"