Coder Social home page Coder Social logo

pojntfx / alpimager Goto Github PK

View Code? Open in Web Editor NEW
29.0 2.0 2.0 66 KB

Build custom Alpine Linux images with Docker.

Home Page: https://pojntfx.github.io/alpimager/

License: GNU Affero General Public License v3.0

Go 100.00%
alpine linux distro custom-image qemu qcow2 qcow2-image go golang docker

alpimager's Introduction

alpimager

Build custom Alpine Linux images with Docker.

Go CI Go Reference

Introduction video

Overview

This projects builds custom Alpine Linux images with the alpine-make-vm-image utility, but it uses Docker and a simplified interface so that it can run easily on systems other than Alpine Linux that support Docker, such as for example macOS or other Linux distros.

Installation

Binaries are built weekly and uploaded to GitHub releases.

On Linux, you can install them like so:

$ curl -L -o /tmp/alpimager https://github.com/pojntfx/alpimager/releases/download/latest/alpimager.linux-$(uname -m)
$ sudo install /tmp/alpimager /usr/local/bin

On macOS, you can use the following to install:

$ curl -L -o /tmp/alpimager https://github.com/pojntfx/alpimager/releases/download/latest/alpimager.darwin-$(uname -m)
$ sudo install /tmp/alpimager /usr/local/bin

On Windows, the following should work (using PowerShell as administrator):

PS> Invoke-WebRequest https://github.com/pojntfx/alpimager/releases/download/latest/alpimager.windows-x86_64.exe -OutFile \Windows\System32\alpimager.exe

Note that the Windows builds are broken due to a change in how WSL works; it is no longer supported since WSL2, the new Docker backend in Windows, uses a Kernel without nbd support. If you just want a quick Alpine VM on Windows, I recommend using Alpine WSL instead until Microsoft resolve the issue.

Usage

See testdata for example files.

$ alpimager --help
Usage of alpimager:
  -maximumDiskSize string
        Maximum disk size (default "20G")
  -output string
        Output image file (default "alpine.qcow2")
  -packages string
        Package list file (default "packages.txt")
  -repositories string
        Repository list file (default "repositories.txt")
  -script string
        Setup script file (default "setup.sh")
  -verbose
        Enable verbose logging

Troubleshooting

  • If you get an error like ERROR: No available nbd device found!, run sudo modprobe nbd on the Docker host.
  • Running alpimager with -verbose might give you more debugging output.

License

alpimager (c) 2021 Felicitas Pojtinger

SPDX-License-Identifier: AGPL-3.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.