stick to client 10.11 version

This commit is contained in:
Fco. Javier Delgado del Hoyo 2024-12-08 12:52:35 +01:00
parent d5d98e5a7c
commit dc253cd1ea
2 changed files with 15 additions and 14 deletions

View file

@ -12,15 +12,15 @@ ENV GO111MODULE=on
RUN go mod tidy RUN go mod tidy
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -a -o /go/bin/dockerize . 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 <frandelhoyo@gmail.com>" LABEL maintainer "Fco. Javier Delgado del Hoyo <frandelhoyo@gmail.com>"
RUN apk add --update \ RUN apk add --update \
tzdata \ tzdata \
bash \ bash \
mysql-client \
gzip \ gzip \
openssl \ openssl \
mysql-client=~10.11 \
mariadb-connector-c \ mariadb-connector-c \
fdupes && \ fdupes && \
rm -rf /var/cache/apk/* rm -rf /var/cache/apk/*

View file

@ -1,8 +1,9 @@
version: "2"
services: services:
mariadb: mariadb:
image: mariadb:10 image: mariadb:10.11
container_name: my_mariadb container_name: my_mariadb
security_opt:
- seccomp:unconfined
expose: expose:
- 3306 - 3306
volumes: volumes:
@ -14,7 +15,7 @@ services:
- MYSQL_ALLOW_EMPTY_ROOT_PASSWORD=yes - MYSQL_ALLOW_EMPTY_ROOT_PASSWORD=yes
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: ["CMD", "healthcheck.sh", "--su-mysql", "--connect"] test: [ "CMD", "healthcheck.sh", "--su-mysql", "--connect" ]
timeout: 5s timeout: 5s
retries: 10 retries: 10