customized alpine images
Go to file
2017-10-13 15:24:36 +02:00
example Travis: Run script directly on host system w/o alpine-chroot-install 2017-10-11 20:50:40 +02:00
.editorconfig Prepare project 2017-08-29 20:01:51 +02:00
.travis.yml Travis: Remove before_script with "modprobe nbd" 2017-10-11 21:34:49 +02:00
alpine-make-vm-image Fix check of realpath to not print path to console 2017-10-13 15:24:36 +02:00
LICENSE Prepare project 2017-08-29 20:01:51 +02:00
README.adoc Readme: Add tip for alpine-chroot-install 2017-10-11 21:56:03 +02:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

= Make Alpine Linux VM Image
:script-name: alpine-make-vm-image
:script-sha1: 8800a07c8c8102a15726084d8ac2fcde0b4324dc
:gh-name: jirutka/{script-name}
:version: 0.2.0

ifdef::env-github[]
image:https://travis-ci.org/{gh-name}.svg?branch=master["Build Status", link="https://travis-ci.org/{gh-name}"]
endif::env-github[]

This project provides script for making customized https://alpinelinux.org/[Alpine Linux] disk images for virtual machines.
Its quite simple (250 LoC of shell), fast (~40 seconds on Travis CI including Travis VM initialization) and requires minimum dependencies (QEMU and filesystem tools).

TIP: Dont need VM, just wants to chroot into Alpine Linux (e.g. on CI)?
     Try https://github.com/alpinelinux/alpine-chroot-install[alpine-chroot-install]!


== Requirements

* Linux system with common userland (Busybox or GNU coreutils)
* POSIX-sh compatible shell (e.g. Busybox ash, dash, Bash, ZSH)
* qemu-img and qemu-nbd (automatically installed by the script if running on Alpine)
* e2fsprogs (for ext4), btrfs-progs (for Btrfs), or xfsprogs (for XFS) (automatically installed by the script if running on Alpine)


== Usage

Read documentation in link:{script-name}[{script-name}].
See link:.travis.yml[.travis.yml] for Travis example.

You can copy link:{script-name}[{script-name}] 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.