27f6de33ebd615459d02d1d5dae1ea081f0f5b2b
[bottlenecks.git] / testing-scheduler / docker / server / build.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 # get the absolute path of this shell file.\r
11 basepath=$(cd `dirname $0`; pwd)\r
12 \r
13 # get the root directory of this project\r
14 projectpath=$basepath/../..\r
15 group="x-lab"\r
16 \r
17 # server image name\r
18 server_image="$group/testing-scheduler:server"\r
19 \r
20 docker build -t $server_image -f $basepath/Dockerfile  $projectpath