- common.sh: load_config() exports MOSAIC_DATA_ROOT/PROVIDER/MODEL; fails closed - compose.yaml: dataRoot mount and provider/model are required env (:? errors) - build/hello/verify load config before any mutation; no silent bootstrap - reset.sh: target resolved from configured dataRoot; all safety checks kept Verified: compose fails without launcher env; verify/reset fail on missing config; config-driven hello+verify pass; symlink refusal with sandboxed config (canary survived); config checksum unchanged across reset+rerun. Closes #2
20 lines
613 B
Bash
Executable File
20 lines
613 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Run the mosaic-agent service as a one-shot container and print the
|
|
# model response for the exact startup verification request.
|
|
#
|
|
# The request deliberately does NOT contain the expected marker
|
|
# MOSAIC_HELLO_OK. Only the model response is printed to stdout; no
|
|
# credentials or unrelated runtime data are printed.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
# shellcheck source=common.sh
|
|
source scripts/common.sh
|
|
|
|
load_config
|
|
|
|
bootstrap_runtime_dir
|
|
|
|
# -T: no pseudo-TTY, so stdout is clean model output.
|
|
# Errors, if any, go to stderr for diagnostics.
|
|
docker compose run --rm -T mosaic-agent
|