- RELEASE file: single source of release version (0.0.X until declared stable) - common.sh load_release(): validates version, derives MOSAIC_IMAGE_TAG=mosaic-poc-agent:<pi>-r<release> from the pinned pi dep - compose.yaml: image tag is required env; build/hello/verify call load_release - verify.sh derives the image name instead of hardcoding it - package.json version aligned to the same 0.0.X line Closes #10
24 lines
853 B
Bash
Executable File
24 lines
853 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
|
|
load_release
|
|
|
|
bootstrap_runtime_dir
|
|
|
|
# -T: no pseudo-TTY, so stdout is clean model output.
|
|
# </dev/null: detach stdin. Pi's print mode reads piped stdin until EOF;
|
|
# an interactive terminal would otherwise block it forever. The request
|
|
# text comes from the compose command, not stdin, so nothing is lost.
|
|
# Errors, if any, go to stderr for diagnostics.
|
|
docker compose run --rm -T mosaic-agent < /dev/null
|