Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
f7a551ad
A
apollo
项目概览
Pinoxchio
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f7a551ad
编写于
11月 05, 2020
作者:
S
storypku
提交者:
Liu Jiaming
11月 06, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
dev_start.sh: testing dev.x86_64 image support with "dstart -d testing"
上级
23995eed
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
41 addition
and
18 deletion
+41
-18
docker/build/user_dev.x86_64.dockerfile
docker/build/user_dev.x86_64.dockerfile
+5
-0
docker/scripts/cyber_start.sh
docker/scripts/cyber_start.sh
+1
-1
docker/scripts/dev_start.sh
docker/scripts/dev_start.sh
+35
-17
未找到文件。
docker/build/user_dev.x86_64.dockerfile
0 → 100644
浏览文件 @
f7a551ad
FROM
apolloauto/apollo:dev-x86_64-18.04-testing-20201104_0348
ARG
APOLLO_DIST
COPY
installers/installer_base.sh /tmp/installers/
COPY
installers/install_libtorch.sh /tmp/installers/
RUN
bash /tmp/installers/install_libtorch.sh
&&
rm
-rf
/tmp/installers
docker/scripts/cyber_start.sh
浏览文件 @
f7a551ad
...
...
@@ -107,7 +107,7 @@ OPTIONS:
-g <us|cn> Pull docker image from mirror registry based on geolocation.
-h, --help Display this help and exit.
-t, --tag <TAG> Specify docker image with tag to start
-d, --dist Specify
docker image type
(stable/testing)
-d, --dist Specify
Apollo distribution
(stable/testing)
-l, --local Use local docker image.
-m <arch> Specify docker image for a different CPU arch.
--shm-size <bytes> Size of /dev/shm . Passed directly to "docker run"
...
...
docker/scripts/dev_start.sh
浏览文件 @
f7a551ad
...
...
@@ -26,11 +26,13 @@ DOCKER_REPO="apolloauto/apollo"
APOLLO_DEV
=
"apollo_dev_
${
USER
}
"
DEV_INSIDE
=
"in-dev-docker"
SUPPORTED_ARCHS
=
" x86_64 aarch64 "
SUPPORTED_ARCHS
=
(
x86_64 aarch64
)
HOST_ARCH
=
"
$(
uname
-m
)
"
TARGET_ARCH
=
"
$(
uname
-m
)
"
VERSION_X86_64
=
"dev-x86_64-18.04-20201029_0431"
TESTING_VERSION_X86_64
=
"dev-x86_64-18.04-testing-20201105_0514"
VERSION_AARCH64
=
"dev-aarch64-18.04-20201006_0154"
USER_VERSION_OPT
=
...
...
@@ -40,7 +42,8 @@ FAST_MODE="no"
GEOLOC
=
GEO_REGISTRY
=
USE_LOCAL_IMAGE
=
"no"
USE_LOCAL_IMAGE
=
0
CUSTOM_DIST
=
USE_GPU_HOST
=
0
USER_AGREED
=
"no"
...
...
@@ -116,7 +119,8 @@ OPTIONS:
-f, --fast Fast mode without pulling all map volumes.
-g, --geo <us|cn|none> Pull docker image from geolocation specific registry mirror.
-l, --local Use local docker image.
-t, --tag <version> Specify which version of a docker image to pull.
-t, --tag <TAG> Specify docker image with tag <TAG> to start.
-d, --dist Specify Apollo distribution(stable/testing)
--shm-size <bytes> Size of /dev/shm . Passed directly to "docker run"
-y Agree to Apollo License Agreement non-interactively.
stop Stop all running Apollo containers.
...
...
@@ -164,6 +168,7 @@ function geo_specific_config() {
function
parse_arguments
()
{
local
custom_version
=
""
local
custom_dist
=
""
local
shm_size
=
""
local
geo
=
""
...
...
@@ -178,6 +183,11 @@ function parse_arguments() {
_optarg_check_for_opt
"
${
opt
}
"
"
${
custom_version
}
"
;;
-d
|
--dist
)
custom_dist
=
"
$1
"
;
shift
_optarg_check_for_opt
"
${
opt
}
"
"
${
custom_dist
}
"
;;
-h
|
--help
)
show_usage
exit
1
...
...
@@ -193,7 +203,7 @@ function parse_arguments() {
;;
-l
|
--local
)
USE_LOCAL_IMAGE
=
"yes"
USE_LOCAL_IMAGE
=
1
;;
--shm-size
)
...
...
@@ -219,18 +229,23 @@ function parse_arguments() {
esac
done
# End while loop
[
-n
"
${
geo
}
"
]
&&
GEOLOC
=
"
${
geo
}
"
[
-n
"
${
custom_version
}
"
]
&&
USER_VERSION_OPT
=
"
${
custom_version
}
"
[
-n
"
${
shm_size
}
"
]
&&
SHM_SIZE
=
"
${
shm_size
}
"
[[
-n
"
${
geo
}
"
]]
&&
GEOLOC
=
"
${
geo
}
"
[[
-n
"
${
custom_version
}
"
]]
&&
USER_VERSION_OPT
=
"
${
custom_version
}
"
[[
-n
"
${
custom_dist
}
"
]]
&&
CUSTOM_DIST
=
"
${
custom_dist
}
"
[[
-n
"
${
shm_size
}
"
]]
&&
SHM_SIZE
=
"
${
shm_size
}
"
}
function
determine_dev_image
()
{
local
version
=
"
$1
"
# If no custom version specified
if
[
-z
"
${
version
}
"
]
;
then
if
[
"
${
TARGET_ARCH
}
"
=
"x86_64"
]
;
then
version
=
"
${
VERSION_X86_64
}
"
elif
[
"
${
TARGET_ARCH
}
"
=
"aarch64"
]
;
then
if
[[
-z
"
${
version
}
"
]]
;
then
if
[[
"
${
TARGET_ARCH
}
"
==
"x86_64"
]]
;
then
if
[[
"
${
CUSTOM_DIST
}
"
==
"testing"
]]
;
then
version
=
"
${
TESTING_VERSION_X86_64
}
"
else
version
=
"
${
VERSION_X86_64
}
"
fi
elif
[[
"
${
TARGET_ARCH
}
"
==
"aarch64"
]]
;
then
version
=
"
${
VERSION_AARCH64
}
"
else
error
"Logic can't reach here! Please report this issue to Apollo@GitHub."
...
...
@@ -242,7 +257,7 @@ function determine_dev_image() {
function
check_host_environment
()
{
local
kernel
=
"
$(
uname
-s
)
"
if
[
"
${
kernel
}
"
!=
"Linux"
]
;
then
if
[
[
"
${
kernel
}
"
!=
"Linux"
]
]
;
then
warning
"Running Apollo dev container on
${
kernel
}
is UNTESTED, exiting..."
exit
1
fi
...
...
@@ -250,10 +265,13 @@ function check_host_environment() {
function
check_target_arch
()
{
local arch
=
"
${
TARGET_ARCH
}
"
if
[[
"
${
SUPPORTED_ARCHS
}
"
!=
*
"
${
arch
}
"
*
]]
;
then
error
"Unsupported target architecture:
${
arch
}
. Allowed values:
${
SUPPORTED_ARCHS
}
"
exit
1
fi
for
ent
in
"
${
SUPPORTED_ARCHS
[@]
}
"
;
do
if
[[
"
${
ent
}
"
==
"
${
TARGET_ARCH
}
"
]]
;
then
return
0
fi
done
error
"Unsupported target architecture:
${
TARGET_ARCH
}
."
exit
1
}
function
setup_devices_and_mount_local_volumes
()
{
...
...
@@ -456,7 +474,7 @@ function main() {
determine_dev_image
"
${
USER_VERSION_OPT
}
"
geo_specific_config
"
${
GEOLOC
}
"
if
[
"
${
USE_LOCAL_IMAGE
}
"
=
"yes"
]
;
then
if
[
[
"
${
USE_LOCAL_IMAGE
}
"
-gt
0
]]
;
then
info
"Start docker container based on local image :
${
APOLLO_DEV_IMAGE
}
"
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录