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-02-26 10:17:45 +01: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 \
|
2018-04-18 15:36:38 +02:00
|
|
|
multistrap qemu-user-static debootstrap && \
|
2017-06-28 19:25:58 +02:00
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp*
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2017-09-05 10:58:52 +02:00
|
|
|
RUN sed -i "s|#!/bin/bash|\0\n\nupdate-binfmts --enable|" /kas/docker-entrypoint
|