forked from tianocore/containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
64 lines (59 loc) · 2.07 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Dockerfile for building container images for use in the EDK2 CI.
#
# Copyright (C) 2022, Red Hat, Inc.
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
# This file contains the definitions for images to be used for different
# jobs in the EDK2 CI pipeline. The set of tools and dependencies is split into
# multiple images to reduce the overall download size by providing images
# tailored to the task of the CI job. Currently there are two images: "build"
# and "test".
# The images are indented to run on x86_64.
# Build Image
# This image is intended for jobs that compile the source code and as a general
# purpose image. It contains the toolchains for all supported architectures, and
# all build dependencies.
FROM registry.fedoraproject.org/fedora-minimal:35 AS build
ENV GCC_VERSION=11.2.1-1.fc35
ENV NASM_VERSION=2.15.05-1.fc35
ENV PYTHON_VERSION=3.9
RUN microdnf \
--assumeyes \
--nodocs \
--setopt=install_weak_deps=0 \
install \
acpica-tools \
gcc-c++-${GCC_VERSION} \
gcc-${GCC_VERSION} \
gcc-aarch64-linux-gnu-${GCC_VERSION} \
gcc-arm-linux-gnu-${GCC_VERSION} \
gcc-riscv64-linux-gnu-${GCC_VERSION} \
git \
libX11-devel \
libXext-devel \
libuuid-devel \
make \
nuget \
nasm-${NASM_VERSION} \
python${PYTHON_VERSION} \
python3-distutils-extra \
python3-pip \
python3-setuptools
RUN alternatives --install /usr/bin/python python /usr/bin/python3 1
RUN pip install pip --upgrade
ENV GCC5_AARCH64_PREFIX /usr/bin/aarch64-linux-gnu-
ENV GCC5_ARM_PREFIX /usr/bin/arm-linux-gnu-
ENV GCC5_RISCV64_PREFIX /usr/bin/riscv64-linux-gnu-
# Test Image
# This image is indented for jobs that run tests (and possibly also build)
# firmware images. It is based on the build image and adds Qemu for the
# architectures under test.
FROM build AS test
RUN microdnf \
--assumeyes \
--nodocs \
--setopt=install_weak_deps=0 \
install \
qemu-system-aarch64-core \
qemu-system-arm-core \
qemu-system-x86-core