testcontainers / testcontainers/testcontainers-java
Add ImageFromArchive as an alternative to ImageFromDockerfile
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 1.9k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 9
Description
It would be great to be able to spin up a GenericContainer with an arbitrary filesystem in order to have even more flexibility.
One possible implementation for this could be to add an ImageFromArchive class as an alternative to the existing ImageFromDockerfile. It could take a byte array/inputstream containing one of the archive formats supported by docker import as a parameter.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing ImageFromDockerfile and GenericContainer implementations, then check which archive formats are accepted by docker import. Done means an ImageFromArchive alternative can accept the proposed byte-array or input-stream input and supports the requested arbitrary filesystem use case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, java
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100