Coder Social home page Coder Social logo

jamincollins / archlinux-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from czka/archlinux-docker

0.0 2.0 0.0 23 KB

Arch Linux Docker base image build setup using bootstrap tarball.

License: GNU General Public License v3.0

Python 53.56% Dockerfile 39.09% Vim Snippet 7.35%

archlinux-docker's Introduction

About

This is Arch Linux Docker base image build setup that employs the bootstrap tarball distributed by distro authors.

It's meant to provide an easy to use solution for building Arch Linux Docker images on non-Arch Linux hosts (and as an unprivileged user if your Docker instance allows that, but please mind there are good reasons why it shouldn't).

Usage

  • git clone this repository.

  • cd to a directory where you have cloned it.

  • Download an archlinux-bootstrap-date-architecture.tar.gz archive there, preferably the newest one (or expect a longer pacman -Syu run at docker build, and, if your tarball is relatively old, some incompatibilities to manifest; Arch changes fast). From my experience, https://archive.archlinux.org/iso/ is a very fast mirror, but you may want to choose your preferred one on https://www.archlinux.org/download/.

  • Run ./tar_fix.py --input=archlinux-bootstrap-date-architecture.tar.gz --output=bootstrap.tar.gz. This will remove input tarball's top-level directory from all its component paths, and save that in the output tarball. As a result its content starts at / rather than x86_64/ or i686/, and so will the filesystem of the Docker image. tar_fix.py needs Python 3.5. It will fail with Python 2, and even with 3.4, like in issue #1.

  • Make sure you have my Dockerfile, .dockerignore and the bootstrap.tar.gz in one directory.

  • Build the image with a command like docker build --build-arg architecture=x86_64 --tag archlinux-x86_64-base .. Mind the dot! Use --build-arg architecture=i686 if you are building from an i686 bootstrap.tar.gz.

See also

Discussion: https://bbs.archlinux.org/viewtopic.php?pid=1667108#p1667108.

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.