logstash/ci/docker_prune.sh
Jake Landis 196d1a1f7e Introduce docker for CI builds.
This commit includes:
* A base Dockerfile and script to push to a Docker repo
* A per-build Dockerfile (derived from the base)
* Updates to the test scripts to allow for more parallel builds
* Docker wrappers for the tests scripts
* Update for the integration test readme to manually run the tests
* Clean up the output of the Java tests
* Remove offline tag for tests (no longer needed that we don't use docker dependent services)

This commit does NOT include:
* Changes needed for the CI system to use Docker

Fixes #8223
2017-09-14 18:55:41 +00:00

6 lines
234 B
Bash
Executable file

#!/bin/bash -i
echo "Removing containers older then 8 hours"
docker container prune -f --filter "until=8h"
echo "Removing all images, except with the label of retention=keep"
docker image prune -a -f --filter "label!=retention=keep"