testcontainers / testcontainers-python

Testcontainers is a Python library that providing a friendly API to run Docker container. It is designed to create runtime environment to use during your automatic tests.
https://testcontainers-python.readthedocs.io/en/latest/
Apache License 2.0
1.51k stars 281 forks source link

feat(core): Image build (Dockerfile support) #585

Closed Tranquility2 closed 3 months ago

Tranquility2 commented 3 months ago

As part of the effort described, detailed and presented on #559 (Providing the implementation for #83 - Docker file support and more) This is the first PR (out of 4) that should provide all the groundwork to support image build.

This would allow users to use custom images:

  with DockerImage(path=".") as image:
            with DockerContainer(str(image)) as container:
                # Test something with/on custom image

Next in line is: feat(core): Added SrvContainer And later on: feat(core): Added FastAPI module feat(core): Added AWS Lambda module (all of the above can be overviewed on #559)

juangon commented 3 months ago

Would be great having this :+1: