[PATCH v8 09/12] EmulatorPkg: CI: Use Fedora 35 container (Linux only)


Ni, Ray
 

Acked-by: Ray Ni <ray.ni@...>

-----Original Message-----
From: Oliver Steffen <osteffen@...>
Sent: Thursday, December 1, 2022 4:01 AM
To: devel@edk2.groups.io
Cc: Andrew Fish <afish@...>; Ard Biesheuvel
<ardb+tianocore@...>; Feng, Bob C <bob.c.feng@...>; Daniel
Schaefer <git@...>; Gerd Hoffmann <kraxel@...>;
Yao, Jiewen <jiewen.yao@...>; Justen, Jordan L
<jordan.l.justen@...>; Leif Lindholm <quic_llindhol@...>;
Gao, Liming <gaoliming@...>; Kinney, Michael D
<michael.d.kinney@...>; Michael Kubacki
<mikuback@...>; Ni, Ray <ray.ni@...>; Sami
Mujawar <sami.mujawar@...>; Sean Brogan
<sean.brogan@...>; Sunil V L <sunilvl@...>;
Chen, Christine <yuwei.chen@...>; Liu, Zhiguang
<zhiguang.liu@...>; Pawel Polawski <ppolawsk@...>; fernald,
chris <chfernal@...>; Oliver Steffen <osteffen@...>
Subject: [PATCH v8 09/12] EmulatorPkg: CI: Use Fedora 35 container (Linux
only)

Run all Linux based jobs in a container, using a custom Fedora 35 image
(gcc 11). The image is hosted on ghcr.io and the Dockerfiles are
here: https://github.com/tianocore/containers
The version numbers of gcc, iasl, and nasm are pinned to avoid
unintended upgrades during image rebuild.

Use Python from the container image, do not download at runtime.

Signed-off-by: Oliver Steffen <osteffen@...>
---
EmulatorPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml | 3 +++
1 file changed, 3 insertions(+)

diff --git a/EmulatorPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
b/EmulatorPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
index 416c15e70840..e58bb5b55245 100644
--- a/EmulatorPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
+++ b/EmulatorPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
@@ -75,6 +75,8 @@ jobs:
pool:
vmImage: $(vm_image)

+ container: 'ghcr.io/tianocore/containers/fedora-35-test:2113a0e'
+
steps:
- template: ../../../.azurepipelines/templates/platform-build-run-
steps.yml
parameters:
@@ -85,3 +87,4 @@ jobs:
build_file: $(Build.File)
build_flags: $(Build.Flags)
run_flags: $(Run.Flags)
+ usePythonVersion: '' # use Python from the container image
--
2.38.1


Oliver Steffen
 

Run all Linux based jobs in a container, using a custom Fedora 35 image
(gcc 11). The image is hosted on ghcr.io and the Dockerfiles are
here: https://github.com/tianocore/containers
The version numbers of gcc, iasl, and nasm are pinned to avoid
unintended upgrades during image rebuild.

Use Python from the container image, do not download at runtime.

Signed-off-by: Oliver Steffen <osteffen@...>
---
EmulatorPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml | 3 +++
1 file changed, 3 insertions(+)

diff --git a/EmulatorPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
b/EmulatorPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
index 416c15e70840..e58bb5b55245 100644
--- a/EmulatorPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
+++ b/EmulatorPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
@@ -75,6 +75,8 @@ jobs:
pool:
vmImage: $(vm_image)

+ container: 'ghcr.io/tianocore/containers/fedora-35-test:2113a0e'
+
steps:
- template: ../../../.azurepipelines/templates/platform-build-run-steps.yml
parameters:
@@ -85,3 +87,4 @@ jobs:
build_file: $(Build.File)
build_flags: $(Build.Flags)
run_flags: $(Run.Flags)
+ usePythonVersion: '' # use Python from the container image
--
2.38.1