Skip to content

Conversation

sweatybridge
Copy link
Contributor

@sweatybridge sweatybridge commented Jan 30, 2023

What kind of change does this PR introduce?

feature

What is the current behavior?

no consistent way for locally served functions to reach host OS

What is the new behavior?

Starting from Docker Engine 20.04, it's now possible to use host.docker.internal consistently across platforms https://stackoverflow.com/a/61424570

Additional context

supabase/supabase#9837 (reply in thread)

  • tested on codespaces

@sweatybridge sweatybridge requested a review from a team as a code owner January 30, 2023 09:09
@coveralls
Copy link

Pull Request Test Coverage Report for Build 4042249922

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • 3 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.04%) to 62.757%

Files with Coverage Reduction New Missed Lines %
internal/debug/postgres.go 3 66.67%
Totals Coverage Status
Change from base Build 4042114898: -0.04%
Covered Lines: 3606
Relevant Lines: 5746

💛 - Coveralls

@soedirgo
Copy link
Member

Does this also work with other daemons? I don't think we've used Docker Desktop-isms so far.

@sweatybridge
Copy link
Contributor Author

Haven't tested on other daemons but it should be safe to add because this config only updates the /etc/hosts file. The extra entry wouldn't break existing functions and we can look into supporting other daemons in the future.

@sweatybridge sweatybridge changed the title feat: allow deno functions to reach host OS fix: allow deno functions to reach host OS Jan 30, 2023
@sweatybridge sweatybridge merged commit e2afcc0 into main Jan 30, 2023
@sweatybridge sweatybridge deleted the host-os branch January 30, 2023 23:54
@github-actions
Copy link

🎉 This PR is included in version 1.35.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

3 participants