You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ni...@apache.org on 2020/05/12 08:01:38 UTC

[kylin] 03/04: KYLIN-4272: optimize docker build scripts

This is an automated email from the ASF dual-hosted git repository.

nic pushed a commit to branch 3.0.x
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit e96075a549b056e26b67430e8cd9f8824977e98e
Author: Zhou Kang <zh...@xiaomi.com>
AuthorDate: Sat Dec 7 19:35:35 2019 +0800

    KYLIN-4272: optimize docker build scripts
---
 docker/build_image.sh | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/docker/build_image.sh b/docker/build_image.sh
index 34c74d9..cc214f0 100644
--- a/docker/build_image.sh
+++ b/docker/build_image.sh
@@ -18,20 +18,23 @@
 #
 
 echo "start build kylin image base on current source code"
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+cd ${DIR}
+echo "build image in dir "${DIR}
 
 rm -rf ./kylin
 mkdir -p ./kylin
 
 echo "start copy kylin source code"
 
-for file in `ls ../../kylin/`
+for file in `ls ../`
 do
     if [ docker != $file ]
     then
-        cp -r ../../kylin/$file ./kylin/
+        cp -r ../$file ./kylin/
     fi
 done
 
 echo "finish copy kylin source code"
 
-docker build -t apache-kylin-standalone .
\ No newline at end of file
+docker build -t apache-kylin-standalone .