Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

cargoship import

Converts an OCI Image Layout archive into a native Cargoship package

Synopsis

Converts an OCI Image Layout archive (such as one written by skopeo copy … oci-archive:) or an OCI layout directory into a native Cargoship package archive, extracting all package layers and verifying package integrity.

cargoship import [ARCHIVE] [flags]

Examples

# Import a Skopeo oci-archive into the current directory
$ cargoship import ./my-package.tar

# Import an oci-archive into a specific output directory
$ cargoship import ./my-package.tar --output ./build/

# Import an extracted OCI directory layout
$ cargoship import ./oci-layout-dir -o ./build/

Options

  -a, --architecture string   Architecture for OCI images and Zarf packages
  -h, --help                  help for import
  -k, --key string            Path to public key file for validating signed packages
  -o, --output string         Specify the output (either a directory or an oci:// URL) for the created Cargoship distro package. (default ".")
      --tmpdir string         Specify the temporary directory to use for intermediate files (default "/tmp")
      --verify verifyMode     Verify the Cargoship package signature. (default if-possible)
      --zarf-cache string     Specify the location of the Zarf cache directory (default "$HOME/.cache/cargoship")

Options inherited from parent commands

      --log-file            Always write a full-verbosity debug log to a file, regardless of --log-level.
  -L, --log-format string   Select a logging format. Defaults to 'console'. Valid options are: 'console', 'json', 'dev'. (default "console")
  -l, --log-level string    Log level when running cargoship. Valid options are: warn, info, debug, trace (default "info")
      --no-color            Disable terminal color codes in logging and stdout prints.

SEE ALSO