mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 11:22:26 +00:00
scripts: Change AArch64 container network type BRIDGE
Changed the container network type to BRIDGE to seprate the networking of parallel containers. Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
parent
7e3cbf04de
commit
cf1b5156f4
@ -27,6 +27,10 @@ CTR_CLH_CARGO_BUILT_DIR="${CTR_CLH_ROOT_DIR}/build"
|
|||||||
CTR_CLH_CARGO_TARGET="${CTR_CLH_CARGO_BUILT_DIR}/cargo_target"
|
CTR_CLH_CARGO_TARGET="${CTR_CLH_CARGO_BUILT_DIR}/cargo_target"
|
||||||
CTR_CLH_INTEGRATION_WORKLOADS="/root/workloads"
|
CTR_CLH_INTEGRATION_WORKLOADS="/root/workloads"
|
||||||
|
|
||||||
|
# Container networking option
|
||||||
|
CTR_CLH_NET="host"
|
||||||
|
[ $(uname -m) = "aarch64" ] && CTR_CLH_NET="bridge"
|
||||||
|
|
||||||
# Cargo paths
|
# Cargo paths
|
||||||
# Full path to the cargo registry dir on the host. This appears on the host
|
# Full path to the cargo registry dir on the host. This appears on the host
|
||||||
# because we want to persist the cargo registry across container invocations.
|
# because we want to persist the cargo registry across container invocations.
|
||||||
@ -312,7 +316,7 @@ cmd_tests() {
|
|||||||
--privileged \
|
--privileged \
|
||||||
--security-opt seccomp=unconfined \
|
--security-opt seccomp=unconfined \
|
||||||
--ipc=host \
|
--ipc=host \
|
||||||
--net=host \
|
--net="$CTR_CLH_NET" \
|
||||||
--mount type=tmpfs,destination=/tmp \
|
--mount type=tmpfs,destination=/tmp \
|
||||||
--volume /dev:/dev \
|
--volume /dev:/dev \
|
||||||
--volume "$CLH_ROOT_DIR:$CTR_CLH_ROOT_DIR" \
|
--volume "$CLH_ROOT_DIR:$CTR_CLH_ROOT_DIR" \
|
||||||
@ -364,7 +368,7 @@ cmd_shell() {
|
|||||||
--privileged \
|
--privileged \
|
||||||
--security-opt seccomp=unconfined \
|
--security-opt seccomp=unconfined \
|
||||||
--ipc=host \
|
--ipc=host \
|
||||||
--net=host \
|
--net="$CTR_CLH_NET" \
|
||||||
--tmpfs /tmp:exec \
|
--tmpfs /tmp:exec \
|
||||||
--volume /dev:/dev \
|
--volume /dev:/dev \
|
||||||
--volume "$CLH_ROOT_DIR:$CTR_CLH_ROOT_DIR" \
|
--volume "$CLH_ROOT_DIR:$CTR_CLH_ROOT_DIR" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user