2018-07-17 21:56:15 +02:00
|
|
|
# This image builds Isar jobs using the kas tool
|
2017-06-28 19:25:58 +02:00
|
|
|
|
2021-01-02 18:50:34 +01:00
|
|
|
ARG KAS_TAG=latest
|
|
|
|
|
|
|
|
FROM ghcr.io/siemens/kas/kas:$KAS_TAG
|
2017-06-28 19:25:58 +02:00
|
|
|
|
2021-01-02 15:48:05 +01:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2017-06-28 19:25:58 +02:00
|
|
|
ENV LC_ALL=en_US.UTF-8
|
2021-11-17 07:25:02 +01:00
|
|
|
RUN apt-get update && \
|
2018-07-17 21:56:15 +02:00
|
|
|
apt-get install -y -f --no-install-recommends \
|
2017-06-28 19:25:58 +02:00
|
|
|
autoconf automake gdisk libtool bash-completion \
|
2021-04-26 17:01:59 +02:00
|
|
|
reprepro python3 binfmt-support e2fsprogs \
|
2021-04-06 07:39:34 +02:00
|
|
|
umoci skopeo \
|
2022-01-28 12:56:00 +01:00
|
|
|
git-buildpackage pristine-tar schroot sbuild debhelper \
|
2021-11-17 07:25:02 +01:00
|
|
|
multistrap qemu-user-static debootstrap quilt && \
|
2017-06-28 19:25:58 +02:00
|
|
|
apt-get clean && \
|
2019-08-29 17:34:12 +02:00
|
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
2017-06-28 19:25:58 +02:00
|
|
|
|
2022-03-08 15:21:01 +01:00
|
|
|
RUN sed -i 's|\tGOSU="gosu builder"|\0\n\tsbuild-adduser builder >/dev/null 2>\&1|' /kas/container-entrypoint
|
2020-11-23 16:00:19 +01:00
|
|
|
RUN sed -i 's|#!/bin/bash|\0\n\nupdate-binfmts --enable \&\& [ -f /proc/sys/fs/binfmt_misc/status ]|' /kas/container-entrypoint
|