remove Python from Docker: use Rust CLI for config generation

This commit is contained in:
Adil Hafeez 2026-03-23 05:09:47 +00:00
parent 2e3744fd1a
commit 6cf0c4ff7b
5 changed files with 66 additions and 20 deletions

View file

@ -4,7 +4,13 @@ pidfile=/var/run/supervisord.pid
[program:config_generator]
command=/bin/sh -c "\
uv run python -m planoai.config_generator && \
PLANO_CONFIG_FILE=/app/plano_config.yaml \
PLANO_CONFIG_SCHEMA_FILE=/config/plano_config_schema.yaml \
TEMPLATE_ROOT=/config \
ENVOY_CONFIG_TEMPLATE_FILE=envoy.template.yaml \
PLANO_CONFIG_FILE_RENDERED=/app/plano_config_rendered.yaml \
ENVOY_CONFIG_FILE_RENDERED=/etc/envoy/envoy.yaml \
planoai render-config && \
envsubst < /app/plano_config_rendered.yaml > /app/plano_config_rendered.env_sub.yaml && \
envsubst < /etc/envoy/envoy.yaml > /etc/envoy.env_sub.yaml && \
touch /tmp/config_ready || \