blob: 87221b9e799b3573abf565e08eb837a27bc77eae [file] [log] [blame]
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00001# SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com>
2#
3# SPDX-License-Identifier: MIT
4
5FROM ubuntu:20.04
6
7ARG DEBIAN_FRONTEND="noninteractive"
8RUN apt-get update -qq
9RUN 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
14RUN 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
21RUN eatmydata apt-get install -qq -y locales \
22 && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
23 && locale-gen
24ENV LANG en_US.utf8
25
26RUN eatmydata apt-get clean && rm -rf /var/lib/apt/lists/*
27
28# Have bash as shell
29RUN echo "dash dash/sh boolean false" | debconf-set-selections \
30 && dpkg-reconfigure dash
31
32# Run under normal user called 'ci'
33RUN useradd --create-home --uid 1000 --shell /usr/bin/bash ci
34USER ci
35WORKDIR /home/ci
36
37COPY ./yocto-builder/entrypoint-yocto-check-layer.sh /
38COPY ./yocto-builder/entrypoint-build.sh /
39COPY ./utils.sh /