oci2disk

command
v0.0.0-...-d524b77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

quay.io/tinkerbell/actions/oci2disk:latest

This action provides the capability to stream a raw (compressed) disk image from an OCI compliant registry and write this to a block device on a server

To upload a disk image to a compliant OCI registry the ORAS tool is recommended, as this will simplify the process of creating a new "artifact" that can be used by oci2disk.

  • Pushing an OS image to a Harbor Registry with oras *

The below example will push a debian image to a registry:

oras push  192.168.0.173/test/debian:raw.gz --manifest-config /dev/null:application/vnd.acme.rocket.config ./debian.raw.gz --insecure

We can then use this image by referring too it with teh IMG_URL environment variable.

actions:
- name: "stream-debian-image"
    image: quay.io/tinkerbell/actions/oci2disk:latest
    timeout: 600
    environment:
      DEST_DISK: /dev/nvme0n1
      IMG_URL: "192.168.0.173/test/debian:raw.gz"
      COMPRESSED: true

## Compression format supported:

  • bzip2 (.bzip2)
  • gzip (.gz)
  • xz (.xz)
  • xs (.xs)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL