Skip to content

Commit 9f2935f

Browse files
committed
Merge branch 'develop' into update-from-template-merged
2 parents ce3728f + 25cd186 commit 9f2935f

File tree

59 files changed

+5569
-49
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+5569
-49
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ body:
1515
attributes:
1616
label: "Checklist"
1717
options:
18-
- label: "I am able to reproduce the bug with the [latest version](https://github.com/xdev-software/template-placeholder/releases/latest)"
18+
- label: "I am able to reproduce the bug with the [latest version](https://github.com/xdev-software/testcontainers-advanced-imagebuilder/releases/latest)"
1919
required: true
20-
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/template-placeholder/issues) or [closed](https://github.com/xdev-software/template-placeholder/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
20+
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/testcontainers-advanced-imagebuilder/issues) or [closed](https://github.com/xdev-software/testcontainers-advanced-imagebuilder/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
2121
required: true
2222
- label: "I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise."
2323
required: true

.github/ISSUE_TEMPLATE/enhancement.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ body:
1313
attributes:
1414
label: "Checklist"
1515
options:
16-
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/template-placeholder/issues) or [closed](https://github.com/xdev-software/template-placeholder/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
16+
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/testcontainers-advanced-imagebuilder/issues) or [closed](https://github.com/xdev-software/testcontainers-advanced-imagebuilder/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
1717
required: true
1818
- label: "I have taken the time to fill in all the required details. I understand that the feature request will be dismissed otherwise."
1919
required: true

.github/ISSUE_TEMPLATE/question.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ body:
1212
attributes:
1313
label: "Checklist"
1414
options:
15-
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/template-placeholder/issues) or [closed](https://github.com/xdev-software/template-placeholder/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
15+
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/testcontainers-advanced-imagebuilder/issues) or [closed](https://github.com/xdev-software/testcontainers-advanced-imagebuilder/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
1616
required: true
1717
- label: "I have taken the time to fill in all the required details. I understand that the question will be dismissed otherwise."
1818
required: true

.github/workflows/check-build.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ env:
2424

2525
jobs:
2626
build:
27-
runs-on: ubuntu-latest
2827
timeout-minutes: 30
2928
strategy:
3029
matrix:
31-
java: [17, 21, 25]
30+
java: [21, 25]
3231
distribution: [temurin]
32+
os: [ubuntu-latest, windows-latest] # Windows is needed for recursive NTFS junctions
33+
runs-on: ${{ matrix.os }}
3334
steps:
3435
- uses: actions/checkout@v5
3536

@@ -48,9 +49,10 @@ jobs:
4849
${{ runner.os }}-mvn-build-
4950
5051
- name: Build with Maven
51-
run: ./mvnw -B clean package
52+
run: ./mvnw -B clean package -P run-integration-tests -T2C
5253

5354
- name: Check for uncommited changes
55+
shell: bash
5456
run: |
5557
if [[ "$(git status --porcelain)" != "" ]]; then
5658
echo ----------------------------------------
@@ -68,20 +70,13 @@ jobs:
6870
exit 1
6971
fi
7072
71-
- name: Upload demo files
72-
uses: actions/upload-artifact@v4
73-
with:
74-
name: demo-files-java-${{ matrix.java }}
75-
path: ${{ env.DEMO_MAVEN_MODULE }}/target/${{ env.DEMO_MAVEN_MODULE }}.jar
76-
if-no-files-found: error
77-
7873
checkstyle:
7974
runs-on: ubuntu-latest
8075
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/') }}
8176
timeout-minutes: 15
8277
strategy:
8378
matrix:
84-
java: [17]
79+
java: [21]
8580
distribution: [temurin]
8681
steps:
8782
- uses: actions/checkout@v5
@@ -117,7 +112,7 @@ jobs:
117112
timeout-minutes: 15
118113
strategy:
119114
matrix:
120-
java: [17]
115+
java: [21]
121116
distribution: [temurin]
122117
steps:
123118
- uses: actions/checkout@v5

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Set up JDK
2424
uses: actions/setup-java@v5
2525
with:
26-
java-version: '17'
26+
java-version: '21'
2727
distribution: 'temurin'
2828

2929
# Try to reuse existing cache from check-build
@@ -127,7 +127,7 @@ jobs:
127127
uses: actions/setup-java@v5
128128
with: # running setup-java overwrites the settings.xml
129129
distribution: 'temurin'
130-
java-version: '17'
130+
java-version: '21'
131131
server-id: github-central
132132
server-password: PACKAGES_CENTRAL_TOKEN
133133
gpg-passphrase: MAVEN_GPG_PASSPHRASE
@@ -144,7 +144,7 @@ jobs:
144144
uses: actions/setup-java@v5
145145
with: # running setup-java again overwrites the settings.xml
146146
distribution: 'temurin'
147-
java-version: '17'
147+
java-version: '21'
148148
server-id: sonatype-central-portal
149149
server-username: MAVEN_CENTRAL_USERNAME
150150
server-password: MAVEN_CENTRAL_TOKEN
@@ -174,7 +174,7 @@ jobs:
174174
- name: Setup - Java
175175
uses: actions/setup-java@v5
176176
with:
177-
java-version: '17'
177+
java-version: '21'
178178
distribution: 'temurin'
179179

180180
# Try to reuse existing cache from check-build

.github/workflows/test-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: actions/setup-java@v5
1818
with: # running setup-java overwrites the settings.xml
1919
distribution: 'temurin'
20-
java-version: '17'
20+
java-version: '21'
2121
server-id: github-central
2222
server-password: PACKAGES_CENTRAL_TOKEN
2323
gpg-passphrase: MAVEN_GPG_PASSPHRASE
@@ -34,7 +34,7 @@ jobs:
3434
uses: actions/setup-java@v5
3535
with: # running setup-java again overwrites the settings.xml
3636
distribution: 'temurin'
37-
java-version: '17'
37+
java-version: '21'
3838
server-id: sonatype-central-portal
3939
server-username: MAVEN_CENTRAL_USERNAME
4040
server-password: MAVEN_CENTRAL_TOKEN

.run/Run Demo.run.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<component name="ProjectRunConfigurationManager">
22
<configuration default="false" name="Run Demo" type="Application" factoryName="Application">
33
<option name="MAIN_CLASS_NAME" value="software.xdev.Application" />
4-
<module name="template-placeholder-demo" />
4+
<module name="testcontainers-advanced-imagebuilder-demo" />
55
<option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
66
<extension name="coverage">
77
<pattern>

CHANGELOG.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# 2.4.0
2+
* Update to Testcontainers v2
3+
4+
# 2.3.0
5+
* Use Virtual Threads on Java 21+
6+
* Minor optimizations
7+
* Updated dependencies
8+
9+
# 2.2.1
10+
* Windows NTFS junction fix
11+
* Automatically disable it on Java 26+ as [JDK-8364277](https://bugs.openjdk.org/browse/JDK-8364277) is fixed there
12+
* Backport changes from Java 25 to ensure compatibility and get performance improvements (JEP 486)
13+
* Updated dependencies
14+
15+
# 2.2.0
16+
* Added an explicit option for enabling the Windows NTFS junction fix: ``useWinNTFSJunctionFixIfApplicable`` #155
17+
* Enabling it also requires adding ``--add-exports java.base/sun.nio.fs=ALL-UNNAMED`` or performance will be impacted by ~20x due to non-accessible file attributes cache
18+
* This option is temporary and will be removed once the [underlying JDK bug](https://bugs.openjdk.org/browse/JDK-8364277) was fixed
19+
* The default logger of ``AdvancedImageFromDockerFile`` now also includes ``dockerImageName`` to make it easier to distinguish between parallel builds
20+
21+
# 2.1.1
22+
* Addresses a JDK bug which results in a crash or "infinite" loop when encountering recursive NTFS junctions on Windows #155
23+
24+
# 2.1.0
25+
* Add customizer for ``TransferArchiveTARCompressor``
26+
* Create more predefined FileContentModifiers
27+
* This allows to e.g. remove not needed Maven modules when building
28+
29+
# 2.0.2
30+
* Don't try to pull reserved ``scratch`` image during build
31+
32+
# 2.0.1
33+
* Improve matching in ``DockerfileCOPYParentsEmulator`` #134
34+
* Now should properly handle ``./``
35+
36+
# 2.0.0
37+
* Changed ignore backend to utilize [JGit](https://github.com/eclipse-jgit/jgit)
38+
* This should now behave exactly like a ``.gitignore``
39+
* Overall performance should be a lot faster
40+
* Make it possible to modify transferred files
41+
* Provide an option to emulate [``COPY --parents``](https://docs.docker.com/reference/dockerfile/#copy---parents) using ``DockerfileCOPYParentsEmulator`` (which is currently not supported by Docker out of the box)
42+
* This option is required to utilize Docker's cache properly
43+
```docker
44+
# syntax=docker/dockerfile:1-labs
45+
# ...
46+
47+
# Copy & Cache wrapper
48+
COPY --parents mvnw .mvn/** ./
49+
RUN ./mvnw --version
50+
51+
# Copy & Cache poms/dependencies
52+
COPY --parents **/pom.xml ./
53+
# Resolve jars so that they can be cached and don't need to be downloaded when a Java file changes
54+
RUN ./mvnw -B dependency:go-offline -pl app -am -DincludeScope=runtime -T2C
55+
56+
# Copying all other files
57+
COPY . ./
58+
# Run the actual build
59+
RUN ./mvnw -B clean package -pl app -am -T2C -Dmaven.test.skip
60+
```
61+
* At ton of minor optimizations and improvements
62+
63+
# 1.2.0
64+
* Provide an option to always transfer specific paths
65+
* Always transfer Dockerfile - as it is required for building - by default
66+
67+
# 1.1.1
68+
* Migrated deployment to _Sonatype Maven Central Portal_ [#155](https://github.com/xdev-software/standard-maven-template/issues/155)
69+
70+
# 1.1.0
71+
* Remove testcontainer's dependency [onto JUnit 4](https://github.com/xdev-software/testcontainers-junit4-mock/?tab=readme-ov-file)
72+
* Updated dependencies
73+
74+
# 1.0.2
75+
* Do not pull images that are declared inside the Dockerfile (Multi-Stage build)
76+
77+
# 1.0.1
78+
* Minor improvements in cleanup behavior (backported from upstream)
79+
80+
# 1.0.0
81+
_Initial release_

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ You should have the following things installed:
3434
* Ensure that the JDK/Java-Version is correct
3535

3636

37-
## Releasing [![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/template-placeholder/release.yml?branch=master)](https://github.com/xdev-software/template-placeholder/actions/workflows/release.yml)
37+
## Releasing [![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/testcontainers-advanced-imagebuilder/release.yml?branch=master)](https://github.com/xdev-software/testcontainers-advanced-imagebuilder/actions/workflows/release.yml)
3838

3939
Before releasing:
40-
* Consider doing a [test-deployment](https://github.com/xdev-software/template-placeholder/actions/workflows/test-deploy.yml?query=branch%3Adevelop) before actually releasing.
40+
* Consider doing a [test-deployment](https://github.com/xdev-software/testcontainers-advanced-imagebuilder/actions/workflows/test-deploy.yml?query=branch%3Adevelop) before actually releasing.
4141
* Check the [changelog](CHANGELOG.md)
4242

4343
If the ``develop`` is ready for release, create a pull request to the ``master``-Branch and merge the changes

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@
187187
identification within third-party archives.
188188

189189
Copyright 2024 XDEV Software
190+
Copyright 2023 Java Git Contributors
190191

191192
Licensed under the Apache License, Version 2.0 (the "License");
192193
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)