Matrix : fix creation/suppression du reseau

This commit is contained in:
Gitouche 2022-11-13 14:49:38 +01:00
parent 0ea08b0dab
commit 9aff0029d1
3 changed files with 4 additions and 11 deletions

View File

@ -24,7 +24,9 @@ if ! podman image pull ${synapse_image}:${synapse_version}; then
podman image pull ${synapse_image}:${synapse_version} || exit 1
fi
podman pull ${postgres_image}:${postgres_version} &&
podman network create ${project_name}_default &&
if ! podman network exists ${project_name}_default; then
podman network create ${project_name}_default
fi
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/ \

View File

@ -1,10 +0,0 @@
#!/usr/bin/env bash
ABSDIR="$( dirname "$(readlink -f -- "$0")" )"
source ${ABSDIR}/../functions.sh
source ${ABSDIR}/vars.sh
# Run regular prune script for pods
source ${ABSDIR}/../_podman-common/80_destroy_pod.sh &&
# Remove pod network
podman network rm ${project_name}_default

View File

@ -0,0 +1 @@
../_podman-common/80_destroy_pod.sh