Skip to content

Commit 8a7b97e

Browse files
authored
chore: Pin Docker Engine API for GH workflow to 1.47 (#1608)
1 parent 6e27af6 commit 8a7b97e

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.github/workflows/cicd.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ env:
2222
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
2323
DOTNET_USE_POLLING_FILE_WATCHER: true
2424
NUGET_XMLDOC_MODE: skip
25-
TZ: CET # https://stackoverflow.com/q/53510011
25+
# https://stackoverflow.com/q/53510011.
26+
TZ: CET
2627

2728
jobs:
2829
collect-test-projects:
@@ -60,6 +61,10 @@ jobs:
6061

6162
runs-on: ${{ matrix.test-projects.runs-on }}
6263

64+
env:
65+
# Lowest API version that GitHub runners support.
66+
DOCKER_API_VERSION: 1.47
67+
6368
steps:
6469
- name: Checkout Repository
6570
uses: actions/checkout@v5
@@ -170,7 +175,7 @@ jobs:
170175
run: ./build.sh --target=Publish
171176
shell: bash
172177

173-
# Cake sets the semVer environment variable
178+
# Cake sets the semVer environment variable.
174179
- uses: release-drafter/release-drafter@v6
175180
with:
176181
version: ${{ env.semVer }}

docs/custom_configuration/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Testcontainers supports various configurations to set up your test environment.
1616
| `docker.socket.override` | `TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE` | The file path to the Docker daemon socket that is used by Ryuk (resource reaper). | `/var/run/docker.sock` |
1717
| `ryuk.disabled` | `TESTCONTAINERS_RYUK_DISABLED` | Disables Ryuk (resource reaper). | `false` |
1818
| `ryuk.container.privileged` | `TESTCONTAINERS_RYUK_CONTAINER_PRIVILEGED` | Runs Ryuk (resource reaper) in privileged mode. | `true` |
19-
| `ryuk.container.image` | `TESTCONTAINERS_RYUK_CONTAINER_IMAGE` | The Ryuk (resource reaper) Docker image. | `testcontainers/ryuk:0.12.0` |
19+
| `ryuk.container.image` | `TESTCONTAINERS_RYUK_CONTAINER_IMAGE` | The Ryuk (resource reaper) Docker image. | `testcontainers/ryuk:0.14.0` |
2020
| `hub.image.name.prefix` | `TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX` | The name to use for substituting the Docker Hub registry part of the image name. | - |
2121
| `wait.strategy.retries` | `TESTCONTAINERS_WAIT_STRATEGY_RETRIES` | The wait strategy retry count. | `infinite` |
2222
| `wait.strategy.interval` | `TESTCONTAINERS_WAIT_STRATEGY_INTERVAL` | The wait strategy interval<sup>1</sup>. | `00:00:01` |
@@ -107,7 +107,7 @@ In .NET logging usually goes through the test framework. Testcontainers is not a
107107
[testcontainers.org 00:00:00.47] Searching Docker registry credential in CredsStore
108108
[testcontainers.org 00:00:00.47] Searching Docker registry credential in Auths
109109
[testcontainers.org 00:00:00.51] Docker registry credential https://index.docker.io/v1/ found
110-
[testcontainers.org 00:00:03.16] Docker image testcontainers/ryuk:0.3.4 created
110+
[testcontainers.org 00:00:03.16] Docker image testcontainers/ryuk:0.14.0 created
111111
[testcontainers.org 00:00:03.24] Docker container b6fad46fbcec84625281c1401ec91158b25cad6495fa612274af7c920abec14e created
112112
[testcontainers.org 00:00:03.29] Start Docker container b6fad46fbcec84625281c1401ec91158b25cad6495fa612274af7c920abec14e
113113
[testcontainers.org 00:00:06.18] Docker image alpine:latest created

docs/test_frameworks/xunit_net.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ PS C:\Sources\dotnet\testcontainers-dotnet> docker ps
4444
CONTAINER ID IMAGE COMMAND CREATED
4545
be115f3df138 redis:7.0 "docker-entrypoint.s…" 3 seconds ago
4646
59349127f8c0 redis:7.0 "docker-entrypoint.s…" 4 seconds ago
47-
45fa02b3e997 testcontainers/ryuk:0.9.0 "/bin/ryuk" 4 seconds ago
47+
45fa02b3e997 testcontainers/ryuk:0.14.0 "/bin/ryuk" 4 seconds ago
4848
```
4949

5050
## Creating a shared test context
@@ -78,7 +78,7 @@ The output of `docker ps` shows that, instead of two Redis containers, only one
7878
PS C:\Sources\dotnet\testcontainers-dotnet> docker ps
7979
CONTAINER ID IMAGE COMMAND CREATED
8080
d29a393816ce redis:7.0 "docker-entrypoint.s…" 3 seconds ago
81-
e878f0b8f4bc testcontainers/ryuk:0.9.0 "/bin/ryuk" 3 seconds ago
81+
e878f0b8f4bc testcontainers/ryuk:0.14.0 "/bin/ryuk" 3 seconds ago
8282
```
8383

8484
To use a single container fixture across all tests of a test-assembly (using xUnit.net v3 or an extension), add the `[assembly: AssemblyFixture(typeof(TContainerFixtureEntity))]` annotation referring to your subclass to the assembly. The fixture can then be injected into test class constructors (as shown above), or accessed using the `TestContext.Current.GetFixture<TContainerFixtureEntity>()` method (v3 only) in any test.

0 commit comments

Comments
 (0)