mirror of
https://github.com/upa/mscp.git
synced 2026-02-04 11:34:44 +08:00
add --sysctl net.ipv6.conf.all.disable_ipv6=0 for docker run.
docker disables ipv6 on all interfaces inside containers by default, even ::1 on lo. It causes testing mscp with IPv6 fails. Thus, this commit disables disable_ipv6 via the --sysctl option.
This commit is contained in:
@@ -221,7 +221,8 @@ foreach(x RANGE ${DIST_LISTLEN})
|
||||
COMMENT "Test mscp in ${DOCKER_IMAGE} container"
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
COMMAND
|
||||
docker run --init --rm ${DOCKER_IMAGE} /mscp/scripts/test-in-container.sh)
|
||||
docker run --init --rm --sysctl net.ipv6.conf.all.disable_ipv6=0
|
||||
${DOCKER_IMAGE} /mscp/scripts/test-in-container.sh)
|
||||
|
||||
add_custom_target(docker-pkg-${DOCKER_INDEX}
|
||||
COMMENT "Retrieve mscp package from ${DOCKER_IMAGE} container"
|
||||
|
||||
Reference in New Issue
Block a user