Skip to content

Reverts create container cmd regression. - #1203

Merged
KostyaSha merged 3 commits into
docker-java:masterfrom
pedro93:fix-3.1.0-rc-create-container-regression
Jun 25, 2019
Merged

Reverts create container cmd regression.#1203
KostyaSha merged 3 commits into
docker-java:masterfrom
pedro93:fix-3.1.0-rc-create-container-regression

Conversation

@pedro93

@pedro93 pedro93 commented Jun 18, 2019

Copy link
Copy Markdown

Summary:
Adds Binds, Links, NetworkMode, PortBindings, Privileged, VolumesFrom, PublishAllPorts, ExtraHosts, CapAdd and CapDrop related methods to CreateContainerCmd interface and related implementation.

This was done so that the test-containers project can bump its docker-java dependency to support the latest docker version.
See testcontainers/testcontainers-java#1340 for more.

Tested change by locally installing this branch of docker-java and running the updated test-containers codebase's gradle check process similarly to the repo's CI


This change is Reviewable

Summary:
 - Adds Binds, Links, Network Mode, Port Bindings, Priviliged,
 VolumesFrom, PublishAllPorts, ExtraHosts related methods to
 CreateContainerCmd interface and related interface.

 This was done so that the test-containers project can bump it's
 docker-java dependency for support to the latest docker version.
 See testcontainers/testcontainers-java#1340 for
 more.
CapAdd/CapDrop methods

Manually tested that test containers repository passes gradle check
process used by their CI process.
@pedro93

pedro93 commented Jun 18, 2019

Copy link
Copy Markdown
Author

Failing build https://travis-ci.org/docker-java/docker-java/jobs/547180117#L3488
Seems to be due to:

com.github.dockerjava.api.exception.InternalServerErrorException: {"message":"json: cannot unmarshal object into Go struct field ContainerConfigWrapper.Binds of type string"}

Any clue/help you could provide?

@pedro93

pedro93 commented Jun 18, 2019

Copy link
Copy Markdown
Author

Tests pass if I add @JsonIgnore to CreateContainerCmdImpl#getBinds.
Should I add this annotation to all added CreateContainerCmdImpl getter methods since these properties should be serialized in the HostConfig object?

@pedro93

pedro93 commented Jun 18, 2019

Copy link
Copy Markdown
Author

I can not reproduce the CI failing tests locally, are they flaky?

@KostyaSha

Copy link
Copy Markdown
Member

I can not reproduce the CI failing tests locally, are they flaky?

it's ok

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.

2 participants