提交 fd450ec0 编写于 作者: X xmyqsh 提交者: Calvin Miao

only print docker run

上级 754b4c6d
...@@ -194,6 +194,7 @@ fi ...@@ -194,6 +194,7 @@ fi
IMG=${DOCKER_REPO}:$VERSION IMG=${DOCKER_REPO}:$VERSION
function local_volumes() { function local_volumes() {
set +x
# Apollo root and bazel cache dirs are required. # Apollo root and bazel cache dirs are required.
volumes="-v $APOLLO_ROOT_DIR:/apollo \ volumes="-v $APOLLO_ROOT_DIR:/apollo \
-v $HOME/.cache:${DOCKER_HOME}/.cache" -v $HOME/.cache:${DOCKER_HOME}/.cache"
...@@ -212,6 +213,7 @@ function local_volumes() { ...@@ -212,6 +213,7 @@ function local_volumes() {
;; ;;
esac esac
echo "${volumes}" echo "${volumes}"
set -x
} }
function main(){ function main(){
...@@ -338,11 +340,11 @@ function main(){ ...@@ -338,11 +340,11 @@ function main(){
-v /dev/null:/dev/raw1394 \ -v /dev/null:/dev/raw1394 \
$IMG \ $IMG \
/bin/bash /bin/bash
set +x
if [ $? -ne 0 ];then if [ $? -ne 0 ];then
error "Failed to start docker container \"${APOLLO_DEV}\" based on image: $IMG" error "Failed to start docker container \"${APOLLO_DEV}\" based on image: $IMG"
exit 1 exit 1
fi fi
set +x
if [ "${USER}" != "root" ]; then if [ "${USER}" != "root" ]; then
docker exec $APOLLO_DEV bash -c '/apollo/scripts/docker_adduser.sh' docker exec $APOLLO_DEV bash -c '/apollo/scripts/docker_adduser.sh'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册