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 f685f49
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 8 additions & 6 deletions util/build_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,15 @@ build_target() {
fi
done

# build tools-v2
# build tools-v2 when all targets are built
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 f685f49

Please sign in to comment.