From fecf7f55d5a861c48c68db3e04c1e547c1ccac77 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 1 Aug 2026 07:44:47 +0000 Subject: [PATCH 1/2] chore: bump actions/setup-python from 6.3.0 to 7.0.0 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6.3.0 to 7.0.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v6.3.0...v7.0.0) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/qa.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index c996ddd..fc23903 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -20,7 +20,7 @@ jobs: - name: Clone repository uses: actions/checkout@v7.0.1 - name: Use Python - uses: actions/setup-python@v6.3.0 + uses: actions/setup-python@v7.0.0 with: python-version: ${{ matrix.version }} - name: Install dependencies diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b63d0fb..bc9d915 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: fetch-depth: '0' token: ${{ secrets.TOKEN_GITHUB_TO_GITHUB_REPOSITORIES_RW }} - name: Use Python - uses: actions/setup-python@v6.3.0 + uses: actions/setup-python@v7.0.0 with: python-version: '3.14' - name: Install dependencies From b4eead05d5da51e5ab3ee23f6afeb7efa3b281e1 Mon Sep 17 00:00:00 2001 From: Golo Roden Date: Sat, 1 Aug 2026 09:51:20 +0200 Subject: [PATCH 2/2] fix: copy signing key before starting the container The container was started with `--signing-key-file` and the key file was only copied into it afterwards. Whether the server found the file in time was pure timing luck; if it lost the race it exited with Error: open /etc/esdb/signing-key.pem: no such file or directory leaving no port mapping behind, so the start failed with "Failed to determine mapped port". Create the container first, copy the key into it and only then start it. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01F3ADPwk11GHQF7BBwQHaPz --- eventsourcingdb/container.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eventsourcingdb/container.py b/eventsourcingdb/container.py index 8f4e798..3be6b9b 100644 --- a/eventsourcingdb/container.py +++ b/eventsourcingdb/container.py @@ -65,11 +65,12 @@ def _create_container(self) -> None: target_path = "/etc/esdb/signing-key.pem" command.extend(["--signing-key-file", target_path]) - self._container = self._docker_client.containers.run( + # Only create the container for now, so that the signing key can be copied + # into it before the server starts and tries to read it. + self._container = self._docker_client.containers.create( f"{self._image_name}:{self._image_tag}", command=command, ports=port_bindings, # type: ignore - detach=True, ) # type: ignore # Copy signing key into container if needed @@ -102,6 +103,8 @@ def _create_container(self) -> None: # Put the archive into /etc which should exist self._container.put_archive('/etc', tar_stream) + self._container.start() + def _extract_port_from_container_info(self, container_info) -> int | None: port = None valid_mapping = True