From: 오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 Date: Mon, 2 Dec 2019 05:29:07 +0000 (+0900) Subject: [CI/script] Use overlay setting (#9316) X-Git-Tag: submit/tizen/20191205.083104~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3754b3e784a8e138ffb1971eb59f4261960506ce;p=platform%2Fcore%2Fml%2Fnnfw.git [CI/script] Use overlay setting (#9316) Use docker volume mount overlay Signed-off-by: Hyeongseok Oh --- diff --git a/infra/scripts/docker_build_nncc.sh b/infra/scripts/docker_build_nncc.sh index 0a867e6..418b50d 100755 --- a/infra/scripts/docker_build_nncc.sh +++ b/infra/scripts/docker_build_nncc.sh @@ -14,6 +14,14 @@ else echo "It will use default external path" fi +# mount volume (or directory) for overlay +if [ -n "$OVERLAY_VOLUME" ]; then + DOCKER_OPTS+=" -v $OVERLAY_VOLUME:/overlay" + CONFIG_OPTIONS+=" -DNNCC_OVERLAY_DIR=/overlay" +else + echo "It will use default overlay path" +fi + # prepare tensorflow if [ -d $TENSORFLOW_PREFIX ]; then DOCKER_OPTS+=" -v $TENSORFLOW_PREFIX:/opt/tensorflow" diff --git a/infra/scripts/docker_collect_nnpkg_resources.sh b/infra/scripts/docker_collect_nnpkg_resources.sh index bcb1564..d56b1e8 100755 --- a/infra/scripts/docker_collect_nnpkg_resources.sh +++ b/infra/scripts/docker_collect_nnpkg_resources.sh @@ -14,6 +14,14 @@ else echo "It will use default external path" fi +# mount volume (or directory) for overlay +if [ -n "$OVERLAY_VOLUME" ]; then + DOCKER_OPTS+=" -v $OVERLAY_VOLUME:/overlay" + CONFIG_OPTIONS+=" -DNNCC_OVERLAY_DIR=/overlay" +else + echo "It will use default overlay path" +fi + # prepare tensorflow if [ -d $TENSORFLOW_PREFIX ]; then DOCKER_OPTS+=" -v $TENSORFLOW_PREFIX:/opt/tensorflow"