Skip to content

Commit e2e109e

Browse files
committed
.github/workflows: run python server from docker image
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
1 parent 755e53c commit e2e109e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/run-kola-tests.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ jobs:
161161
set -x
162162
set -euo pipefail
163163
164-
python3 -m http.server -d "${TESTS_WEBSERVER_WEBROOT}" -b "${TESTS_WEBSERVER_IP}" "${TESTS_WEBSERVER_PORT}" &
164+
mkdir -p "${TESTS_WEBSERVER_WEBROOT}"
165+
docker run --rm -d --net host \
166+
-v "${TESTS_WEBSERVER_WEBROOT}:${TESTS_WEBSERVER_WEBROOT}" \
167+
docker.io/python python -m http.server -d "${TESTS_WEBSERVER_WEBROOT}" "${TESTS_WEBSERVER_PORT}"
165168
166169
pushd scripts
167170

0 commit comments

Comments
 (0)