Skip to content

Commit

Permalink
build: better build tools-v2 and mount /etc/hosts
Browse files Browse the repository at this point in the history
Signed-off-by: zztaki <[email protected]>
  • Loading branch information
zztaki committed Jan 13, 2024
1 parent 88a6091 commit 2e38c98
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions util/build_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,13 @@ build_target() {

# build tools-v2
g_toolsv2_root="tools-v2"
if [ $g_release -eq 1 ]
then
(cd ${g_toolsv2_root} && make build version=${curve_version})
else
(cd ${g_toolsv2_root} && make debug version=${curve_version})
if [[ "$g_target" = "*" ]]; then
if [ $g_release -eq 1 ]
then
(cd ${g_toolsv2_root} && make build version=${curve_version})
else
(cd ${g_toolsv2_root} && make debug version=${curve_version})
fi
fi
}

Expand Down
1 change: 1 addition & 0 deletions util/docker_opts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ g_docker_opts=(
"-v /etc/sudoers.d/:/etc/sudoers.d/"
"-v /etc/sudoers:/etc/sudoers:ro"
"-v /etc/shadow:/etc/shadow:ro"
"-v /etc/hosts:/etc/hosts"
"-v /var/run/docker.sock:/var/run/docker.sock"
"-v /root/.docker:/root/.docker"
"--ulimit core=-1"
Expand Down

0 comments on commit 2e38c98

Please sign in to comment.