Implement US-16 independent Linux service installation

This commit is contained in:
Steffen committed 2026-10-05 16:12:33 +02:00
1 parent b6342afdad
commit 950f67d8b7
10 files changed
+837

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/env bash
# Deployment metadata only; each application remains independently published and configured.
all_services=(api-gateway patient-profile observation insights health-overview)
select_services() {
local requested="$1" item
selected_services=()
if [[ "$requested" == all ]]; then
selected_services=("${all_services[@]}")
return
fi
IFS=',' read -r -a selected_services <<< "$requested"
[[ ${#selected_services[@]} -gt 0 && "$requested" != *, ]] || fail "Select services by comma-separated name or all."
local -A seen=()
for item in "${selected_services[@]}"; do
case "$item" in api-gateway|patient-profile|observation|insights|health-overview) ;; *) fail "Unknown service: $item" ;; esac
[[ ! ${seen[$item]+exists} ]] || fail "Repeated service: $item"
seen[$item]=1
done
}
assembly_for() {
case "$1" in
api-gateway) printf '%s' ApiGateway;;
patient-profile) printf '%s' PatientProfileService;;
observation) printf '%s' ObservationService;;
insights) printf '%s' InsightsService;;
health-overview) printf '%s' HealthOverviewService;;
esac
}