Skip to content

Commit 4b527fa

Browse files
committed
ci: add IPV6 network to ci container
Allows IPV6 functional tests to run inside the container
1 parent a786fd2 commit 4b527fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ci/test/02_run_container.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
2929
docker volume create "${CONTAINER_NAME}_depends_SDKs_android" || true
3030
docker volume create "${CONTAINER_NAME}_previous_releases" || true
3131

32+
docker network create --ipv6 --subnet 1111:1111::/112 ci-ip6net || true
33+
3234
if [ -n "${RESTART_CI_DOCKER_BEFORE_RUN}" ] ; then
3335
echo "Restart docker before run to stop and clear all containers started with --rm"
3436
podman container rm --force --all # Similar to "systemctl restart docker"
@@ -56,6 +58,7 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
5658
--mount "type=volume,src=${CONTAINER_NAME}_previous_releases,dst=$PREVIOUS_RELEASES_DIR" \
5759
--env-file /tmp/env-$USER-$CONTAINER_NAME \
5860
--name "$CONTAINER_NAME" \
61+
--network ci-ip6net \
5962
"$CONTAINER_NAME")
6063
export CI_CONTAINER_ID
6164
export CI_EXEC_CMD_PREFIX="docker exec ${CI_CONTAINER_ID}"

0 commit comments

Comments
 (0)