oci-sysext

command module
v0.0.0-...-55114bd Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

README

OCI-SYSEXT

This tool aims to be a little bridge to transform an OCI image into a systemd-sysext compatible raw image.

Compile

CGO_ENABLED=0 go build -mod vendor -ldflags="-s -w"

Usage

./oci-sysext pull docker.io/alpine:latest
 ./oci-sysext create --image docker.io/alpine:latest --name my-alpine-raw --fs btrfs --os opensuse-microos
Usage notes
  • Supported --fs are squashfs and btrfs

  • --os flag is the /etc/os-release content of ID=, this is because systemd-sysext needs to know what systemd this will run on

Documentation

Overview

Package main is the main package, nothing much here, just:

  • setup of the environment
  • setup of cobra

Directories

Path Synopsis
Package cmd contains all the cobra commands for the CLI application.
Package cmd contains all the cobra commands for the CLI application.
pkg
fileutils
Package fileutils contains utilities and helpers to manage and manipulate files.
Package fileutils contains utilities and helpers to manage and manipulate files.
imageutils
Package imageutils contains helpers and utilities for managing and pulling images.
Package imageutils contains helpers and utilities for managing and pulling images.
logging
Package logging will handle multi-level logging for the application.
Package logging will handle multi-level logging for the application.
sysextutils
Package sysextutils contains helpers and utilities for managing and creating sysexts.
Package sysextutils contains helpers and utilities for managing and creating sysexts.
utils
Package utils contains generic helpers, utilities and structs.
Package utils contains generic helpers, utilities and structs.

Jump to

Keyboard shortcuts

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