fix: pass tigerbeetle init script as single shell command
All checks were successful
Build Docker Image / build (push) Successful in 2m23s
All checks were successful
Build Docker Image / build (push) Successful in 2m23s
This commit is contained in:
@@ -24,12 +24,11 @@ services:
|
|||||||
image: ghcr.io/tigerbeetle/tigerbeetle:latest
|
image: ghcr.io/tigerbeetle/tigerbeetle:latest
|
||||||
privileged: true
|
privileged: true
|
||||||
entrypoint: ["/bin/sh", "-ec"]
|
entrypoint: ["/bin/sh", "-ec"]
|
||||||
command: |
|
command:
|
||||||
TB_FILE=/var/lib/tigerbeetle/0_0.tigerbeetle
|
- >-
|
||||||
if [ ! -f "$$TB_FILE" ]; then
|
TB_FILE=/var/lib/tigerbeetle/0_0.tigerbeetle; if [ ! -f "$$TB_FILE" ];
|
||||||
/tigerbeetle format --cluster=0 --replica=0 "$$TB_FILE"
|
then /tigerbeetle format --cluster=0 --replica=0 "$$TB_FILE"; fi; exec
|
||||||
fi
|
/tigerbeetle start --addresses=0.0.0.0:3000 --development "$$TB_FILE"
|
||||||
exec /tigerbeetle start --addresses=0.0.0.0:3000 --development "$$TB_FILE"
|
|
||||||
expose:
|
expose:
|
||||||
- "3000"
|
- "3000"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user