Deployment configuration
Deployments pass the path of a JSON configuration file to the Bedrock executable using BEDROCK_DB_CONFIG. The Rust libraries accept structured configuration.
- SQLite uses
deploy/sqlite.jsonas a template. Setsqlite_pathto a persistent, writable volume path. - PostgreSQL injects the Gitea Actions variable values
BEDROCK_PG_HOST,BEDROCK_PG_PORT,BEDROCK_PG_DATABASEandBEDROCK_PG_USER, and the secretBEDROCK_PG_PASSWORD, into the deployment step. Runpython3 deploy/render-postgres.py /path/to/private/bedrock.json --deployment production. The renderer writes a private file and does not print its contents. Mount that file for the Bedrock service and setBEDROCK_DB_CONFIGto the mounted path. The configured database must already exist and the server must present a trusted certificate matching the database address. - MySQL accepts the same cluster shape described in the storage configuration with
"driver": "mysql"and amysql://endpoint.
Keep BEDROCK_S3_SECRET_KEY, BEDROCK_S3_ENDPOINT, and BEDROCK_S3_ACCESS_KEY scoped to the deployment that consumes object storage. S3 integration is pending. The PostgreSQL renderer and db use only SQL configuration.
Pull requests currently run without an automatic storage check. The optional ci/check-sql.sh script uses isolated database containers and generated fixture credentials when run on an approved remote runner.
Release on the existing deployment host
Gitea builds a release on ces-control when a commit lands on main. The deploy step renders the private PostgreSQL configuration and runs the current one-shot Rust storage initializer on the existing endoleap-dev_default network. It publishes releases under /opt/endoleap-infra/bedrock-rust/releases and switches /opt/endoleap-infra/bedrock-rust/current after successful initialization. The Go service retains its own containers and routes.