framadate : switch to mariadb

This commit is contained in:
Gitouche 2023-02-15 22:33:57 +01:00
parent 054825de48
commit 79dd00d85d
3 changed files with 6 additions and 2 deletions

View file

@ -28,13 +28,15 @@ EOT
export framadate_image export framadate_image
export framadate_version export framadate_version
export mysql_image
export mysql_version
export listen_if export listen_if
export listen_port export listen_port
if ! podman image exists ${framadate_image}:${framadate_version}; then if ! podman image exists ${framadate_image}:${framadate_version}; then
podman pull ${framadate_image}:${framadate_version} podman pull ${framadate_image}:${framadate_version}
fi fi
podman pull docker.io/library/mysql:5.7 && podman pull ${mysql_image}:${mysql_version} &&
podman-compose --pod-args="--infra=true --infra-name=${project_name}_infra --share=" --podman-run-args "--requires=${project_name}_infra --env-file .env" up -d && podman-compose --pod-args="--infra=true --infra-name=${project_name}_infra --share=" --podman-run-args "--requires=${project_name}_infra --env-file .env" up -d &&
echo -n "Waiting for initialization to end... " && echo -n "Waiting for initialization to end... " &&

View file

@ -2,7 +2,7 @@ version: '3'
services: services:
framadate-db: framadate-db:
container_name: framadate-db container_name: framadate-db
image: docker.io/library/mysql:5.7 image: "${mysql_image}:${mysql_version}"
environment: environment:
- MYSQL_USER=framadate - MYSQL_USER=framadate
- MYSQL_DATABASE=framadate - MYSQL_DATABASE=framadate

View file

@ -2,6 +2,8 @@
## vars ## vars
framadate_image='git.garbaye.fr/garbaye/framadate-app' framadate_image='git.garbaye.fr/garbaye/framadate-app'
framadate_version='1.1.19' framadate_version='1.1.19'
mysql_image='docker.io/library/mariadb'
mysql_version='10.10'
## default vars : override with ENV var ## default vars : override with ENV var
listen_if="${GARBAYE_FRAMADATE_ENV_LISTENIF:-127.0.0.1}" listen_if="${GARBAYE_FRAMADATE_ENV_LISTENIF:-127.0.0.1}"
listen_port="${GARBAYE_FRAMADATE_ENV_LISTENPORT:-8087}" listen_port="${GARBAYE_FRAMADATE_ENV_LISTENPORT:-8087}"