jfrog-cli icon indicating copy to clipboard operation
jfrog-cli copied to clipboard

Added skeleton code for docker build command

Open fluxxBot opened this issue 3 months ago • 1 comments

  • [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 master branch.
  • [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:

  1. 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:

  1. https://github.com/jfrog/jfrog-cli-artifactory/pull/283

fluxxBot avatar Oct 15 '25 21:10 fluxxBot