jfrog-cli
jfrog-cli copied to clipboard
Added skeleton code for docker build command
- [x] All tests have passed. If this feature is not already covered by the tests, new tests have been added.
- [x] The pull request is targeting the
masterbranch. - [x] The code has been validated to compile successfully by running
go vet ./.... - [x] The code has been formatted properly using
go fmt ./....
This PR aims to add a skeleton code for docker build command.
Implements jf docker build and jf docker buildx build commands using the Strategy pattern to support different execution modes based on the JFROG_RUN_NATIVE environment variable.
changes:
- New Strategy Pattern Implementation: Three strategies for Docker build execution: -> RunNativeStrategy: Direct Docker build execution (JFROG_RUN_NATIVE=true) -> BuildXStrategy: Docker buildx support (JFROG_RUN_NATIVE=true + buildx command) -> LegacyStrategy: Traditional JFrog approach (default)
depends on:
- https://github.com/jfrog/jfrog-cli-artifactory/pull/283
