Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com> |
| 2 | # |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | |
| 5 | FROM ubuntu:20.04 |
| 6 | |
| 7 | ARG DEBIAN_FRONTEND="noninteractive" |
| 8 | RUN apt-get update -qq |
| 9 | RUN apt-get install -y eatmydata |
| 10 | |
| 11 | # Yocto/OE build host dependencies |
| 12 | # Keep this in sync with |
| 13 | # https://git.yoctoproject.org/poky/tree/documentation/poky.yaml |
| 14 | RUN eatmydata apt-get install -qq -y \ |
| 15 | gawk wget git diffstat unzip texinfo gcc build-essential chrpath \ |
| 16 | socat cpio python3 python3-pip python3-pexpect xz-utils debianutils \ |
| 17 | iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \ |
| 18 | pylint3 xterm python3-subunit mesa-common-dev zstd liblz4-tool |
| 19 | |
| 20 | # en_US.UTF-8 is required by the build system |
| 21 | RUN eatmydata apt-get install -qq -y locales \ |
| 22 | && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \ |
| 23 | && locale-gen |
| 24 | ENV LANG en_US.utf8 |
| 25 | |
| 26 | RUN eatmydata apt-get clean && rm -rf /var/lib/apt/lists/* |
| 27 | |
| 28 | # Have bash as shell |
| 29 | RUN echo "dash dash/sh boolean false" | debconf-set-selections \ |
| 30 | && dpkg-reconfigure dash |
| 31 | |
| 32 | # Run under normal user called 'ci' |
| 33 | RUN useradd --create-home --uid 1000 --shell /usr/bin/bash ci |
| 34 | USER ci |
| 35 | WORKDIR /home/ci |
| 36 | |
| 37 | COPY ./yocto-builder/entrypoint-yocto-check-layer.sh / |
| 38 | COPY ./yocto-builder/entrypoint-build.sh / |
| 39 | COPY ./utils.sh / |