fix: default shell executable to /bin/sh for Alpine compatibility (#241)

The init hook executor defaulted to /bin/bash, which is not available on
Alpine-based Docker images (eclipse-temurin:25-jre-alpine). This caused
startup hooks to fail with "No such file or directory". /bin/sh is
universally available and POSIX-compatible.
This commit is contained in:
Mike Pettypiece authored and GitHub committed 2026-04-06 15:27:06 -05:00
1 parent 7ea586e446
commit d02a1d9a13
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ floci:
presign-secret: local-emulator-secret # HMAC secret for S3 pre-signed URL verification
init-hooks:
shell-executable: /bin/bash
shell-executable: /bin/sh
timeout-seconds: 30
shutdown-grace-period-seconds: 2
+1 -1
View File
@@ -117,7 +117,7 @@ You can customize hook behavior via configuration:
| Key | Default | Description |
|--------------------------------------------------|-------------|------------------------------------------------------------------------------------------------------------------|
| `floci.init-hooks.shell-executable` | `/bin/bash` | Shell executable used to run scripts |
| `floci.init-hooks.shell-executable` | `/bin/sh` | Shell executable used to run scripts |
| `floci.init-hooks.timeout-seconds` | `30` | Maximum execution time per script before it is terminated and considered failed |
| `floci.init-hooks.shutdown-grace-period-seconds` | `2` | Time to wait after calling `destroy()` before forcefully stopping the process (allows cleanup hooks to complete) |
@@ -430,7 +430,7 @@ public interface EmulatorConfig {
}
interface InitHooksConfig {
@WithDefault("/bin/bash")
@WithDefault("/bin/sh")
String shellExecutable();
@WithDefault("2")
+1 -1
View File
@@ -37,7 +37,7 @@ floci:
presign-secret: test-secret
init-hooks:
shell-executable: /bin/bash
shell-executable: /bin/sh
timeout-seconds: 5
shutdown-grace-period-seconds: 2