#!/usr/bin/env bash set -Eeuo pipefail root="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)" : "${HOST:=127.0.0.1}" : "${PORT:=8080}" : "${DATA_DIR:=/tmp/websitebench-backcountry-reference-data}" : "${SEED:=0}" : "${TZ:=UTC}" export HOST PORT DATA_DIR SEED TZ # Never compile from here: compile.sh packs the frozen assets and deletes the # originals, and reference capture launches this script from several worker # processes at once. A prebuilt executable (the reference image runs # compile.sh at build time) is used as is; otherwise the adapter runs # straight from source against the unpacked tree. if [ -x "$root/executable" ]; then exec "$root/executable" fi exec python3 "$root/harbor_entry.py"