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
|
|
|
|
2020-09-23 11:36:12 +02:00
|
|
|
FROM ghcr.io/siemens/kas/kas:latest
|
2017-06-28 19:25:58 +02:00
|
|
|
|
|
|
|
ENV LC_ALL=en_US.UTF-8
|
2020-09-23 09:15:16 +02:00
|
|
|
RUN echo 'deb http://deb.debian.org/debian buster-backports main' > /etc/apt/sources.list.d/buster-backports.list && \
|
|
|
|
echo "Package: qemu-user-static\nPin: release n=buster-backports\nPin-Priority: 501\n\nPackage: *\nPin: release n=buster-backports\nPin-Priority: -1" > /etc/apt/preferences.d/qemu-user-static && \
|
|
|
|
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 \
|
2018-02-27 07:57:08 +01:00
|
|
|
sudo grub2 grub-efi-amd64-bin grub-efi-ia32-bin \
|
2018-07-17 21:56:15 +02:00
|
|
|
reprepro python3 binfmt-support e2fsprogs \
|
2019-08-13 18:39:11 +02: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
|
|
|
|
|
|
|
RUN echo "builder ALL=NOPASSWD: ALL" > /etc/sudoers.d/builder-nopasswd && \
|
|
|
|
chmod 660 /etc/sudoers.d/builder-nopasswd
|
2017-09-05 10:58:52 +02:00
|
|
|
|
2017-11-02 14:11:58 +01:00
|
|
|
RUN echo "Defaults env_keep += \"ftp_proxy http_proxy https_proxy no_proxy\"" \
|
|
|
|
> /etc/sudoers.d/env_keep && chmod 660 /etc/sudoers.d/env_keep
|
|
|
|
|
2020-11-14 09:18:09 +01:00
|
|
|
RUN sed -i 's|#!/bin/bash|\0\n\nupdate-binfmts --enable && [ -f /proc/sys/fs/binfmt_misc/status ]|' /kas/container-entrypoint
|