Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 980 Bytes

File metadata and controls

34 lines (22 loc) · 980 Bytes

oms-cli build image

Build and push Docker image using Dockerfile and Codesphere package version

Synopsis

Build a Docker image from a Dockerfile and push it to a registry, tagged with the Codesphere version from the package.

oms-cli build image [flags]

Examples

# Build image for Codesphere version 1.68.0 and push to specified registry
$ oms-cli build image --dockerfile baseimage/Dockerfile --package codesphere-v1.68.0.tar.gz --registry my-registry.com/my-image

Options

  -d, --dockerfile string   Path to the Dockerfile to build (required)
  -f, --force               Force new unpacking of the package even if already extracted
  -h, --help                help for image
  -p, --package string      Path to the Codesphere package (required)
  -r, --registry string     Registry URL to push to (e.g., my-registry.com/my-image) (required)

SEE ALSO