From dc253cd1ea27e6582500877137bc9e26143ee6b0 Mon Sep 17 00:00:00 2001 From: "Fco. Javier Delgado del Hoyo" Date: Sun, 8 Dec 2024 12:52:35 +0100 Subject: [PATCH] stick to client 10.11 version --- Dockerfile | 18 +++++++++--------- docker-compose.yaml | 11 ++++++----- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 969c917..73a2588 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,17 +12,17 @@ ENV GO111MODULE=on RUN go mod tidy RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -a -o /go/bin/dockerize . -FROM alpine:3.21.0 +FROM alpine:3.20.3 LABEL maintainer "Fco. Javier Delgado del Hoyo " RUN apk add --update \ - tzdata \ - bash \ - mysql-client \ - gzip \ - openssl \ - mariadb-connector-c \ - fdupes && \ + tzdata \ + bash \ + gzip \ + openssl \ + mysql-client=~10.11 \ + mariadb-connector-c \ + fdupes && \ rm -rf /var/cache/apk/* COPY --from=binary /go/bin/dockerize /usr/local/bin @@ -43,6 +43,6 @@ RUN mkdir /backup && \ VOLUME ["/backup"] HEALTHCHECK --interval=2s --retries=1800 \ - CMD stat /HEALTHY.status || exit 1 + CMD stat /HEALTHY.status || exit 1 CMD dockerize -wait tcp://${MYSQL_HOST}:${MYSQL_PORT} -timeout ${TIMEOUT} /run.sh diff --git a/docker-compose.yaml b/docker-compose.yaml index 6dfbf75..5ac0e9d 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,8 +1,9 @@ -version: "2" services: mariadb: - image: mariadb:10 + image: mariadb:10.11 container_name: my_mariadb + security_opt: + - seccomp:unconfined expose: - 3306 volumes: @@ -14,7 +15,7 @@ services: - MYSQL_ALLOW_EMPTY_ROOT_PASSWORD=yes restart: unless-stopped healthcheck: - test: ["CMD", "healthcheck.sh", "--su-mysql", "--connect"] + test: [ "CMD", "healthcheck.sh", "--su-mysql", "--connect" ] timeout: 5s retries: 10 @@ -34,6 +35,6 @@ services: - INIT_BACKUP=1 - CRON_TIME=0 0 * * * restart: unless-stopped - -volumes: + +volumes: data: