Giter Club home page Giter Club logo

archlinuxarm-docker's Introduction

Basic Arch Linux ARM Docker images Build Status

Docker images for Arch Linux ARM on AArch32 (ARMv7-A) and AArch64 (ARMv8-A). Built using native pacman and Docker multi-stage builds. Builds weekly by Travis CI on publicly visible infrastructure using Qemu emulation.

Running the images

The images are on Docker Hub. Use the convenient docker run:

docker run --rm -ti agners/archlinuxarm

Instead of using the multi-arch container above, you can also get the architecture specific image directly:

docker run --rm -ti agners/archlinuxarm-arm32v7

Tags

Tag Update Type Description
latest weekly minimal minimal Arch Linux ARM with pacman support

Layer structure

The image is generated from a freshly built pacman rootfs. Pacman has configured to delete man pages and clean the package cache after installation to keep images small.

Issues and improvements

If you want to contribute, get to the issues-section of this repository.

Common hurdles

Setting the timezone

Simply add the TZ environment-variable and define it with a valid timezone-value.

docker run -e TZ=Europe/Berlin agners/archlinuxarm

Building it yourself

Prerequisites

  • Docker with experimental mode on (required for squash)
  • sudo or root is neccessary to setup binfmt for Qemu user mode emulation

Building

  • Prepare binfmt use with Qemu user mode using sudo ./prepare-qemu
  • Run BUILD_ARCH=<arch> ./build to build
    • Use BUILD_ARCH=arm32v7 for ARMv7 Aarch32
    • Use BUILD_ARCH=arm64v8 for ARMv8 Aarch64

If you want to push the images, run ./push. But be aware you have no push access to the repos! Edit the scripts to push to custom Docker Hub locations!

Building from scratch

Since the image depends on itself, the question which arise is how this all started. The initial containers have been created using the tarballs provided by the Arch Linux ARM project. I used the following steps to bootstrap for each architecture:

sudo tar xvzf ArchLinuxARM-armv7-latest.tar.gz -C tmp-arch
sudo tar cf ArchLinuxARM-armv7-latest.tar -C tmp-arch/ .
docker import ArchLinuxARM-armv7-latest.tar agners/armv7-archlinux:latest

Credits

Ideas have been taken from already existing Docker files for Arch Linux. However, this repository takes a slightly different approach to create images.

archlinuxarm-docker's People

Contributors

agners avatar depau 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.