From ac5e09afa705ed819759fa81632e922368b7f6cb Mon Sep 17 00:00:00 2001 From: Sebastian Kirsch Date: Sat, 15 Jun 2024 22:42:30 +0200 Subject: [PATCH] Add IT test When setting autoRemove to true (https://docs.docker.com/reference/cli/docker/container/run/#rm), the container wil be removed by the Docker daemon after stopping it. This lets the stop goal fail (up until v0.44.0). --- it/graceful-container-removal/pom.xml | 51 +++++++++++++++++++++++++++ it/pom.xml | 1 + 2 files changed, 52 insertions(+) create mode 100644 it/graceful-container-removal/pom.xml diff --git a/it/graceful-container-removal/pom.xml b/it/graceful-container-removal/pom.xml new file mode 100644 index 000000000..9987dd09d --- /dev/null +++ b/it/graceful-container-removal/pom.xml @@ -0,0 +1,51 @@ + + + 4.0.0 + + + io.fabric8.dmp.itests + dmp-it-parent + 0.45-SNAPSHOT + ../pom.xml + + + fabric8io + dmp-it-graceful-container-removal + pom + + + + + io.fabric8 + docker-maven-plugin + + + + busybox + + true + + 128 + + + + + + + + start-docker + + start + + + + stop-docker + + stop + + + + + + + diff --git a/it/pom.xml b/it/pom.xml index f2e186e97..18a8397b7 100644 --- a/it/pom.xml +++ b/it/pom.xml @@ -33,6 +33,7 @@ dockerfile-base-as-arg dockerfile-base-as-arg-buildconfig dockerignore + graceful-container-removal healthcheck helloworld log