From 8697deb45e5e71114f9488671cc5e9caced1639a Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Wed, 1 Nov 2023 19:38:17 +0900 Subject: [PATCH] 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. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dedc0c7..2a5b720 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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"