Tool Image Lifecycle and TES Integration
This guide links the source-backed task path rather than copying the tool inventory. Evidence is CURRENT_SOURCE and OWNING_REPOSITORY_DOCUMENTATION, inspected statically. No image build, registry write, SIF conversion or tool execution was performed. See Tool Images owner README and the existing container release contract.
Define and build on an isolated build host
- Define
dockerfiles/Dockerfile.<tool>in Tool Images. Select a licensed upstream, explicit scientific version, base identity and architecture. Review upstream redistribution/manual-download requirements before entering a release pipeline. A Dockerfile or catalog row is a definition, not a working tool. - Choose the implementation path deliberately. The legacy
build_all.sh
builds a local image and converts it using
singularity pullinto a tool-named ARM64-suffixed SIF. It does not pass an explicit--platformto Docker or run architecture/scientific validation gates; an ARM64 name is not validation evidence. Run it only on an approved isolated host with Docker, Singularity, sufficient storage and inspected tool inputs. Conversion uses--force; preserve approved artifacts separately rather than treating a mutable local output as release identity. - The separate
multiarch builder
targets a selected tool set and uses
--push; it changes remote registry state when executed and is not a read-only validator. It is not a guarantee that every Dockerfile builds on both architectures. The validation-only pilot rejects publication and uses a bounded manifest/native validation path. The separate immutable release workflow and release tooling own release decisions; the release tool defaults to a read-only dry run. Workflow existence is not successful execution or publication evidence. - Validate architecture-specific OCI and SIF separately: matching native runner, image config and executable/interpreter architecture, version output and a meaningful scientific fixture. Use validation contracts and the existing central release guide for gate details. GPU execution needs separately verified allocation/runtime, not CUDA libraries alone.
- Record OCI immutable identity, SIF SHA256, scientific version, Dockerfile/base identity, source revision and validation results. SIF is architecture-specific; do not reuse one SIF as evidence for both amd64 and arm64.
The API image described by the Dockerfile contains API/frontend, not the host build toolchain/scripts. Its build endpoints are not the supported build path. Compose mounts definitions, SIFs and logs for inspection. The owner README's dated local build totals are historical host evidence, not present deployment availability.
Distribute and connect to TES
- Approve licensing and destination authorization. Owner host-side distribution scripts target GHCR, Hugging Face, S3 and Azure; some can install tooling or create storage. Inspect them before execution. This campaign did not invoke them. Existing remote files and skip-on-existing behavior do not establish digest correctness; use immutable release/retrieval verification where applicable.
- Retrieve the architecture-specific artifact in the intended execution environment, verify identity/integrity and confirm the scheduler/runtime can read it. Check read access/mount translation in Platform Support and operator guidance. Host paths in existing TES configs are installation-specific, not portable defaults.
- Add/update the declarative tool entry in TES
configs/tools/<domain>.yamlwith tool ID, input/output schema, command, resources and backend image metadata. Inspect the current example schema and Slurm adapter instead of inventing metadata fields.slurm.image,docker_image,hf_imageserve different paths; none proves the actual selected artifact is available. - Reconcile configuration loading and service recreation with the TES owner. TES startup loads and registers declarative tools and attempts server registration/handshake. The owner's short “restart — done” instruction is insufficient acceptance evidence. Use the Tool Explorer catalog for discovery, then validate actual TES server/tool availability through its supported API contract. A central static explorer is not a live authenticated availability check.
- In an approved isolated runtime, execute a representative tool with fixture data and confirm accepted inputs, successful completion and expected outputs. Apply operator guidance for protected HTTP ToolServer execution; local/Slurm availability has separate scheduler and SIF prerequisites.
| State | What it establishes |
|---|---|
| Cataloged/source-defined | Metadata or Dockerfile exists |
| Image built | Build completed; architecture/science still need validation |
| Architecture validated | Specific artifact/runner passed the architecture contract |
| Published | Destination write and immutable retrieval evidence; not inferred from script presence |
| SIF available | Correct artifact readable in the target environment |
| TES-discoverable | Intended tool/server appears in the actual configured service |
| Executable | Backend/runtime prerequisites and authorized invocation available |
| Runtime verified | Representative job completed with expected outputs |
Licensed/manual-download tools can remain source-defined while blocked from build or distribution. An owner must approve rights and inputs; documentation cannot supply missing licenses or declare executable availability from a catalog count.