You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A re-implementation of [Testcontainers Image-Builder](https://java.testcontainers.org/features/creating_images/) with the following improvements:
8
+
* Allows passing a custom logger to the image build - [testcontainers-java#3093](https://github.com/testcontainers/testcontainers-java/issues/3093)
9
+
* Allows using ``ARG``s for ``FROM`` - [testcontainers-java#3238](https://github.com/testcontainers/testcontainers-java/issues/3238)
10
+
* Brings a custom [build-context](https://docs.docker.com/build/building/context/) processor
11
+
* Works more efficient and reliable than the default implementation (however likely still not perfect)
12
+
* uses ``.gitignore`` if available
13
+
* Allows to adding custom ignores
14
+
* This way the build-context can be fine tuned in a way that the build cache works very efficiently (e.g. only re-built when actual code that matters changes)
15
+
* Makes logger non generic and therefore controllable
16
+
* Cleaned up some code
17
+
18
+
A common use case - that can also be seen [inside the demo](./testcontainers-java-advanced-imagebuilder-demo/src/main/java/software/xdev/Application.java) - is for creating an image - used in e.g. Integration tests - for an application that is also inside the same repo.
7
19
8
20
## Installation
9
21
[Installation guide for the latest release](https://github.com/xdev-software/testcontainers-java-advanced-imagebuilder/releases/latest#Installation)
Copy file name to clipboardExpand all lines: testcontainers-java-advanced-imagebuilder/src/main/java/software/xdev/testcontainers/imagebuilder/AdvancedImageFromDockerFile.java
0 commit comments