Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
fa8df254
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,发现更多精彩内容 >>
提交
fa8df254
编写于
8月 20, 2020
作者:
S
storypku
提交者:
Xiangquan Xiao
8月 20, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
dev_start.sh: cmdline option to specify shm-size for docker run
上级
ea674c6c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
1 deletion
+10
-1
docker/scripts/dev_start.sh
docker/scripts/dev_start.sh
+10
-1
未找到文件。
docker/scripts/dev_start.sh
浏览文件 @
fa8df254
...
@@ -42,6 +42,7 @@ USE_GPU_HOST=0
...
@@ -42,6 +42,7 @@ USE_GPU_HOST=0
USER_AGREED
=
"no"
USER_AGREED
=
"no"
VOLUME_VERSION
=
"latest"
VOLUME_VERSION
=
"latest"
SHM_SIZE
=
"2G"
USER_SPECIFIED_MAPS
=
USER_SPECIFIED_MAPS
=
MAP_VOLUMES_CONF
=
MAP_VOLUMES_CONF
=
OTHER_VOLUMES_CONF
=
OTHER_VOLUMES_CONF
=
...
@@ -113,6 +114,7 @@ OPTIONS:
...
@@ -113,6 +114,7 @@ OPTIONS:
-g, --geo <us|cn|none> Pull docker image from geolocation specific registry mirror.
-g, --geo <us|cn|none> Pull docker image from geolocation specific registry mirror.
-l, --local Use local docker image.
-l, --local Use local docker image.
-t, --tag <version> Specify which version of a docker image to pull.
-t, --tag <version> Specify which version of a docker image to pull.
--shm-size <bytes> Size of /dev/shm . Passed directly to "docker run"
-y Agree to Apollo License Agreement non-interactively.
-y Agree to Apollo License Agreement non-interactively.
stop Stop all running Apollo containers.
stop Stop all running Apollo containers.
EOF
EOF
...
@@ -182,6 +184,7 @@ function geo_specific_config() {
...
@@ -182,6 +184,7 @@ function geo_specific_config() {
function
parse_arguments
()
{
function
parse_arguments
()
{
local
custom_version
=
""
local
custom_version
=
""
local
shm_size
=
""
local
geo
=
"none"
local
geo
=
"none"
while
[
$#
-gt
0
]
;
do
while
[
$#
-gt
0
]
;
do
...
@@ -213,6 +216,11 @@ function parse_arguments() {
...
@@ -213,6 +216,11 @@ function parse_arguments() {
USE_LOCAL_IMAGE
=
"yes"
USE_LOCAL_IMAGE
=
"yes"
;;
;;
--shm-size
)
shm_size
=
"
$1
"
;
shift
_optarg_check_for_opt
"
${
opt
}
"
"
${
shm_size
}
"
;;
--map
)
--map
)
map_name
=
"
$1
"
;
shift
map_name
=
"
$1
"
;
shift
USER_SPECIFIED_MAPS
=
"
${
USER_SPECIFIED_MAPS
}
${
map_name
}
"
USER_SPECIFIED_MAPS
=
"
${
USER_SPECIFIED_MAPS
}
${
map_name
}
"
...
@@ -233,6 +241,7 @@ function parse_arguments() {
...
@@ -233,6 +241,7 @@ function parse_arguments() {
[
-n
"
${
geo
}
"
]
&&
GEOLOC
=
"
${
geo
}
"
[
-n
"
${
geo
}
"
]
&&
GEOLOC
=
"
${
geo
}
"
[
-n
"
${
custom_version
}
"
]
&&
USER_VERSION_OPT
=
"
${
custom_version
}
"
[
-n
"
${
custom_version
}
"
]
&&
USER_VERSION_OPT
=
"
${
custom_version
}
"
[
-n
"
${
shm_size
}
"
]
&&
SHM_SIZE
=
"
${
shm_size
}
"
}
}
function
determine_dev_image
()
{
function
determine_dev_image
()
{
...
@@ -511,7 +520,7 @@ function main() {
...
@@ -511,7 +520,7 @@ function main() {
--add-host
"
${
DEV_INSIDE
}
:127.0.0.1"
\
--add-host
"
${
DEV_INSIDE
}
:127.0.0.1"
\
--add-host
"
${
local_host
}
:127.0.0.1"
\
--add-host
"
${
local_host
}
:127.0.0.1"
\
--hostname
"
${
DEV_INSIDE
}
"
\
--hostname
"
${
DEV_INSIDE
}
"
\
--shm-size
2G
\
--shm-size
"
${
SHM_SIZE
}
"
\
--pid
=
host
\
--pid
=
host
\
-v
/dev/null:/dev/raw1394
\
-v
/dev/null:/dev/raw1394
\
"
${
APOLLO_DEV_IMAGE
}
"
\
"
${
APOLLO_DEV_IMAGE
}
"
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录