feat: add offline deployment support#198
Merged
NotYuSheng merged 5 commits intomainfrom Apr 14, 2026
Merged
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces comprehensive issue templates, updates the project documentation with new features and tech stack details, and adds support for offline deployments via new Docker Compose configurations and image management scripts. Feedback focuses on improving the robustness of the offline setup, including replacing curl with wget in healthchecks, defaulting LLM endpoints to local providers, pinning Docker image versions for determinism, and reducing redundancy in the image-saving scripts.
- Add 'sub-issue' default label for consistency with other templates - Remove unnecessary backslash escaping from placeholder brackets Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds docker-compose.offline.yml and two helper scripts for deploying TracePcap in air-gapped environments: pull-and-save-images.sh (builds and exports all images as tars) and load-images.sh (loads them on the offline host). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Replace curl with wget --spider in minio healthcheck (more portable on minimal images)
- Default LLM_API_BASE_URL to Ollama local endpoint instead of OpenAI public API
- Pin minio/minio and minio/mc to specific release tags (non-deterministic latest removed)
- Allow VITE_API_BASE_URL to be overridden via .env using ${VAR:-default} pattern
- Loop over DOCKERHUB_IMAGES array to save tars instead of hardcoding image names
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
d8886af to
d909403
Compare
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docker-compose.offline.ymlthat uses pre-built image names instead of build contexts, for air-gapped environmentsscripts/pull-and-save-images.sh— pulls third-party images from Docker Hub, builds backend/nginx locally, and saves all as.tarfiles underimages/scripts/load-images.sh— loads all.tarfiles into Docker on the offline machineUsage
Test plan
pull-and-save-images.shon a machine with internet access and verify all 5.tarfiles are created inimages/load-images.shand confirm all images load without errorsdocker compose -f docker-compose.offline.yml up -dand verify all services come up healthy🤖 Generated with Claude Code