Migration matrix podman 4.1 - Fix 3/x

This commit is contained in:
KsmoinO 2022-11-05 19:46:53 +01:00
parent 9c33630154
commit c24ce37b03

View file

@ -23,7 +23,8 @@ fi
podman image pull ${synapse_image}:${synapse_version} &&
podman image exists ${synapse_image}:${synapse_version} &&
podman pull ${postgres_image}:${postgres_version} &&
podman pod create --publish ${listen_if}:${listen_port}:8008 --name ${pod_name} --infra=true --infra-name=${project_name}_infra --share='' &&
podman network create ${project_name}_default &&
podman pod create --name ${pod_name} --infra=true --infra-name=${project_name}_infra --share='' &&
podman run -d --name ${db_container_name} --pod ${pod_name} --requires=${project_name}_infra --net ${project_name}_default \
--mount type=volume,src=${dbvolume},dst=/var/lib/postgresql/data/ \
-e POSTGRES_PASSWORD=${GARBAYE_MATRIX_POSTGRES_PASSWORD} \
@ -35,7 +36,7 @@ echo -n "Waiting for PostgreSQL to be ready... " &&
( podman logs -f synapse-db 2>&1 & ) | grep -q 'database system is ready to accept connections' &&
echo "OK." &&
podman run -d --name ${container_name} --pod ${pod_name} --requires=${project_name}_infra --net ${project_name}_default \
--mount type=volume,src=${confvolume},dst=/data ${synapse_image}:${synapse_version} &&
--mount type=volume,src=${confvolume},dst=/data ${synapse_image}:${synapse_version} --publish ${listen_if}:${listen_port}:8008 &&
echo -n "Waiting for background tasks to end... " &&
( podman logs -f synapse 2>&1 & ) | grep -q 'No more background updates to do' &&
echo "OK." &&