Skip to content

Commit

Permalink
Docker: mariadb 10.5 image
Browse files Browse the repository at this point in the history
  • Loading branch information
ojanota authored and f3l1x committed Oct 23, 2023
1 parent 68d2c6f commit 9a44955
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
include:
- version: "mariadb-10-2"
- version: "mariadb-10-4"
- version: "mariadb-10-5"

fail-fast: false

Expand Down
10 changes: 10 additions & 0 deletions mariadb-10-5/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
9 changes: 9 additions & 0 deletions mariadb-10-5/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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 "$@"

0 comments on commit 9a44955

Please sign in to comment.