bug-fix: add tmp files clean-up for test scheduler
[bottlenecks.git] / test-scheduler / docker / clean.sh
1 ##############################################################################
2 # Copyright (c) 2018 Huawei Technologies Co.,Ltd and others.
3 #
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 ##############################################################################
9
10 basepath=$(cd `dirname $0`; pwd)
11
12 sudo docker rm -f t-scheduler-server \
13                   t-scheduler-ui \
14                   conductor_conductor-server_1 \
15                   conductor_conductor-ui_1 \
16                   conductor_dynomite_1 \
17                   conductor_elasticsearch_1
18
19 sudo docker network rm conductor_default
20
21 sudo docker rmi x-lab/test-scheduler:server \
22                 x-lab/test-scheduler:ui \
23                 x-lab/conductor:builder \
24                 conductor:ui \
25                 conductor:server \
26                 elasticsearch:2.4 \
27                 v1r3n/dynomite:latest \
28                 java:8-jre-alpine \
29                 python:2.7 \
30                 node:alpine \
31                 nginx:latest \
32                 java:latest \
33
34 sudo rm -rf ${basepath}/plugin/tmp_files/
35
36 echo "--- Clean Finished ---"