You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by jo...@apache.org on 2018/01/08 10:37:36 UTC
[05/50] [abbrv] tinkerpop git commit: Added docker build param
KEEP_CONTAINER to not remove container by default - CTR
Added docker build param KEEP_CONTAINER to not remove container by default - CTR
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/47cebd48
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/47cebd48
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/47cebd48
Branch: refs/heads/TINKERPOP-1489
Commit: 47cebd482723210ea983341d05cea81de8a2c0d7
Parents: e042879
Author: Robert Dale <ro...@gmail.com>
Authored: Wed Dec 27 09:10:25 2017 -0500
Committer: Robert Dale <ro...@gmail.com>
Committed: Wed Dec 27 09:10:25 2017 -0500
----------------------------------------------------------------------
docker/build.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/47cebd48/docker/build.sh
----------------------------------------------------------------------
diff --git a/docker/build.sh b/docker/build.sh
index a102f83..7b83d29 100755
--- a/docker/build.sh
+++ b/docker/build.sh
@@ -31,6 +31,9 @@ function cleanup {
}
trap cleanup EXIT
+REMOVE_CONTAINER="--rm"
+[[ -n ${KEEP_CONTAINER} ]] && unset REMOVE_CONTAINER
+
case "$1" in
-h | --help ) ${DIR}/scripts/build.sh -h; exit 0 ;;
esac
@@ -47,6 +50,6 @@ CMD ["sh", "-c", "docker/scripts/build.sh $@"]
EOF
docker build -t tinkerpop:${BUILD_TAG} .
-docker run ${TINKERPOP_DOCKER_OPTS} --rm -ti tinkerpop:${BUILD_TAG}
+docker run ${TINKERPOP_DOCKER_OPTS} ${REMOVE_CONTAINER} -ti tinkerpop:${BUILD_TAG}
popd > /dev/null