1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
12 IMAGE = opnfv/yardstick-ci
18 /usr/bin/docker build --rm=true --no-cache=true -t $(IMAGE):14.04 yardstick-ci
19 /usr/bin/docker tag -f $(IMAGE):14.04 $(IMAGE)
24 docker ps | grep $(IMAGE) | awk '{print $$1}' | xargs -r docker stop
25 docker ps -a | grep $(IMAGE) | awk '{print $$1}' | xargs -r docker rm
26 docker images -a | grep $(IMAGE) | awk '{print $$3}' | sort | uniq | xargs -r docker rmi