提交 d4f0dc32 编写于 作者: L Lei Wang 提交者: Jiangtao Hu

Fix release start script.

上级 99a0d7d4
......@@ -189,6 +189,7 @@ function release() {
# ros
cp -Lr bazel-apollo/external/ros $ROOT_DIR/
rm ${ROOT_DIR}/ros/*.tar.gz
# scripts
cp -r scripts $ROOT_DIR
......
......@@ -21,7 +21,6 @@ APOLLO_ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}")/../.." && pwd )"
# the machine type, currently support x86_64, aarch64
MACHINE_ARCH=$(uname -m)
export RELEASE_DOCKER=1
source $APOLLO_ROOT_DIR/scripts/apollo_base.sh
echo "/apollo/data/core/core_%e.%p" | sudo tee /proc/sys/kernel/core_pattern
......@@ -35,6 +34,19 @@ if [ -z "${DOCKER_REPO}" ]; then
fi
IMG=${DOCKER_REPO}:$VERSION
DATA_DIR="${HOME}/data"
if [ ! -e "${DATA_DIR}/log" ]; then
mkdir -p "${DATA_DIR}/log"
fi
if [ ! -e "${DATA_DIR}/bag" ]; then
mkdir -p "${DATA_DIR}/bag"
fi
if [ ! -e "${DATA_DIR}/core" ]; then
mkdir -p "${DATA_DIR}/core"
fi
function main() {
docker pull "$IMG"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册