Skip to content

feat(docker): add docker-entrypoint.d/ support for user init scripts#83

Open
sswater wants to merge 1 commit into
OpenBMB:mainfrom
sswater:feature/docker-entrypoint-d
Open

feat(docker): add docker-entrypoint.d/ support for user init scripts#83
sswater wants to merge 1 commit into
OpenBMB:mainfrom
sswater:feature/docker-entrypoint-d

Conversation

@sswater
Copy link
Copy Markdown

@sswater sswater commented May 31, 2026

Create /docker-entrypoint.d/ directory in the Dockerfile and update docker-entrypoint.sh to scan and execute user-provided init scripts (sorted by filename) before starting the main PilotDeck processes.

This allows users to customize container initialization (e.g. install additional deps, fix mount permissions, generate dynamic keys) by mounting scripts without forking the repository.

Create /docker-entrypoint.d/ directory in the Dockerfile and update
docker-entrypoint.sh to scan and execute user-provided init scripts
(sorted by filename) before starting the main PilotDeck processes.

This allows users to customize container initialization (e.g. install
additional deps, fix mount permissions, generate dynamic keys) by
mounting scripts without forking the repository.
@sswater
Copy link
Copy Markdown
Author

sswater commented May 31, 2026

我的实际场景是: docker 运行时,如果我要扩展安装 pip 或 npm 包,则需要安装在持久化目录下,例如 /root/.pilotdeck/venv 或者 /root/.pilotdeck/.npm-global 下,因此我需要在容器启动时,activate venv 或者 npm config set 以及声明 PATH 。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant