-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
feat: support reading Docker host from the current Docker context #2810
Open
mdelapenya
wants to merge
56
commits into
testcontainers:main
Choose a base branch
from
mdelapenya:context-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
6c1b3d8
feat: support reading Docker context
mdelapenya 415c896
chore: move read Docker config to the core
mdelapenya 1e620f1
chore: read docker config more consistently
mdelapenya ea44c92
chore: extract to a parse function to detect remote docker hosts
mdelapenya 549b1cb
docs: add Docker context to docs
mdelapenya fbefbdf
fix: lint
mdelapenya 1ca3f63
chore: simplify container provider initialisation
mdelapenya 7e1e4b5
feat: support configuring the bridge network name
mdelapenya 2decbe3
chore: rename function
mdelapenya c596e37
fix: remove wrong copy&paste
mdelapenya ece6ea5
chore: simplify
mdelapenya a775c4b
chore: simplify error
mdelapenya 5ac2263
chore: simple naming in test
mdelapenya 932fce2
fix: do not lose the original error
mdelapenya 9c048f7
fix: line endings
mdelapenya 77cdda6
fix: case insensitive regex
mdelapenya 7eab89f
chore: deprecate reaper_network and always use the bridge one
mdelapenya 1e58328
chore: support replacing the bridge network in the endpoint modifier
mdelapenya 8abfeba
fix: lint
mdelapenya 203d762
chore: assume the container runtime uses the default network by default
mdelapenya 464bc9b
chore: rename variable to avoid shading package
mdelapenya 37a8142
fix: if the properties file does not exist, use default config
mdelapenya 07003ff
fix: typo
mdelapenya adf0ba1
fix: use default config in tests
mdelapenya b31da78
docs: simplify
mdelapenya a38a345
chore: simplify error when docker context is not found
mdelapenya 14aa3dd
fix: check if the docker socket is listening
mdelapenya b327978
docs: document the docker context support
mdelapenya 33528c6
chore: remove bridge network custom configuration
mdelapenya ca07e04
Merge branch 'main' into context-support
mdelapenya dab5614
Merge branch 'main' into context-support
mdelapenya a313dc5
chore: use t.Helper
mdelapenya 5511d17
Merge branch 'main' into context-support
mdelapenya b38e857
Merge branch 'main' into context-support
mdelapenya bc2f04b
chore: proper deprecation path
mdelapenya dc571d3
Merge branch 'main' into context-support
mdelapenya ad79b43
chore: comment out empty field used for documentation
mdelapenya 4d4769f
chore: use require
mdelapenya 56d6774
docs: update podman commands
mdelapenya 1273e02
chore: readability in var comments
mdelapenya e7dd83c
chore: unique parsing error messages
mdelapenya 584f6da
docs: readability as function comments
mdelapenya 3b59086
chore: idiomatic var declaration
mdelapenya 1c93fe8
chore: extract file name to constant
mdelapenya 92d306f
chore: simplify default config
mdelapenya 499a05d
chore: make errors private
mdelapenya cdb874d
chore: simplify function
mdelapenya 1933f42
fix: remove unused func
mdelapenya f4783a7
chore: bubble up config errors when when config is incorrect
mdelapenya 28f0802
chore: use better test names
mdelapenya f8d24c7
chore: deprecate ReadConfig in favour of NewConfig
mdelapenya 786d79c
chore: line separator
mdelapenya 4bd9934
chore: do not export var
mdelapenya 5f7eb43
Merge branch 'main' into context-support
mdelapenya 8fcd654
chore: bubble up error on environment configuration
mdelapenya 13934da
chore: rename test cases
mdelapenya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bug: I believe this will fail on podman as the default network there is not bridge but podman.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, the podman engine will retrieve the default bridge network, that's why it's fine to remove all the logic we had for calculating the default network.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this is filtering for
Name
= "bridge" not typeDriver
= "bridge" so essentially its running:Does that work on podman?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I verified this PR against podman, rancher desktop, colima, orbstack, docker, and testcontainers cloud