Skip to content

Commit 653981b

Browse files
authored
Merge pull request #586 from com-pas/fix/set-docker-api-version
fix: set Docker API version to 1.44 for compatibility with Testcontainer
2 parents a5bb594 + 236279d commit 653981b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/build-project.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ jobs:
3838
distribution: 'zulu'
3939
java-version: '17'
4040
cache: 'maven'
41+
42+
- name: Set Docker API version
43+
# Workaround for Docker 29.x incompatibility with Testcontainers/EmbeddedPostgres.
44+
# See: https://github.com/testcontainers/testcontainers-java/issues/11212
45+
# This forces the Docker Java client to use API version 1.44, which is compatible with current Testcontainers/EmbeddedPostgres.
46+
run: |
47+
echo "api.version=1.44" > $HOME/.docker-java.properties
4148
4249
- name: Create custom Maven Settings.xml
4350
uses: whelk-io/maven-settings-xml-action@v22

.github/workflows/sonarcloud-build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ jobs:
4949
distribution: 'zulu'
5050
java-version: '17'
5151

52+
- name: Set Docker API version
53+
# Workaround for Docker 29.x incompatibility with Testcontainers/EmbeddedPostgres.
54+
# See: https://github.com/testcontainers/testcontainers-java/issues/11212
55+
# This forces the Docker Java client to use API version 1.44, which is compatible with current Testcontainers/EmbeddedPostgres.
56+
run: |
57+
echo "api.version=1.44" > $HOME/.docker-java.properties
58+
5259
- name: Create custom Maven Settings.xml
5360
uses: whelk-io/maven-settings-xml-action@v22
5461
with:

0 commit comments

Comments
 (0)