1 ##############################################################################
2 # Copyright (c) 2018 Huawei Technologies Co.,Ltd and others.
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 ##############################################################################
10 # get the absolute path of this shell file.
11 basepath=$(cd `dirname $0`; pwd)
12 tmppath=$basepath/tmp_files
13 docker_tmppath=/home/noroot/build_dir/conductor
15 plugin_image="$group/conductor:builder"
16 plugin_container="conductor-builder"
17 #build the gradle project in a temp container.
20 docker build -t $plugin_image -f $basepath/Dockerfile $basepath
21 docker run -d --name $plugin_container $plugin_image
22 docker cp $plugin_container:$docker_tmppath $tmppath/
23 docker rm -f $plugin_container
24 #docker rmi $plugin_image
26 #build the images of conductor.
27 cd $tmppath/conductor/docker
28 sed -i '/&& npm install/a\ && npm i natives@1.1.6 -S \\' ui/Dockerfile