Browse Source

fix: [odoo-tecnativa] avoid leaking stopped containers

framadate
Valentin Lab 6 years ago
parent
commit
16e92631c2
  1. 4
      odoo-tecnativa/actions/load
  2. 4
      odoo-tecnativa/actions/save

4
odoo-tecnativa/actions/load

@ -88,7 +88,7 @@ read-0 container_network container_ip < <(get_container_network_ip "$container")
DEFAULT_CURL_IMAGE=${DEFAULT_CURL_IMAGE:-docker.0k.io/curl}
debug docker run --network "$container_network" \
debug docker run --rm --network "$container_network" \
"-v" "$host_path:/tmp/work" \
"$DEFAULT_CURL_IMAGE" \
-sS \
@ -97,7 +97,7 @@ debug docker run --network "$container_network" \
-F "backup_file=@/tmp/work/${source}" \
-F "name=${dbname}" \
http://${container_ip}:8069/web/database/restore
docker run --network "$container_network" \
docker run --rm --network "$container_network" \
"-v" "$host_path:/tmp/work" \
"$DEFAULT_CURL_IMAGE" \
-sS \

4
odoo-tecnativa/actions/save

@ -92,7 +92,7 @@ read-0 container_network container_ip < <(get_container_network_ip "$container")
DEFAULT_CURL_IMAGE=${DEFAULT_CURL_IMAGE:-docker.0k.io/curl}
debug docker run --network "$container_network" \
debug docker run --rm --network "$container_network" \
"-v" "$host_path:/tmp/work" \
"$DEFAULT_CURL_IMAGE" \
-X POST \
@ -102,7 +102,7 @@ debug docker run --network "$container_network" \
-o "/tmp/work/$basename" \
http://${container_ip}:8069/web/database/backup
docker run --network "$container_network" \
docker run --rm --network "$container_network" \
"-v" "$host_path:/tmp/work" \
"$DEFAULT_CURL_IMAGE" \
-sS \

Loading…
Cancel
Save