Skip to content

Commit 38d43a6

Browse files
committed
fix: docker setup for windows
With 127.0.0.1:3000 it resulted in ERROR: for css Cannot start service css: failed to create endpoint pytest2324_css_1 on network pytest2324_default: Windows does not support host IP addresses in NAT settings
1 parent 2a3f94f commit 38d43a6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/conftest.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Integration tests configuration file."""
22

33
# pylint: disable=unused-import
4+
import log
45
import pytest
56
import requests
67

@@ -27,9 +28,11 @@ def community_solid_server_url(docker_services):
2728
# we use localhost because CSS requires either https or localhost
2829
# with 127.0.0.1 (coming from docker_ip) it rejects because of insecurity
2930
url = f"http://localhost:{port}"
31+
log.debug(f"waiting for CSS to come online at {url}")
3032
docker_services.wait_until_responsive(
31-
timeout=30.0, pause=0.1, check=lambda: css_is_responsive(url)
33+
timeout=120.0, pause=0.1, check=lambda: css_is_responsive(url)
3234
)
35+
log.debug(f"CSS started at {url}")
3336
return url
3437

3538

tests/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ services:
33
css:
44
image: "solidproject/community-server"
55
ports:
6-
- "127.0.0.1:3000:3000"
6+
- "3000:3000"
77
command: --baseUrl http://localhost:3000/ -c config/default.json

0 commit comments

Comments
 (0)