Merge "Add test-scheduler dir to verity"
[bottlenecks.git] / testing-scheduler / docker / ui / pre-builder / run.sh
1 ##############################################################################\r
2 # Copyright (c) 2018 Huawei Technologies Co.,Ltd and others.\r
3 #\r
4 # All rights reserved. This program and the accompanying materials\r
5 # are made available under the terms of the Apache License, Version 2.0\r
6 # which accompanies this distribution, and is available at\r
7 # http://www.apache.org/licenses/LICENSE-2.0\r
8 ##############################################################################\r
9 \r
10 group="x-lab"\r
11 # ui image name\r
12 ui_image="$group/testing-scheduler:ui-builder"\r
13 # ui container name\r
14 ui_container='t-scheduler-ui-builder'\r
15 # get the absolute path of this shell file.\r
16 basepath=$(cd `dirname $0`; pwd)\r
17 docker run -d --name $ui_container $ui_image\r
18 \r
19 docker cp $ui_container:/home/testing-scheduler/ui/dist $basepath/../\r
20 docker rm -f $ui_container\r
21 docker rmi $ui_image