Deployment
Compose, Kubernetes, K3s or OpenShift
Start on one machine with Docker Compose, which runs TestLookup and the services it needs together. Or deploy to Kubernetes, with ready-made settings for standard clusters, managed cloud services, OpenShift (Red Hat's Kubernetes) and K3s (a lightweight Kubernetes). Sites with no internet build an offline bundle on a connected machine, check it after copying it across, and load it into a local image registry.
- K3s runs on one machine or more, and an optional script can set it up over SSH
- An offline model pack, with checksums, holds the local AI model and the model that finds similar failures
- MongoDB isn't in the bundle, so copy its image into your own registry
- New images are published for every commit (saved change) on the main branch, so choose one by its commit ID
# On a connected host, in a clone of the repository
make offline-bundle # writes dist/testlookup-offline-0.1.0.tar.gz and its .sha256
# On the offline site, after copying both files across
sha256sum -c testlookup-offline-0.1.0.tar.gz.sha256
tar xzf testlookup-offline-0.1.0.tar.gz
cd testlookup-offline-0.1.0
./import-bundle.sh --verify-only # checks every file in the bundleIf any checksum doesn't match, the import stops.
