summaryrefslogtreecommitdiffstats
path: root/testapi/update/templates/rm_images.sh
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-10-16 15:02:12 +0800
committerSerena Feng <feng.xiaowei@zte.com.cn>2017-10-16 08:13:55 +0000
commitf632531099379a1046393dfd7063b674f09b8dc0 (patch)
tree13bc7cb2e8acdf0758a42fb622c2fa1f2257ac6f /testapi/update/templates/rm_images.sh
parent4724c5efa2284e42688e3716174a8568a61e5d60 (diff)
delete legacy update code
update directory was employed to update TestAPI before auto deployment is adopted, now it is useless and can be deleted. Change-Id: I4e5ae84e80879cd9f711dc1d02224ae4f5902e49 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/update/templates/rm_images.sh')
-rwxr-xr-xtestapi/update/templates/rm_images.sh8
1 files changed, 0 insertions, 8 deletions
diff --git a/testapi/update/templates/rm_images.sh b/testapi/update/templates/rm_images.sh
deleted file mode 100755
index 6722573..0000000
--- a/testapi/update/templates/rm_images.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/bash
-
-number=`docker images | awk 'NR != 1' | grep testapi | wc -l`
-if [ $number -gt 0 ]; then
- images=`docker images -a | awk 'NR != 1' | grep testapi | awk '{print $1}'`
- echo "begin to rm images $images"
- docker images | awk 'NR != 1' | grep testapi | awk '{print $3}' | xargs docker rmi -f &>/dev/null
-fi