Skip to content

Commit 30b54c2

Browse files
golorodenclaude
andcommitted
fix: Use original /etc/esdb path for signing key file
Restore the originally intended path /etc/esdb/signing-key.pem instead of /tmp/signing-key.pem. Both work, but /etc/esdb matches the original design and is more semantically correct. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 57817f4 commit 30b54c2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Container.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function start(): void
6161

6262
if ($this->signingKey instanceof SigningKey) {
6363
$command[] = '--signing-key-file';
64-
$command[] = '/tmp/signing-key.pem';
64+
$command[] = '/etc/esdb/signing-key.pem';
6565
}
6666

6767
$container = (new GenericContainer("{$this->imageName}:{$this->imageTag}"))
@@ -70,13 +70,13 @@ public function start(): void
7070

7171
if ($this->signingKey instanceof SigningKey) {
7272
// Create a temporary file with the signing key in the current directory
73-
// Using current directory instead of sys_get_temp_dir() for better CI compatibility
73+
// Using current directory instead of sys_get_temp_dir() for better Docker mount compatibility in CI
7474
$this->tempSigningKeyFile = getcwd() . '/.esdb_signing_key_' . uniqid();
7575
file_put_contents($this->tempSigningKeyFile, $this->signingKey->privateKeyPem);
7676
chmod($this->tempSigningKeyFile, 0o644);
7777

78-
// Mount the temp file into the container
79-
$container = $container->withMount($this->tempSigningKeyFile, '/tmp/signing-key.pem');
78+
// Mount the temp file into the container at the originally intended location
79+
$container = $container->withMount($this->tempSigningKeyFile, '/etc/esdb/signing-key.pem');
8080
}
8181

8282
$container = $container->withWait((new WaitForHttp($this->internalPort, 20000))->withPath('/api/v1/ping'));

0 commit comments

Comments
 (0)