docker-archlinux/README.md

42 lines
2.0 KiB
Markdown
Raw Permalink Normal View History

2020-06-02 16:28:02 +02:00
# docker-archlinux
[![Build Status](https://drone.dotya.ml/api/badges/wanderer/docker-archlinux/status.svg)](https://drone.dotya.ml/wanderer/docker-archlinux)
2021-05-05 02:54:27 +02:00
[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/immawanderer/archlinux)](https://hub.docker.com/r/immawanderer/archlinux/tags/?page=1&ordering=last_updated)
[![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/immawanderer/archlinux/linux-amd64)](https://hub.docker.com/r/immawanderer/archlinux/tags/?page=1&ordering=last_updated&name=linux-amd64)
[![Docker Image Size (tag)](https://img.shields.io/docker/image-size/immawanderer/archlinux/linux-amd64)](https://hub.docker.com/r/immawanderer/archlinux/tags/?page=1&ordering=last_updated&name=linux-amd64)
[![Docker pulls](https://img.shields.io/docker/pulls/immawanderer/archlinux)](https://hub.docker.com/r/immawanderer/archlinux/)
2023-10-18 13:57:14 +02:00
This repository provides a Dockerfile to create an *updated* Arch Linux base(-devel) image.
[skip ci] dockerhub issue: link to the write-up Alright, let me tell you what this is all about. 🐋 Docker builds (locally and also in DockerHub) started failing after glibc 3.34 has been updated during jan-feb 2021 and thas caught me on both fedora 33 and archlinux workstation/server boxes (talking OS, not containers now). A hotfix patch has been issued as a workaround to remedy failing builds - https://git.dotya.ml/wanderer/docker-archlinux/commit/bd4c5abe4dca475965548cb8332ef9b9d2a4953c. Recently, I have started building [`moby`](https://github.com/moby/moby) from sources myself (moby is `docker-{c,e}e`'s upstream that's directly being shipped on fedora instad of the "docker-\*" product) and installed it on my fedora 33 box, while archlinux gradually updated to a fairly recent docker (`Docker version 20.10.5, build 363e9a88a1` as of writing). Latest `moby` commit on which I was able to run `docker build` for this image on fedora 33 was [`dbc3365da2`](https://github.com/moby/moby/commit/dbc3365da22ce76367ccaad79248c9a98332d80d). For these reasons I decided to revert the hotfix just today in [`dbeddd89be`](https://git.dotya.ml/wanderer/docker-archlinux/commit/dbeddd89be6bdb04c7e859a30e9e80d7e7175cba), after which DockerHub builds started to fail again. That is because Dockerhub build servers are probably not running a latest master `moby`/`docker` and as such don't have the necessary fixes required to build images that run glibc >=3.34 (see the original hotfix commit message for more reasoning and references). That basically means that until they (the DockerHub) run a reasonably recent docker/moby, we're going to see just more of `dockerhub build: failing` and anyone expecting these images to work will either have to update in a similar fashion to what I've done or wait until the patched versions reach whatever distro you're using. Unless that distro happens to be Arch, cause then you're ok anyway :D 🐳
2021-03-08 23:00:43 +01:00
The image is rebuilt nightly to ensure it always has the latest packages.
2020-06-02 16:28:02 +02:00
push mirror lives in [this GitHub repo](https://github.com/wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf/docker-archlinux)
development happens on [this Gitea instance](https://git.dotya.ml/wanderer/docker-archlinux)
2020-06-02 16:28:02 +02:00
## What you get
* updated Arch Linux [base image](https://hub.docker.com/_/archlinux)
That's just it. This makes it possible to just grab the image and install whatever it is you want on top later.
## Purpose
* Arch Linux image with freshly updated package base to build upon
## Running the image
* edit the `yourlocalpath` and `containerpath` variables or remove them entirely (along with `-v`) if you have *nothing to mount*
2020-06-02 16:28:02 +02:00
```bash
docker run -it -v yourlocalpath:containerpath immawanderer/archlinux:latest
```
## Building the image locally
* create a new folder
* grab the Dockerfile and place it in that folder
* build the image locally
```bash
mkdir -pv mynewfolder
cd ./mynewfolder
wget https://git.dotya.ml/wanderer/docker-archlinux/raw/branch/master/Dockerfile
2020-06-02 16:28:02 +02:00
docker build --pull - < Dockerfile
```