Skip to content

Simple script for creating single-layer OCI images.

License

Notifications You must be signed in to change notification settings

jirutka/sloci-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sloci-image

Build Status

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]

Requirements

  • 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)

Usage

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 1

License

This 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.