citrusframework / citrusframework/citrus
Support for creating custom volume binds from the citrus docker module
- Dominant language
- Java
- Stars
- 485
- Forks
- 155
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 6
Description
**User story**
As a backend tester, my specific use case requirement is that my Citrus test starts up docker containers, run IT tests, then stop them afterwards. The citrus docker module is quite helpful; however the ```volumes``` option in the ```ContainerCreateBuilder``` class only creates anonymous volumes mounted to a default path according to the Docker API spec. To create custom volume mounts, the Docker API expects me to add those to a ```Binds``` field under ```HostConfig```. Currently there is no implementation for populating that field in the JSON request to the Docker API. Could we please add it?
https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerCreate
Contributor guide
Research direction
Start by reading ContainerCreateBuilder and the linked Docker ContainerCreate API documentation, then trace how the current volumes option is serialized into the request. Done means custom volume mounts are represented in the HostConfig Binds field for container creation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, java
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100