mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
docs: make it even easier to hack on the console
We add a parameter to disable the healthcheck, making the console available quickly.
This commit is contained in:
@@ -6,6 +6,6 @@
|
||||
COMPOSE_FILE=${COMPOSE_FILE}:docker/docker-compose-tls.yml
|
||||
COMPOSE_PROFILES=demo
|
||||
|
||||
BRANDING=true
|
||||
AKVORADO_CFG_CONSOLE_BRANDING=true
|
||||
TLS_DOMAIN=akvorado.net,www.akvorado.net,demo.akvorado.net
|
||||
TLS_EMAIL=webmaster@akvorado.net
|
||||
|
||||
@@ -51,17 +51,10 @@ can spawn them through `docker compose -f docker/docker-compose-dev.yml`:
|
||||
|
||||
For manual tests, you can use `make docker-dev` to build a Docker container,
|
||||
then use `docker compose --profile demo up` to run Docker Compose. Each time you
|
||||
modify the code, repeat these two steps. Beware not to destroy the volume for
|
||||
GeoIP at each attempt as there is a per-day limit on the number of times one IP
|
||||
can fetch the GeoIP database.
|
||||
|
||||
When using this method, it can take a little bit of time until the console is
|
||||
declared healthy. In the meantime, you get a 404 error. If you want to avoid
|
||||
that, you can the console locally instead:
|
||||
modify the code, repeat these two steps:
|
||||
|
||||
```console
|
||||
$ docker compose stop akvorado-console
|
||||
$ make && AKVORADO_CFG_CONSOLE_CLICKHOUSE_SERVERS=$(docker container inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' akvorado-clickhouse-1):9000 AKVORADO_CFG_CONSOLE_SERVELIVEFS=true ./bin/akvorado console /dev/null
|
||||
$ make docker-dev && CONSOLE_HEALTHCHECK_DISABLED=true docker compose --profile demo up -d
|
||||
```
|
||||
|
||||
If you need to work on the frontend part, you can spawn the Docker compose
|
||||
|
||||
@@ -116,7 +116,9 @@ services:
|
||||
- akvorado-console-db:/run/akvorado
|
||||
environment:
|
||||
AKVORADO_CFG_CONSOLE_DATABASE_DSN: /run/akvorado/console.sqlite
|
||||
AKVORADO_CFG_CONSOLE_BRANDING: ${BRANDING-false}
|
||||
AKVORADO_CFG_CONSOLE_BRANDING: ${AKVORADO_CFG_CONSOLE_BRANDING-false}
|
||||
healthcheck:
|
||||
disable: ${CONSOLE_HEALTHCHECK_DISABLED-false}
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
# Only expose /debug endpoint on the private entrypoint.
|
||||
|
||||
Reference in New Issue
Block a user