2017-07-02 18:13:23 +02:00
|
|
|
# This Dockerfile generates the docker image that gets used by Gitlab CI
|
2018-02-04 15:44:26 +01:00
|
|
|
# To build it (YYYYMMDD.HHMM is the current date and time in UTC):
|
2021-11-23 21:56:55 +01:00
|
|
|
# docker build -t registry.gitlab.com/buildroot.org/buildroot/base:YYYYMMDD.HHMM support/docker
|
|
|
|
# docker push registry.gitlab.com/buildroot.org/buildroot/base:YYYYMMDD.HHMM
|
2017-07-02 18:13:23 +02:00
|
|
|
|
2018-02-04 15:44:25 +01:00
|
|
|
# We use a specific tag for the base image *and* the corresponding date
|
|
|
|
# for the repository., so do not forget to update the apt-sources.list
|
|
|
|
# file that is shipped next to this Dockerfile.
|
2023-02-07 17:31:16 +01:00
|
|
|
FROM debian:bullseye-20230202
|
2018-02-04 15:44:25 +01:00
|
|
|
|
2017-07-02 18:13:23 +02:00
|
|
|
LABEL maintainer="Buildroot mailing list <buildroot@buildroot.org>" \
|
|
|
|
vendor="Buildroot" \
|
|
|
|
description="Container with everything needed to run Buildroot"
|
|
|
|
|
|
|
|
# Setup environment
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
2018-02-04 15:44:25 +01:00
|
|
|
# This repository can be a bit slow at times. Don't panic...
|
|
|
|
COPY apt-sources.list /etc/apt/sources.list
|
|
|
|
|
2017-07-02 18:13:23 +02:00
|
|
|
# The container has no package lists, so need to update first
|
2018-02-04 15:44:22 +01:00
|
|
|
RUN dpkg --add-architecture i386 && \
|
2023-02-07 17:31:17 +01:00
|
|
|
apt-get -o APT::Retries=3 update -y
|
|
|
|
RUN apt-get -o APT::Retries=3 install -y --no-install-recommends \
|
2018-06-10 17:44:57 +02:00
|
|
|
bc \
|
|
|
|
build-essential \
|
|
|
|
bzr \
|
|
|
|
ca-certificates \
|
|
|
|
cmake \
|
|
|
|
cpio \
|
|
|
|
cvs \
|
|
|
|
file \
|
|
|
|
g++-multilib \
|
|
|
|
git \
|
|
|
|
libc6:i386 \
|
2018-02-04 15:44:22 +01:00
|
|
|
libncurses5-dev \
|
2018-06-10 17:44:57 +02:00
|
|
|
locales \
|
|
|
|
mercurial \
|
2020-04-15 18:48:43 +02:00
|
|
|
openssh-server \
|
2019-10-27 14:36:53 +01:00
|
|
|
python3 \
|
2020-08-12 16:29:04 +02:00
|
|
|
python3-flake8 \
|
2022-07-31 21:35:13 +02:00
|
|
|
python3-magic \
|
2019-10-27 14:36:53 +01:00
|
|
|
python3-nose2 \
|
|
|
|
python3-pexpect \
|
2022-01-23 17:08:44 +01:00
|
|
|
python3-pytest \
|
2018-06-10 17:44:57 +02:00
|
|
|
qemu-system-arm \
|
|
|
|
qemu-system-x86 \
|
|
|
|
rsync \
|
2021-12-26 19:49:18 +01:00
|
|
|
shellcheck \
|
2018-06-10 17:44:57 +02:00
|
|
|
subversion \
|
|
|
|
unzip \
|
|
|
|
wget \
|
|
|
|
&& \
|
2018-02-04 15:44:23 +01:00
|
|
|
apt-get -y autoremove && \
|
|
|
|
apt-get -y clean
|
2017-07-02 18:13:23 +02:00
|
|
|
|
|
|
|
# To be able to generate a toolchain with locales, enable one UTF-8 locale
|
2018-02-04 15:44:22 +01:00
|
|
|
RUN sed -i 's/# \(en_US.UTF-8\)/\1/' /etc/locale.gen && \
|
|
|
|
/usr/sbin/locale-gen
|
2017-07-02 18:13:23 +02:00
|
|
|
|
2018-02-04 15:44:22 +01:00
|
|
|
RUN useradd -ms /bin/bash br-user && \
|
|
|
|
chown -R br-user:br-user /home/br-user
|
2018-01-06 16:28:33 +01:00
|
|
|
|
|
|
|
USER br-user
|
|
|
|
WORKDIR /home/br-user
|
|
|
|
ENV HOME /home/br-user
|
|
|
|
ENV LC_ALL en_US.UTF-8
|