GithubHelp home page GithubHelp logo

pelepelin / alpine-chroot-install Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alpinelinux/alpine-chroot-install

0.0 0.0 0.0 72 KB

Install Alpine Linux in chroot with a breeze. Build ARM on Travis CI or any other x86_64 CI.

License: MIT License

Shell 93.49% Makefile 6.51%

alpine-chroot-install's Introduction

Install Alpine Linux in chroot on a device

This is a branch of original script intended for quick Alpine setup on a device with low capabilities.

Tested on a router with AsusWRT-Merlin and Entware

Why

Because Alpine is ideal for running containerized services.

Even though chroot is not a container.

Modifications to original script

  • APK_TOOLS_URI and APK_TOOLS_SHA256 defaults are set to aarch64 binary.
  • busybox-suid and musl-utils are removed from base install.
  • ALPINE_PACKAGES are set to empty list.
  • Shebang is modified to use Entware bash (built-in busybox does not provide getopts).

Requirements

Installation script requires following Entware packages to be installed:

  • coreutils-id
  • coreutils-mktemp (optional)
  • bash
  • coreutils-sha256sum

List may appear incomplete.

curl or wget, chroot, sed and other basic commands are provided by AsusWRT-Merlin.

Installation

  • Download raw script.
  • chmod +x alpine-chroot-install
  • ./alpine-chroot-install -h for usage. Default CHROOT_DIR is most likely not where you want to install.
  • ./alpine-chroot-install -d CHROOT_DIR.

Uninstallation

Warning! Don't rm -rf the chrooted directory while it has bind-mounted directories inside. Use the created $CHROOT_DIR/destroy script.

Warning! Run the destroy script using its canonical absolute path, otherwise it can miss mounted directories.

More

Also see the original README.

alpine-chroot-install's People

Contributors

diggen85 avatar douglas-raillard-arm avatar hoshsadiq avatar jirutka avatar marvinroger avatar nrybowski avatar pelepelin avatar sodface avatar

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.