Skip to content

Commit 517cf24

Browse files
committed
Add conf via env vars to docker: MAX_BYTES RECORD_POLL_TIMEOUT, DEBUG_LOGS_ENABLED as per gh issue lensesio#74
Signed-off-by: Marios Andreopoulos <opensource@andmarios.com>
1 parent 7325765 commit 517cf24

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

docker/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,9 @@ Caddy server will proxy the traffic to the REST Proxy:
3838
If your REST Proxy uses self-signed SSL certificates, you can use the
3939
`PROXY_SKIP_VERIFY=true` environment variable to instruct the proxy to
4040
not verify the backend TLS certificate.
41+
42+
# Configuration options
43+
44+
You can control most of Kafka Topics UI settings via environment variables:
45+
`MAX_BYTES` (default 50000), `RECORD_POLL_TIMEOUT` (default 2000),
46+
`DEBUG_LOGS_ENABLED` (default true).

docker/run.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/sh
22

33
PROXY_SKIP_VERIFY="${PROXY_SKIP_VERIFY:-false}"
4+
MAX_BYTES="${MAX_BYTES:-50000}"
5+
RECORD_POLL_TIMEOUT="${RECORD_POLL_TIMEOUT:-2000}"
6+
DEBUG_LOGS_ENABLED="${DEBUG_LOGS_ENABLED:-true}"
47
INSECURE_PROXY=""
58

69
if echo "$PROXY_SKIP_VERIFY" | egrep -sq "true|TRUE|y|Y|yes|YES|1"; then
@@ -28,9 +31,9 @@ var clusters = [
2831
{
2932
NAME:"default",
3033
KAFKA_REST: "$KAFKA_REST_PROXY_URL",
31-
MAX_BYTES: "50000",
32-
RECORD_POLL_TIMEOUT: "2000",
33-
DEBUG_LOGS_ENABLED: true
34+
MAX_BYTES: "$MAX_BYTES",
35+
RECORD_POLL_TIMEOUT: "$RECORD_POLL_TIMEOUT",
36+
DEBUG_LOGS_ENABLED: $DEBUG_LOGS_ENABLED
3437
}
3538
]
3639
EOF

0 commit comments

Comments
 (0)