* Revert "Remove scripts/command/change_gitmodule.sh (#1085)"
For issue #1233
This reverts commit
edc95922795cb73dd4fed6ab3783fb959e58a809.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
* Use again RS7-STAR's TensorFlow
For issue #1233
This patch changes tensorflow's git url to RS7-STAR's, since we will
work on modification of tensorflow lite there.
Signed-off-by: Sangmin Seo <sangmin7.seo@samsung.com>
[submodule "tensorflow"]
path = externals/tensorflow
- url = git://git.tizen.org/platform/upstream/tensorflow
- branch = tizen
+ url = git@github.sec.samsung.net:RS7-STAR/Tensorflow.git
+ branch = nnfw
[submodule "acl"]
path = externals/acl
url = git://git.tizen.org/platform/upstream/armcl
-Subproject commit 1b0a0203bb23f15c42fa66ea9f9001041465e658
+Subproject commit 5781158a98bb0b134b19242f19d36a0e5cfa844c
--- /dev/null
+#!/bin/bash
+
+# Background for this hack
+#
+# To fetch submodule repositories from github.sec.samsung.net, we must
+# authenticate the user, who is fetching the source tree, regardless of
+# communication protocol (e.g., ssh, https). Note that the policy of Samsung's
+# internal github does not allow to access the repository without
+# authentication. Because of this, the replacement below is a workaround to
+# pass the login information of our CI account, git-bot-sec, using an API token.
+# Since the URL in .gitmodules is written with `git@` that requires ssh key
+# authentication and we don't really want to put git-bot-sec's ssh private key
+# somewhere, we decided to use a token-based authentication method.
+
+SCRIPT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+HOST_HOME=$SCRIPT_ROOT/../..
+
+USERNAME=git-bot-sec
+TOKEN=acb137d756874f7c7746a95e31ebb3994f1c4505
+
+sed -i "s/git@github.sec.samsung.net:/https:\/\/$USERNAME:$TOKEN@github.sec.samsung.net\//" $HOST_HOME/.gitmodules
DOCKER_RUN_OPTS="--rm"
DOCKER_RUN_OPTS+=" -w $DOCKER_HOME"
+# Change .gitmodules to work around the permission issue
+CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
+docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE"
+
if [ -n "$DOCKER_INTERACTIVE" ]; then
DOCKER_RUN_OPTS+=" -it"
CMD="/bin/bash"
DOCKER_VOLUMES+=" -v $ROOTFS_DIR:/opt/rootfs"
DOCKER_VOLUMES+=" -v $ARMCL_DIR:/opt/libarmcl"
+# Change .gitmodules to work around the permission issue
+CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
+docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE"
+
if [ -n "$DOCKER_INTERACTIVE" ]; then
DOCKER_RUN_OPTS+=" -it"
CMD="/bin/bash"
DOCKER_VOLUMES+=" -v $ROOTFS_DIR:/opt/rootfs"
DOCKER_VOLUMES+=" -v $ARMCL_DIR:/opt/libarmcl"
+# Change .gitmodules to work around the permission issue
+CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
+docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE"
+
if [ -n "$DOCKER_INTERACTIVE" ]; then
DOCKER_RUN_OPTS+=" -it"
CMD="/bin/bash"
DOCKER_VOLUMES+=" -v $ROOTFS_DIR:/opt/rootfs"
DOCKER_VOLUMES+=" -v $ARMCL_DIR:/opt/libarmcl"
+# Change .gitmodules to work around the permission issue
+CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
+docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE"
+
if [ -n "$DOCKER_INTERACTIVE" ]; then
DOCKER_RUN_OPTS+=" -it"
CMD="/bin/bash"
CMD="/bin/bash"
fi
+# Change .gitmodules to work around the permission issue
+CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
+docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME $CMD_SUBMODULE
+
docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME $CMD
BUILD_RESULT=$?