Add bash
All checks were successful
Test and build / Test and lint (push) Successful in 1m14s
Test and build / Build collector (push) Successful in 1m32s
Test and build / Build receiver (push) Successful in 1m48s

This commit is contained in:
2026-02-24 15:51:31 +01:00
parent 95eb917871
commit 3106b2cf45
4 changed files with 21 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
FROM alpine:3
RUN apk add --no-cache dumb-init=1.2.5-r3
RUN apk add --no-cache dumb-init=1.2.5-r3 bash=5.3.3-r1
WORKDIR /app

View File

@@ -1,8 +1,20 @@
#!/bin/sh
#!/bin/bash
COLLECTOR_FLAGS=()
COLLECTOR_CONFIG="${COLLECTOR_CONFIG:-/app/config/collector.yaml}"
[ -n "${COLLECTOR_DEBUG}" ] && COLLECTOR_FLAGS=("${COLLECTOR_FLAGS[@]}" "--debug")
[ -n "${COLLECTOR_TRACE}" ] && COLLECTOR_FLAGS=("${COLLECTOR_FLAGS[@]}" "--trace")
run() {
exec "/app/hamview-collector" \
"${COLLECTOR_FLAGS[@]}" \
--config "${COLLECTOR_CONFIG}"
}
case "$@" in
"")
exec "/app/hamview-receiver" --config "/app/config/hamview-collector.yaml" ;;
run
;;
*)
exec "/bin/sh" -c "$@"