docker-base-images icon indicating copy to clipboard operation
docker-base-images copied to clipboard

Build missing base images

Open mtelvers opened this issue 1 year ago • 1 comments

Ubuntu supports RISCV. However, they do not always create a Docker base image. This is notable in #258 and #275 where 23.10 and 24.04 are both missing the RISCV image. 22.04 initially had a RISCV base image, but it was dropped in mid-2022.

Creating a base image is relatively simple as a specific tool is available: debootstrap.

Thus, a Dockerfile such as presented below would build the missing Docker base images.

FROM ubuntu:jammy-20220801 AS base
WORKDIR /base
RUN apt update && apt install -y debootstrap
RUN ln -s gutsy /usr/share/debootstrap/scripts/noble
# 24.04 noble
# 23.10 mantic
# 22.04 jammy
# 20.04 focal
RUN debootstrap noble /base

FROM scratch
COPY --from=base /base /
CMD /bin/bash

Build with docker build -t ubuntu:noble .

mtelvers avatar May 02 '24 08:05 mtelvers

A suitable PR to achieve this is https://github.com/mtelvers/docker-base-images/pull/1

mtelvers avatar May 02 '24 08:05 mtelvers

Mark reports that there seems to be an issue with the Ubuntu distro version of tar. Getting permission errors.

shonfeder avatar May 20 '24 11:05 shonfeder

iiuc, this is a related problem following from the permissioning changes; https://github.com/ocaml/opam/issues/5968

shonfeder avatar May 22 '24 16:05 shonfeder

Merged in https://github.com/ocurrent/docker-base-images/pull/282

mtelvers avatar Jul 01 '24 08:07 mtelvers