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
|
|
|
|
2018-07-17 21:56:15 +02:00
|
|
|
FROM kasproject/kas:latest
|
2017-06-28 19:25:58 +02:00
|
|
|
|
|
|
|
ENV LC_ALL=en_US.UTF-8
|
2019-09-11 12:29:07 +02:00
|
|
|
RUN echo 'deb http://deb.debian.org/debian buster main' > /etc/apt/sources.list.d/buster.list && \
|
|
|
|
echo "Package: qemu-user-static binfmt-support\nPin: release n=buster\nPin-Priority: 501\n\nPackage: *\nPin: release n=buster\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
|
|
|
|
|
2019-03-19 15:25:02 +01:00
|
|
|
RUN sed -i 's|#!/bin/bash|\0\n\ndpkg-reconfigure qemu-user-static 2>\&1 \| grep -v "already enabled in kernel"|' /kas/docker-entrypoint
|