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-07-31 12:25:03 +02: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 \
|
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
|
|
|
|
|
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
|