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

testutil: copy slim version of the docker client into testutil #5731

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jsternberg
Copy link
Collaborator

Copies a slim version of the docker client with only the necessary methods so we can break our dependency on the client in moby. This client is only used in an integration test so it's not really needed and we don't really actively need updates or to be on the most recent API version since we just do an unversioned ping and then call the hijack method.

This was created by copying the package into testutil and then deleting unused sections of code.

Fixes #3355.

@github-actions github-actions bot added area/dependencies Pull requests that update a dependency file area/util labels Feb 12, 2025
@jsternberg jsternberg force-pushed the remove-docker-api-dependency branch 2 times, most recently from 723c3dc to 85a8590 Compare February 12, 2025 19:01
@jsternberg jsternberg marked this pull request as ready for review February 12, 2025 20:09
@jsternberg jsternberg force-pushed the remove-docker-api-dependency branch from 85a8590 to 2d26d6c Compare February 12, 2025 21:49
@tonistiigi
Copy link
Member

@jsternberg Can you open a draft PR from this branch in moby so we can see the tests with dockerd worker passing there.

@jsternberg
Copy link
Collaborator Author

jsternberg commented Feb 13, 2025

This is passing in the draft PR. I had to rebase this PR to be based on v0.19 though to make it work because of unrelated API changes. I'll rebase it back and resolve the conflicts.

moby/moby#49459

@jsternberg jsternberg force-pushed the remove-docker-api-dependency branch from 35d84a6 to 2cea406 Compare February 13, 2025 19:01
Copies a slim version of the docker client with only the necessary
methods so we can break our dependency on the client in moby. This
client is only used in an integration test so it's not really needed and
we don't really actively need updates or to be on the most recent API
version since we just do an unversioned ping and then call the hijack
method.

This was created by copying the package into `testutil` and then
deleting unused sections of code.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
@jsternberg jsternberg force-pushed the remove-docker-api-dependency branch from 2cea406 to f81eeb4 Compare February 14, 2025 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dependencies Pull requests that update a dependency file area/util
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove dependency on docker/docker/client
4 participants