You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cli): add --skip-pull flag to use pre-downloaded images (#493)
* feat(cli): add --skip-pull flag to use pre-downloaded images
Add a new --skip-pull CLI flag that prevents Docker Compose from
pulling images from the registry, allowing users to use pre-downloaded
or cached images locally.
This is useful for:
- Air-gapped environments where registry access is unavailable
- CI systems with pre-warmed image caches
- Local development when images are already cached
When --skip-pull is enabled, Docker Compose runs with --pull never.
If the required images are not available locally, container startup
will fail with a clear error message.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* test: add tests for skipPull parameter in startContainers
Add unit tests to verify:
- --pull never is passed when skipPull is true
- --pull never is not passed when skipPull is false
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: address review comments for --skip-pull flag
- Add validation to reject --skip-pull + --build-local combination
since building images requires pulling base images
- Add security warning when using --skip-pull to inform users about
verifying image authenticity
- Add documentation for --skip-pull in CLI reference:
- Options Summary table entry
- Detailed explanation with usage examples
- Security caution about image verification
- Note about incompatibility with --build-local
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* test: add tests for validateSkipPullWithBuildLocal function
Extract flag validation logic into a testable function and add
comprehensive tests to improve coverage on the new --skip-pull
validation code.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor: use validation function in CLI action handler
Simplify the --skip-pull validation by using the extracted
validateSkipPullWithBuildLocal function instead of inline checks.
This reduces code duplication and improves coverage.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* test: improve test coverage for docker-manager
- Add test for when removing existing containers fails (covers catch block)
- Add tests for allowHostPorts option in generateDockerCompose
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* test: improve coverage for skipPull and related features
- Add test for container removal failure handling in startContainers
- Add tests for allowHostPorts environment variable
- Add tests for GOROOT/CARGO_HOME/JAVA_HOME passthrough in chroot mode
These tests improve overall coverage from 82.15% to 82.37%, exceeding
the baseline of 82.25%.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
When using `--skip-pull`, you are responsible for verifying image authenticity. The firewall cannot verify that locally cached images haven't been tampered with. See [Image Verification](/gh-aw-firewall/docs/image-verification/) for cosign verification instructions.
204
+
:::
205
+
206
+
:::note[Incompatible with --build-local]
207
+
The `--skip-pull` flag cannot be used with `--build-local` since building images requires pulling base images from the registry.
208
+
:::
209
+
184
210
### `-e, --env <KEY=VALUE>`
185
211
186
212
Pass environment variable to container. Can be specified multiple times.
0 commit comments