https://github.com/jirutka/sloci-image
Simple script for creating single-layer OCI images.
https://github.com/jirutka/sloci-image
cli-tool containers image-builder oci oci-image shell-script single-layer
Last synced: about 1 month ago
JSON representation
Simple script for creating single-layer OCI images.
- Host: GitHub
- URL: https://github.com/jirutka/sloci-image
- Owner: jirutka
- License: mit
- Created: 2017-11-08T23:37:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-09-11T17:52:00.000Z (over 3 years ago)
- Last Synced: 2025-04-11T00:09:02.549Z (about 1 month ago)
- Topics: cli-tool, containers, image-builder, oci, oci-image, shell-script, single-layer
- Language: Shell
- Homepage:
- Size: 19.5 KB
- Stars: 19
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
= sloci-image
:script-name: sloci-image
:script-sha1: 995e7de37735a8fd82733370f1eba7f311f4ac5d
:version: 0.1.2
:gh-name: jirutka/{script-name}ifdef::env-github[]
image:https://github.com/{gh-name}/workflows/CI/badge.svg["Build Status", link="https://github.com/{gh-name}/actions"]
endif::env-github[]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.footnote:[You read it correctly, no bloated Go c̶r̶a̶p̶s̶ tools are needed.]== 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 link:{script-name}[{script-name} script].
You can add {script-name} as a submodule into your repository or download it on demand, e.g.:
[source, sh, subs="+attributes"]
wget https://raw.githubusercontent.com/{gh-name}/v{version}/{script-name} \
&& echo '{script-sha1} {script-name}' | sha1sum -c \
|| exit 1== License
This project is licensed under http://opensource.org/licenses/MIT/[MIT License].
For the full text of the license, see the link:LICENSE[LICENSE] file.