From d43f98af95c025b8a837aaa589c962b62879b103 Mon Sep 17 00:00:00 2001 From: Zachary Hu Date: Mon, 20 Nov 2023 12:48:46 +0800 Subject: [PATCH] feat: support access to host runner's services By default, workflows run on a Linux OS. For containers to access to host services, we should update the docker compose file to include 'host.docker.internal' This would significantly reduce the number of containers and resources required for EE plugins tests. --- README.md | 2 ++ assets/docker-compose.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index dd9e04b5..a2f24d87 100644 --- a/README.md +++ b/README.md @@ -848,6 +848,8 @@ The result should be a new PR on the Pongo repo. * Fix: health-checks on Pongo container. Use proper prefix. [#456](https://github.com/Kong/kong-pongo/pull/456). +* Feat: support access to host runner's services. + [#473](https://github.com/Kong/kong-pongo/pull/473). --- diff --git a/assets/docker-compose.yml b/assets/docker-compose.yml index c1cb2320..afa84fad 100644 --- a/assets/docker-compose.yml +++ b/assets/docker-compose.yml @@ -162,6 +162,8 @@ services: - --prefix=/kong-plugin/servroot/ timeout: 10s disable: ${SERVICE_DISABLE_HEALTHCHECK:-false} + extra_hosts: + - "host.docker.internal:host-gateway" networks: pongo-test-network: aliases: