Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add host-gateway only when docker server is >= v20 #459

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jafern14
Copy link

@jafern14 jafern14 commented May 26, 2023

This line appears to have been a breaking change and made docker v20+ a hard requirement when using loki. We can check for the version before applying it so as to allow for the docker engine to still run properly for previous versions.

Thanks for taking a look and providing any feedback. Your work here is very much appreciated!

@jafern14
Copy link
Author

I still need to add a test to mock out the docker cli version cmd to prove that it works. I wanted to get your thoughts on this before doing so though. Thanks!

@oblador
Copy link
Owner

oblador commented Jun 5, 2023

I'm cool with the change! Make sure to update the yarn.lock by running yarn in the root.

# Conflicts:
#	packages/target-chrome-docker/package.json
#	packages/target-chrome-docker/src/create-chrome-docker-target.js
@oblador
Copy link
Owner

oblador commented Oct 31, 2023

It seems this causes issues in GH Actions: Error: listen EACCES: permission denied 0.0.0.0:491

@jafern14
Copy link
Author

I'm not so sure this PR is to blame. I see a similar error happening on a build on the upstream master branch

https://github.com/oblador/loki/actions/runs/6707668160/job/18226746902

thoughts?

@oblador
Copy link
Owner

oblador commented Oct 31, 2023

Merging with master again and we can see if this is just flake :-)

@oblador
Copy link
Owner

oblador commented Oct 31, 2023

Different error now that seems related: 1 request failed to load; http://host.docker.internal:4567/1000/https://loki.js.org/img/favicon.png

@jafern14
Copy link
Author

Sounds good to me and thanks for following up on this! I appreciate it 👍.

I don't have time to look into it right now, but I'm wondering if there's some issue with the CI env and the port that docker is using behind the special host-gateway.

Do you know what version of docker is being used in the CI env?

@oblador
Copy link
Owner

oblador commented Oct 31, 2023

@oblador
Copy link
Owner

oblador commented Oct 31, 2023

Btw, regarding testing, I think it might be better to just have a test matrix for the integration tests rather than mocking stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants