Closed davemooreuws closed 3 months ago
Attention: Patch coverage is 0%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 1.08%. Comparing base (
1723d34
) to head (1b4ad81
). Report is 1 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
pkg/project/service.go | 0.00% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
It looks like gitlab exposes a docker
hostname locally.
DOCKER_HOST
as you've mentioned appears to be a convention for configuring this in CI/CD.
When you tested setting DOCKER_HOST
did you use the env variable in the CLI to set host.docker.internal
to the same value?
Rather than searching the eth0
which may not apply in all cases we could look at allowing it to be configured? e.g. use DOCKER_HOST
or something else like NITRIC_HOST
?
Main concern is that a search for eth0
will not cover all cases or may change/break in ways we may not be able to control or predict.
It looks like gitlab exposes a
docker
hostname locally.
DOCKER_HOST
as you've mentioned appears to be a convention for configuring this in CI/CD.When you tested setting
DOCKER_HOST
did you use the env variable in the CLI to sethost.docker.internal
to the same value?Rather than searching the
eth0
which may not apply in all cases we could look at allowing it to be configured? e.g. useDOCKER_HOST
or something else likeNITRIC_HOST
?Main concern is that a search for
eth0
will not cover all cases or may change/break in ways we may not be able to control or predict.
Agreed, we want to avoid it being brittle. Will need to double check setting the same value as DOCKER_HOST. I think a nitric based env var will work more broadly (have a feeling the azure and GCP might need configuring as well), but let's try it tomorrow. We can keep the WSL fix in.
:tada: This PR is included in version 1.50.4 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Fixes #769
Adds new env variable called
NITRIC_DOCKER_HOST
, this can be set to an IP like172.17.0.4
on runners like GitLab and other Docker in Docker environments.I have tested on: