Files
lmxopcua/scripts/validation/grpc-data/compose.source-pinned.yml
T

26 lines
1.5 KiB
YAML

# lmxopcua#921 pinned-origin overlay (opt-in: `rig.py up --source-revision <sha>`). The SOURCE pair runs a Host image built
# from a pinned post-X0, pre-H2 commit (a "v1 origin": no HistoryRead RPC, no `history` feature), exported by the rig into the
# run folder; CONTROL and CONSUMER keep the current checkout's image. The only file the rig adds to the pinned tree is the
# self-contained node-probe wire tap (node-probe/WireTap.cs), enabled here with GRPC_DATA_WIRE_TAP: it records, per request
# on the data listener, the gRPC path and the x-otopcua-data-features header value into the node's restricted probe
# directory (wire-tap.jsonl) — never a credential or a body. Without this file the rig is unchanged.
x-pinned-env: &pinned-env
GRPC_DATA_WIRE_TAP: "1"
services:
source-1:
build:
context: ${GRPC_DATA_SOURCE_PINNED_CONTEXT:?pinned SOURCE export required}
dockerfile: scripts/validation/grpc-data/Dockerfile
target: runtime
labels:
otopcua.grpc-data.run: ${GRPC_DATA_RUN_ID}
com.docker.compose.project: ${GRPC_DATA_PROJECT}
args: {SOURCE_REVISION: "${GRPC_DATA_SOURCE_PINNED_REVISION:?pinned revision required}", SOURCE_TREE_HASH: "${GRPC_DATA_SOURCE_PINNED_TREE_HASH:?pinned tree hash required}"}
image: ${GRPC_DATA_SOURCE_IMAGE:?run-scoped pinned SOURCE image required}
environment: *pinned-env
source-2:
image: ${GRPC_DATA_SOURCE_IMAGE:?run-scoped pinned SOURCE image required}
environment: *pinned-env