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