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,7 +1,10 @@
#!/bin/bash
RECEIVER_FLAGS=("--debug")
RECEIVER_CONFIG="${RECEIVER_CONFIG:-/app/config/hamview-receiver-${RECEIVER_PROTOCOL}.yaml}"
RECEIVER_FLAGS=()
RECEIVER_CONFIG="${RECEIVER_CONFIG:-/app/config/receiver-${RECEIVER_PROTOCOL}.yaml}"
[ -n "${RECEIVER_DEBUG}" ] && RECEIVER_FLAGS=("${RECEIVER_FLAGS[@]}" "--debug")
[ -n "${RECEIVER_TRACE}" ] && RECEIVER_FLAGS=("${RECEIVER_FLAGS[@]}" "--trace")
run() {
case "${RECEIVER_PROTOCOL}" in