Matrix : fix creation/suppression du reseau
This commit is contained in:
parent
0ea08b0dab
commit
9aff0029d1
|
@ -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/ \
|
||||
|
|
|
@ -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
|
1
podman-matrix/80_destroy_pod.sh
Symbolic link
1
podman-matrix/80_destroy_pod.sh
Symbolic link
|
@ -0,0 +1 @@
|
|||
../_podman-common/80_destroy_pod.sh
|
Loading…
Reference in a new issue