question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configuration option to execute docker:stop in case of the failing build

See original GitHub issue

Description

We use the plugin the start some docker images in the pre-integration-test phase and stop them in the post-integration-test. This works very well. However, if any of the integration tests fails the build, then the created docker containers remain running. Thus, it would be great if there would be a configuration option to run docker:stop in case the build fails. This way everything would be cleaned up correctly.

This is a feature request, however I am not sure how hard it is to implement this or if it’s possible at all.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:25 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
akg268commented, Oct 15, 2018

+1 the container is not stopping incase of test failures. But I use surefire to run my test.

1reaction
balazs-zsoldoscommented, Aug 30, 2021

@rohanKanojia Sure. I will try to have a look in the following days at the source and send a PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Does My Docker Container Stop? - Tutorial Works
When you run a container image you've pulled from a registry like Docker Hub, ... the case if you're using Kubernetes, which will...
Read more >
docker stop - Docker Documentation
docker stop : The main process inside the container will receive `SIGTERM`, ... in the container's Dockerfile, or the --stop-signal option to docker...
Read more >
Stop and delete Docker container if it's running - Stack Overflow
In this case, you can use the below command for preventing the build from failing. 'docker stop rabbitmq && docker rm rabbitmq ||...
Read more >
fabric8io/docker-maven-plugin
Specification of external configuration as an alternative to this XML based configuration with <run> and <build> . It contains a <type> element ...
Read more >
Docker - ArchWiki - Arch Linux
5 Run GPU accelerated Docker containers with NVIDIA GPUs ... This is useful for setting up reoccuring services that are use often and/or ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found