add docker build scripts for testing-scheduler
[bottlenecks.git] / testing-scheduler / docker / ui / build.sh
diff --git a/testing-scheduler/docker/ui/build.sh b/testing-scheduler/docker/ui/build.sh
new file mode 100644 (file)
index 0000000..52286a8
--- /dev/null
@@ -0,0 +1,22 @@
+##############################################################################\r
+# Copyright (c) 2018 Huawei Technologies Co.,Ltd and others.\r
+#\r
+# All rights reserved. This program and the accompanying materials\r
+# are made available under the terms of the Apache License, Version 2.0\r
+# which accompanies this distribution, and is available at\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+##############################################################################\r
+\r
+# get the absolute path of this shell file.\r
+basepath=$(cd `dirname $0`; pwd)\r
+# get the root directory of this project\r
+projectpath=$basepath/../..\r
+group="x-lab"\r
+# ui image name\r
+ui_image="$group/testing-scheduler:ui"\r
+\r
+# build the ui-project and generate the dist package.\r
+sh $basepath/pre-builder/build.sh\r
+sh $basepath/pre-builder/run.sh\r
+\r
+docker build -t $ui_image -f $basepath/Dockerfile $projectpath
\ No newline at end of file