Emil Velikov 2f43fc413a scripts/make-dockerfile.sh: tweak sha256 sum handling
Drop the spurious cat, we already echo the value the like above so it's
pretty clear what it is in the logs.

While here, rename the file to the what's commonly used by us (see the
ISOs) and others, while removing the misleading "rootfs.tar" - we're
having a tar.zst tarball.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2023-09-25 23:49:58 +01:00
2022-06-17 08:28:46 +03:00
2017-05-26 09:45:16 +02:00
2020-10-19 03:32:25 +02:00
2020-10-19 03:32:25 +02:00
2018-11-11 14:31:59 -05:00
2023-09-25 18:20:34 +00:00

Arch Linux OCI Images

pipeline status

Arch Linux provides OCI-Compliant container images in multiple repositories:

Two versions of the image are provided: base (approx. 150 MiB) and base-devel (approx. 260 MiB), containing the respective meta package. Both are available as tags with latest pointing to base. Additionally, images are tagged with their date and build job number, f.e. base-devel-20201118.0.9436.

While the images are regularly kept up to date it is strongly recommended running pacman -Syu right after starting a container due to the rolling release nature of Arch Linux.

All the images, with the exception of the official DockerHub library image, are signed by using cosign's keyless signing. The images can be verified with one of the following commands:

$ cosign verify docker.io/archlinux/archlinux:latest --certificate-identity-regexp="https://gitlab\.archlinux\.org/archlinux/archlinux-docker//\.gitlab-ci\.yml@refs/tags/v[0-9]+\.0\.[0-9]+" --certificate-oidc-issuer=https://gitlab.archlinux.org
$ cosign verify quay.io/archlinux/archlinux:latest --certificate-identity-regexp="https://gitlab\.archlinux\.org/archlinux/archlinux-docker//\.gitlab-ci\.yml@refs/tags/v[0-9]+\.0\.[0-9]+" --certificate-oidc-issuer=https://gitlab.archlinux.org
$ cosign verify ghcr.io/archlinux/archlinux:latest --certificate-identity-regexp="https://gitlab\.archlinux\.org/archlinux/archlinux-docker//\.gitlab-ci\.yml@refs/tags/v[0-9]+\.0\.[0-9]+" --certificate-oidc-issuer=https://gitlab.archlinux.org

Principles

  • Provide the Arch experience in a Docker image
  • Provide the simplest but complete image to base and base-devel on a regular basis
  • pacman needs to work out of the box
  • All installed packages have to be kept unmodified
 ⚠️⚠️⚠️ NOTE: For Security Reasons, these images strip the pacman lsign key.
 This is because the same key would be spread to all containers of the same
 image, allowing for malicious actors to inject packages (via, for example,
 a man-in-the-middle). In order to create an lsign-key run `pacman-key
 --init` on the first execution, but be careful to not redistribute that
 key.⚠️⚠️⚠️

Building your own image

This repository contains all scripts and files needed to create an OCI image for Arch Linux.

Dependencies

Install the following Arch Linux packages:

  • make
  • devtools (for the pacman.conf files)
  • git (to fetch the commit/revision number)
  • podman
  • fakechroot
  • fakeroot

Make sure your user can directly interact with Podman (i.e. podman info works).

Usage

Run make image-base to build the archlinux:base image with the base meta package installed. You can also run make image-base-devel to build the image archlinux:base-devel which additionally has the base-devel group installed.

Pipeline

Daily releases

Daily images are build with scheduled GitLab CI using our own runner infrastructure. Initially root filesystem archives are constructed and provided in our package registry. The released multi-stage Dockerfile downloads those archives and verifies their integrity before unpacking it into an OCI image layer. Images are built using podman, which also publishes them to our external repositories.

Weekly releases

Weekly releases to the official DockerHub library use the same pipeline as daily builds. Updates are provided as automatic pull requests to the official-images library, whose GitHub pipeline will build the images using our provided rootfs archives and Dockerfiles.

Development

Changes in Git feature branches are built and tested using the pipeline as well. Development images are uploaded to our GitLab Container Registry.

Description
No description provided
Readme GPL-3.0 6.5 MiB
Languages
Shell 80.9%
Makefile 19.1%