From 51911144eb62a276017ca0fa03592be1551c7ae8 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 26 Mar 2026 13:53:04 +0100 Subject: image: add additional labels --- Containerfile | 6 ++++++ Makefile | 1 + 2 files changed, 7 insertions(+) diff --git a/Containerfile b/Containerfile index c761c26..7a12114 100644 --- a/Containerfile +++ b/Containerfile @@ -1,5 +1,7 @@ FROM ubuntu:questing AS builder +ARG IMAGE_BUILD + ARG BINUTILS_VERSION ARG GCC_VERSION ARG GDB_VERSION @@ -32,6 +34,10 @@ FROM ubuntu:questing LABEL org.opencontainers.image.title="TeachOS Toolchain" LABEL org.opencontainers.image.description="A semi-statically linked cross-compiler toolchain for TeachOS development." +LABEL org.opencontainers.iamge.source="https://gitlab.ost.ch/teachos/devcontainers" +LABEL org.opencontainers.image.version="$GCC_VERSION" +LABEL org.opencontainers.iamge.revision="$IMAGE_BUILD" +LABEL org.opencontainers.image.base.name="docker.io/ubuntu:questing" RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ diff --git a/Makefile b/Makefile index 448461a..9c8985e 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,7 @@ container_image: Containerfile podman pull docker.io/ubuntu:questing podman build \ --volume $(mkfile_dir)downloads:/downloads \ + --build-arg IMAGE_BUILD=$(IMAGE_BUILD) \ --build-arg BINUTILS_VERSION=$(BINUTILS_VERSION) \ --build-arg GCC_VERSION=$(GCC_VERSION) \ --build-arg GDB_VERSION=$(GDB_VERSION) \ -- cgit v1.2.3