Clean Docker images after builds 79/49579/1
authorJose Lausuch <jalausuch@suse.com>
Wed, 13 Dec 2017 14:51:23 +0000 (15:51 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sat, 23 Dec 2017 14:09:07 +0000 (15:09 +0100)
commitf9e71426234fb0303b937d63cfa0020d4b24a267
tree39bb13944c72230aa6b8339f830dbeb382d9551f
parent8d28a8282aaf9aa738e7d43c2bf65ec0d4f20b6a
Clean Docker images after builds

Compared to the related Releng script, it only focuses on cleaning
images. It's considered out of scope to remove remaining docker
containers.

It doesn't force to remove images because base images (e.g. Alpine)
could be selected by other OPNFV projects too. It ensures O is
returned even if one image cannot be removed.

functest-core is removed at the end because all Functest containers
depend on it.

The script works well in a nominal building env. Any remaining
Functest images or containers must be removed by hand.

Conflicts:
    build.sh

JIRA: FUNCTEST-898

Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I72d8214b711680ec7958af1d427b23dee6337bf6
Signed-off-by: Jose Lausuch <jalausuch@suse.com>
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 98a942469134fcc3f91b6658a6fbb256d9d89518)
build.sh