This project provides a simple CLI tool for packing rootfs into a single-layer OCI image (compliant with OCI Image Format 1.0.1). It’s written in POSIX shell and uses only common unix utilities.[1]
-
POSIX-sh compatible shell (e.g. Busybox ash, dash, Bash, ZSH)
-
common Unix userland with
awk,date,gzip,sed,sha256sum(e.g. from Busybox, core-utils, …) -
tar(full-blown)
Read documentation in the sloci-image script.
You can add sloci-image as a submodule into your repository or download it on demand, e.g.:
wget https://raw.githubusercontent.com/jirutka/sloci-image/v0.1.2/sloci-image \
&& echo '995e7de37735a8fd82733370f1eba7f311f4ac5d sloci-image' | sha1sum -c \
|| exit 1This project is licensed under MIT License. For the full text of the license, see the LICENSE file.
1. You read it correctly, no bloated Go c̶r̶a̶p̶s̶ tools are needed.