Fault Injection & Debugging

Running air-gapped offline firmware CI with --network none

Pin your ct binary, board files and local twin catalog inside an air-gapped runner with zero cloud dependency.

Defense, automotive, medical and railway CI environments prohibit outbound internet calls from build runners. Cloud-only HIL farms cannot pass security review in those networks.

CircuitTwin runs as a single self-contained native binary against local filesystem catalogs (CT_CATALOG_DIR), passing cleanly inside docker run --network none.

Offline CI configuration variables

SettingPurposeValue
CT_CATALOG_DIRLocal filesystem twin catalog directory/opt/ct-catalog
--network noneDocker / CLI hard network isolationZero DNS or HTTPS egress
--recheckDeterminism check inside isolated runnerBit-identical double-run

Local CLI workflow

Shell - run inside air-gapped Docker container
docker run --rm --network none \
  -v "$PWD":/work -v /opt/ct-catalog:/catalog:ro \
  -e CT_CATALOG_DIR=/catalog \
  my-org/ct-offline-runner:latest \
  ct test run --json --junit /work/results/offline.xml /work/tests/suite.yaml

Suite & fault configuration

tests/suite.yaml
version: 1
board: nucleo-f767zi
firmware: build/app.elf
tests:
  - name: offline-deterministic-smoke
    timeout_ms: 2500
    expect:
      console_contains: "OFFLINE_PASS"
      exit_code: 0

CI pipeline integration

.gitlab-ci.yml - air-gapped self-hosted runner
offline-firmware-test:
  tags: [air-gapped]
  variables:
    CT_CATALOG_DIR: /opt/ct-catalog
  script:
    - ct test run --json --recheck --junit results/junit.xml tests/suite.yaml

Troubleshooting checklist

SymptomFix
Offline run fails with missing twin bundlePre-populate CT_CATALOG_DIR on a staging box using ct twin generate or ct catalog pull, then rsync the directory into the enclave.

Frequently asked questions

QuestionAnswer
Does ct test run phone home when running against a local catalog?No. When all required board and component twins exist in CT_CATALOG_DIR, ct executes completely locally and passes inside --network none containers.

Related boards & component twins

More in Fault Injection & Debugging