fix(devops): bypass OpenBao base entrypoint to prevent dev-mode flags
Some checks failed
ci/woodpecker/push/infra Pipeline failed
Some checks failed
ci/woodpecker/push/infra Pipeline failed
The base openbao image's docker-entrypoint.sh injects -dev-root-token-id and -dev-listen-address flags when it sees 'server' as $1, causing the server to exit immediately (code 0). Override entrypoint with dumb-init and call bao directly to avoid the dev-mode flag injection. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -27,7 +27,8 @@ services:
|
||||
openbao:
|
||||
image: git.mosaicstack.dev/mosaic/stack-openbao:${IMAGE_TAG:-dev}
|
||||
container_name: mosaic-openbao
|
||||
command: server -config=/openbao/config/config.hcl
|
||||
entrypoint: ["dumb-init", "--"]
|
||||
command: ["bao", "server", "-config=/openbao/config/config.hcl"]
|
||||
environment:
|
||||
OPENBAO_ADDR: http://0.0.0.0:8200
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user