feat(cli): add preload command and --no-pull flag#196
Closed
Conversation
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add logging feature for firewall activities
feat(cli): add preload command to pre-download container images
Jan 9, 2026
Collaborator
|
@copilot how about improve the existing commands to add a flag to not pull a container image but use the one from local (pre downloaded) |
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Contributor
Author
Added # Pre-download images
awf preload
# Use pre-downloaded images without pulling
awf --allow-domains github.com --no-pull -- curl https://api.github.comWhen |
Copilot
AI
changed the title
feat(cli): add preload command to pre-download container images
feat(cli): add preload command and --no-pull flag
Jan 10, 2026
Test Coverage Report
Coverage ThresholdsThe project has the following coverage thresholds configured:
Coverage report generated by `npm run test:coverage` |
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.
Adds a
preloadsubcommand to pre-download container images and a--no-pullflag to use locally cached images, ensuring faster startup when runningawfcommands.Changes
src/commands/preload.ts: Command handler that pullssquidandagentimages sequentially (sequential to avoid interleaved output)src/cli.ts: Registerspreloadsubcommand with--image-registryand--image-tagoptions, and adds--no-pullflag to main commandsrc/types.ts: AddsskipPulloption toWrapperConfigsrc/docker-manager.ts: UpdatesstartContainersto pass--pull neverwhenskipPullis truesrc/cli-workflow.ts: Updates interface and workflow to passskipPullparametersrc/commands/preload.test.ts: Unit tests covering success, error handling, and custom registry/tagsrc/docker-manager.test.ts: Unit tests for--pull neverbehaviorUsage
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.