FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Support docker context by skagedal · Pull Request #2036 · docker-java/docker-java · GitHub

Repository navigation

Support docker context - #2036

Merged
eddumelendez merged 18 commits into
docker-java:masterfrom
skagedal:support-docker-context
Feb 7, 2023
Merged

eddumelendez merged 18 commits into
docker-java:masterfrom
skagedal:support-docker-context

Conversation

skagedal commented Dec 28, 2022 •
edited
Loading

Copy link
Copy Markdown
Contributor

Opening up this proof-of-concept pull request to support docker contexts. The end goal for me would be to be able to run testcontainers tests running in a Docker environment such as Colima without having to set specific environment variables like DOCKER_HOST and instead have it just work, but the use case can of course be other things.

I know this isn't up to par to get merged, regarding code style and test coverage, but before I work any further I'd love to get just some input on whether the general idea is right.

So, what it does is that it's looking for the currentContext setting in the ~/.docker/config.json file and then matching that to the context description file in ~/.docker/contexts/meta/. This is briefly documented here but the details of the file format I have just inferred from looking at the files set up on my system.

Implements issue #1946.

eddumelendez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks for the PR @skagedal ! I have left some comments. Indeed, this is something we would like to support

eddumelendez self-assigned this Feb 3, 2023
eddumelendez added this to the next milestone Feb 3, 2023

eddumelendez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks for the contribution @skagedal! I've left a few suggestions.

skagedal and others added 4 commits February 7, 2023 06:35
…erContextMetaFile.java

Co-authored-by: Eddú Meléndez Gonzales <eddu.melendez@gmail.com>
…entBuilderTest.java

Co-authored-by: Eddú Meléndez Gonzales <eddu.melendez@gmail.com>
Co-authored-by: Eddú Meléndez Gonzales <eddu.melendez@gmail.com>
eddumelendez merged commit f8fd492 into docker-java:master Feb 7, 2023

Copy link
Copy Markdown
Member

Thanks for your contribution, @skagedal ! This is now merged in master branch and it will be part of the next release.

albers commented Feb 9, 2023

Copy link
Copy Markdown
Contributor

@eddumelendez I think #1946 can be closed now.

This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL