Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dev): add environment networking overrides to Makefile (vectordo…
…tdev#18654) This commit adds two new Makefile overrides for configuring the networking of the environment: * `ENVIRONMENT_NETWORK`: When non-empty, the value is passed to the container tool using `--network VALUE`. The default value is `host` to preserve the current behavior. * `ENVIRONMENT_PUBLISH`: When non-empty, all space-separated values are passed to the container tool using `--publish VALUE` arguments. The default is empty to preserve the current behavior. Before this change, the environment was hard-coded to always be started using `--network host`. This behavior is not always convenient. For example, when using Docker Desktop for Windows, the `host` network is not supported and does not behave the same way as in Linux. In this scenario, publishing ports with the default `bridge` network can be used instead as follows: make environment ENVIRONMENT_NETWORK=bridge ENVIRONMENT_PUBLISH='8686:8686 8080:8080/udp' In Docker, `ENVIRONMENT_NETWORK` can also be left empty given that `bridge` is the default. Signed-off-by: Hugo Hromic <[email protected]>
- Loading branch information