fix: share job container network with Qdrant
docker run -d publishes ports to the Docker bridge network, but the job container runs on a different Gitea Actions network. This causes Connection refused when tests try http://localhost:6333. Use --network container:$(hostname) so Qdrant shares the job container's network stack, making localhost reachable.
This commit is contained in:
@@ -30,7 +30,7 @@ jobs:
|
|||||||
- name: Start Qdrant
|
- name: Start Qdrant
|
||||||
run: |
|
run: |
|
||||||
docker run -d --name qdrant \
|
docker run -d --name qdrant \
|
||||||
-p 6333:6333 -p 6334:6334 \
|
--network "container:$(hostname)" \
|
||||||
docker.io/qdrant/qdrant:latest
|
docker.io/qdrant/qdrant:latest
|
||||||
|
|
||||||
- name: Wait for Qdrant
|
- name: Wait for Qdrant
|
||||||
|
|||||||
Reference in New Issue
Block a user