zebra/docker
Gustavo Valverde aa7205d660
refactor(docker): Enhance Zebra configuration options and entrypoint logic (#9344)
* refactor(docker): Enhance Zebra configuration options and entrypoint logic

- Introduced multiple methods for configuring Zebra, including custom config file paths and automatic generation from environment variables.
- Updated entrypoint script to handle configuration more robustly, checking for existing files and generating defaults as needed.
- Improved documentation in `docker.md` to clarify configuration options and their precedence.
- Adjusted environment variable handling in `docker/.env` for better clarity and functionality.
- Refactored `prepare_conf_file` to create a complete configuration based on environment variables, streamlining the setup process.

* fix(entrypoint): use correct `ZEBRA_RPC_PORT` variable

This also removes the logic to set the default port for RPC as this was introducing a buggy logic

* fix(docker): remove non-essential variables and set correct defaults

* chore(docker): use the default config for docker-compose as the default approach

* Apply suggestions from code review

Co-authored-by: Marek <mail@marek.onl>

* chore: better comment for user understanding

* fix(entrypoint): set permissions correctly for parent directories

* chore: align documentation and implementation

* chore: clearer and aligned comments with docker-compose

* fix(entrypoint): chown the zebra config file when `ZEBRA_CONF_PATH` is not set

---------

Co-authored-by: Marek <mail@marek.onl>
2025-04-16 12:27:32 +00:00
..
zcash-lightwalletd ref(build)!: use official lightwallted image for CI (#8323) 2024-02-29 15:50:50 +00:00
.env refactor(docker): Enhance Zebra configuration options and entrypoint logic (#9344) 2025-04-16 12:27:32 +00:00
Dockerfile refactor(docker): Enhance Zebra configuration options and entrypoint logic (#9344) 2025-04-16 12:27:32 +00:00
default-zebra-config.toml docs(docker): update examples for running Zebra in Docker (#9269) 2025-02-19 17:44:06 +00:00
docker-compose.grafana.yml docs(docker): update examples for running Zebra in Docker (#9269) 2025-02-19 17:44:06 +00:00
docker-compose.lwd.yml docs(docker): update examples for running Zebra in Docker (#9269) 2025-02-19 17:44:06 +00:00
docker-compose.test.yml docs(docker): update examples for running Zebra in Docker (#9269) 2025-02-19 17:44:06 +00:00
docker-compose.yml refactor(docker): Enhance Zebra configuration options and entrypoint logic (#9344) 2025-04-16 12:27:32 +00:00
entrypoint.sh refactor(docker): Enhance Zebra configuration options and entrypoint logic (#9344) 2025-04-16 12:27:32 +00:00
test.env docs(docker): update examples for running Zebra in Docker (#9269) 2025-02-19 17:44:06 +00:00
zcash.conf docs(docker): update examples for running Zebra in Docker (#9269) 2025-02-19 17:44:06 +00:00