提交 238d4c6f 编写于 作者: S storypku 提交者: Liu Jiaming

Docker::Installers: add notes for adv_plat on non-x86 systems as not ready

上级 501a3338
#!/usr/bin/env bash
###############################################################################
# Copyright 2018 The Apollo Authors. All Rights Reserved.
#
......@@ -19,15 +18,21 @@
# Fail on first error.
set -e
MY_MODE="${1:-build}"
cd "$(dirname "${BASH_SOURCE[0]}")"
. ./installer_base.sh
MY_MODE="$1" ; shift
ARCH="$(uname -m)"
if [ "${ARCH}" != "x86_64" ]; then
warning "adv_plat is not ready for ${ARCH}. Skipped."
exit 0
fi
DEST_DIR="${PKGS_DIR}/adv_plat"
[[ -d ${DEST_DIR} ]] || mkdir -p ${DEST_DIR}
if [[ "${MY_MODE}" == "download" ]]; then
if [ "${MY_MODE}" = "download" ]; then
PKG_NAME="adv_plat-3.0-x86_64.tar.gz"
CHECKSUM="1c4a0e205ab2940fc547e5c61b2e181688d4396db2a699f65539add6e10b8150"
DOWNLOAD_LINK="https://apollo-platform-system.bj.bcebos.com/archive/6.0/${PKG_NAME}"
......
......@@ -48,7 +48,7 @@ libnvparsers-dev_${TRT_VERSION}_arm64.deb \
for pkg in ${TRT_PKGS}; do
info "Downloading ${LOCAL_HTTP_ADDR}/${pkg}"
wget "${LOCAL_HTTP_ADDR}/${pkg}"
wget "${LOCAL_HTTP_ADDR}/${pkg}" >/dev/null
done
dpkg -i ${TRT_PKGS}
......@@ -73,8 +73,7 @@ fixed_version=true
if ${fixed_version}; then
VERSION="7.0.0-1+cuda10.2"
apt-get -y update &&
apt-get -y install \
apt_get_update_and_install \
libnvinfer7="${VERSION}" \
libnvonnxparsers7="${VERSION}" \
libnvparsers7="${VERSION}" \
......@@ -84,8 +83,7 @@ if ${fixed_version}; then
libnvparsers-dev="${VERSION}" \
libnvinfer-plugin-dev="${VERSION}"
else
apt-get -y update &&
apt-get -y install \
apt_get_update_and_install \
libnvinfer7 \
libnvonnxparsers7 \
libnvparsers7 \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册