Skip to content

Commit 8800055

Browse files
Fix issue with docker / test containers (#1411)
* Update testcontainers to version 2.0.2 and force version of `commons-io`. * Add developer notes to force docker api version to accept a minimum version of `1.44`.
1 parent 7825d42 commit 8800055

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

nhs-england-developer-information.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,18 @@ Use environment variables to configure the tests to use:
135135
./gradlew cleanIntegrationTest integrationTest -i
136136
```
137137
138+
Please note that if you see an error such as:
139+
140+
`Level=ERROR Logger=o.t.d.DockerClientProviderStrategy Could not find a valid Docker environment.`
141+
142+
Then run the following command from a terminal window, and restart your docker engine (or machine):
143+
144+
```bash
145+
cat > ~/.docker-java.properties <<EOF
146+
api.version=1.44
147+
EOF
148+
```
149+
138150
## How to run e2e tests:
139151
140152
End-to-end (e2e) tests execute against an already running / deployed adaptor and its dependencies. You must run these

service/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ dependencies {
7878
testImplementation 'org.springframework.boot:spring-boot-starter-test'
7979
testImplementation "org.assertj:assertj-core:3.27.6"
8080
testImplementation 'org.apache.commons:commons-compress:1.28.0'
81-
testImplementation 'org.testcontainers:testcontainers:1.21.3'
82-
testImplementation 'org.testcontainers:junit-jupiter:1.21.3'
81+
testImplementation(platform('org.testcontainers:testcontainers-bom:2.0.2'))
82+
testImplementation 'commons-io:commons-io:2.21.0'
83+
testImplementation 'org.testcontainers:testcontainers'
84+
testImplementation 'org.testcontainers:junit-jupiter'
8385
testImplementation 'org.awaitility:awaitility:4.3.0'
8486
testImplementation 'org.wiremock:wiremock-standalone:3.13.1'
8587
testImplementation 'com.squareup.okhttp3:okhttp:5.3.0'

0 commit comments

Comments
 (0)