#!/usr/bin/env bash # Allowed / refused access check of the DEV surfaces from a distinct network origin: # a throwaway container on its own Docker bridge reaches the host only through its LAN # address, like another device would (never through loopback). # pnpm dev:net-check # expects the stack, pnpm dev and the gateway running # Exit 1 when an expectation fails. docs/development/ENVIRONMENTS.md ยง3. set -euo pipefail cd "$(dirname "$0")/.." . scripts/dev-env.sh host="$FAUNOSTEO_DEV_HOST" net=faunosteo_net_check image=curlimages/curl:8.11.1 docker network create "$net" >/dev/null 2>&1 || true # shellcheck disable=SC2329 # invoked by the trap cleanup() { docker network rm "$net" >/dev/null 2>&1 || true; } trap cleanup EXIT probe() { # probe