Skip to content

converts container images deltas to systemd-sysext extensions

License

Notifications You must be signed in to change notification settings

kairos-io/oci2sysext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oci2sysext

oci2sysext builds a systemd-extension from a container image.

Installation

From source

make
# should produce build/oci2sysext

Usage

## Create an image, and add something to it
docker build -t myimage:latest -<<EOF
FROM alpine
RUN apk add curl
EOF

## Save the image
docker save myimage:latest -o myimage.tar

## Create a systemd-extension from the image
## oci2sysext <image-tar-path> <sysext-name>
oci2sysext myimage.tar myimage

## Install the systemd-extension
mv myimage.raw /var/lib/extensions

# or symlinking
# mkdir extensions
# mv myimage.raw extensions/
# sudo ln -s $PWD/extensions /var/lib/extensions/

About

converts container images deltas to systemd-sysext extensions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published