Skip to content
Snippets Groups Projects
Commit f4b32033 authored by micah's avatar micah
Browse files

Disable docker-cleanup job when 'testing: true'.

If a container is in a crash loop, when the `docker-cleanup` script runs, it has
a good chance of being removed.

When doing tests, its not uncommon to be in a crash loop scenario while trying
to resolve problems, and it is undesirable to have the container removed out
from under you.

This is particularly problematic when the container is large and/or the network
between you and the registry is not optimal, as one has to repeatedly
re-download the container.
parent 9c0dab13
No related branches found
No related tags found
No related merge requests found
Pipeline #27143 failed
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
dest: /etc/cron.d/docker-cleanup dest: /etc/cron.d/docker-cleanup
content: "33 */3 * * * root runcron --quiet /usr/local/bin/docker-cleanup\n" content: "33 */3 * * * root runcron --quiet /usr/local/bin/docker-cleanup\n"
mode: 0644 mode: 0644
when: "not testing|default(True)"
- import_tasks: start.yml - import_tasks: start.yml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment