2018-07-17 21:56:15 +02:00
|
|
|
# This image builds Yocto jobs using the kas tool
|
2017-06-14 13:36:37 +02:00
|
|
|
|
2021-11-17 07:25:02 +01:00
|
|
|
FROM debian:bullseye-slim
|
2018-07-17 21:56:15 +02:00
|
|
|
|
2021-01-02 19:49:39 +01:00
|
|
|
ARG TARGETPLATFORM
|
2021-01-02 15:48:05 +01:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
2017-06-14 13:36:37 +02:00
|
|
|
|
2021-11-17 07:25:02 +01:00
|
|
|
RUN apt-get update && \
|
2018-07-17 21:56:15 +02:00
|
|
|
apt-get install -y locales && \
|
|
|
|
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
|
|
|
|
ENV LANG=en_US.utf8
|
|
|
|
|
|
|
|
RUN apt-get install --no-install-recommends -y \
|
2021-01-02 19:49:39 +01:00
|
|
|
gawk wget git-core diffstat unzip texinfo \
|
2019-11-17 12:38:59 +01:00
|
|
|
build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
|
|
|
|
xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
|
|
|
|
pylint3 xterm \
|
2021-07-18 16:39:06 +02:00
|
|
|
python3-setuptools python3-wheel python3-yaml python3-distro python3-jsonschema python3-newt \
|
2022-02-01 15:30:23 +01:00
|
|
|
gosu lsb-release file vim less procps tree tar bzip2 zstd pigz bc tmux libncurses-dev \
|
2021-08-17 23:20:51 +02:00
|
|
|
dosfstools mtools parted lz4 \
|
2021-11-17 07:25:02 +01:00
|
|
|
git-lfs mercurial iproute2 ssh-client curl rsync gnupg awscli sudo && \
|
2021-01-02 19:49:39 +01:00
|
|
|
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
|
2021-10-05 23:41:36 +02:00
|
|
|
apt-get install --no-install-recommends -y gcc-multilib g++-multilib syslinux; \
|
2021-01-02 19:49:39 +01:00
|
|
|
fi && \
|
2017-06-20 07:54:03 +02:00
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
|
2017-06-14 13:36:37 +02:00
|
|
|
COPY . /kas
|
2021-10-29 12:51:10 +02:00
|
|
|
RUN chmod -R o-w /kas
|
|
|
|
|
2021-07-18 16:39:06 +02:00
|
|
|
RUN pip3 --proxy=$https_proxy install --no-deps kconfiglib && \
|
|
|
|
pip3 --proxy=$https_proxy install --no-deps /kas && kas --help
|
2017-06-14 13:36:37 +02:00
|
|
|
|
2021-10-29 12:25:25 +02:00
|
|
|
RUN ln -s /kas/contrib/oe-git-proxy /usr/bin/
|
|
|
|
ENV GIT_PROXY_COMMAND="oe-git-proxy" \
|
|
|
|
NO_PROXY="*"
|
|
|
|
|
2021-04-26 17:01:59 +02:00
|
|
|
RUN echo "builder ALL=NOPASSWD: ALL" > /etc/sudoers.d/builder-nopasswd && \
|
|
|
|
chmod 660 /etc/sudoers.d/builder-nopasswd
|
|
|
|
|
|
|
|
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-09-28 09:02:12 +02:00
|
|
|
ENTRYPOINT ["/kas/container-entrypoint"]
|