mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-12-06 03:14:09 +00:00
Keep the tools inside the UKMesh website and open CoreScope in Live mode. Resolve packet paths when a reader selects a packet. Add reversible DEV UI releases and an opt-in, isolated MQTT archive replay. A new checkout uses its configured MQTT intake.
30 lines
1.4 KiB
Bash
30 lines
1.4 KiB
Bash
# Shared local Compose binding. Public entrypoints clean the environment first.
|
|
repo=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../.." && pwd)
|
|
source "$repo/scripts/full-dev/environment.sh"
|
|
export COMPOSE_PARALLEL_LIMIT=1
|
|
compose=(docker compose --project-name ukmesh-full --env-file /dev/null \
|
|
-f "$repo/docker-compose.yml" -f "$repo/scripts/full-dev/compose.yml")
|
|
compose_build=("${compose[@]}")
|
|
ui_override=$(python3 "$repo/scripts/full-dev/ui/control.py" file main)
|
|
if [[ -n $ui_override ]]; then compose+=(-f "$ui_override"); fi
|
|
|
|
# Bind-mounted files keep their old inode after atomic replacement. Their
|
|
# content revisions make Compose recreate only the affected consumers.
|
|
refresh_wiring_revisions() {
|
|
local name variable revision suffix
|
|
for name in prometheus hopreach nginx.app nginx.website; do
|
|
case "$name" in
|
|
prometheus) variable=FULL_DEV_PROMETHEUS_REVISION; suffix=yml ;;
|
|
hopreach) variable=FULL_DEV_HOPREACH_REVISION; suffix=yaml ;;
|
|
nginx.app) variable=FULL_DEV_APP_PROXY_REVISION; suffix=conf ;;
|
|
nginx.website) variable=FULL_DEV_WEBSITE_PROXY_REVISION; suffix=conf ;;
|
|
esac
|
|
revision=unprepared
|
|
if [[ -f $repo/plans/lean-runtime/runtime/$name.$suffix ]]; then
|
|
read -r revision _ < <(sha256sum "$repo/plans/lean-runtime/runtime/$name.$suffix")
|
|
fi
|
|
export "$variable=$revision"
|
|
done
|
|
}
|
|
refresh_wiring_revisions
|