build-unit-test-docker: update to ubuntu-jammy
Jammy was released on April 21st, 2022. Major changes
impacting our Docker container were:
- native support of OpenSSL3.
- python3.10
- liburing2
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I8ae6f1cf85367e3a545973c502bfc47f4b1ba95b
diff --git a/scripts/build-unit-test-docker b/scripts/build-unit-test-docker
index 53609a0..301fc1f 100755
--- a/scripts/build-unit-test-docker
+++ b/scripts/build-unit-test-docker
@@ -76,20 +76,6 @@
# Packages to include in image.
packages = {
- # Install OpenSSL 3.x.
- # Generally we want to rely on the version of OpenSSL from the OS, but v3.x
- # was a major API change. It is included in Yocto but not Ubuntu until
- # 22.04. Install it manually so that our CI can target the OpenSSL 3.x
- # APIs.
- "openssl/openssl": PackageDef(
- rev="openssl-3.0.1",
- build_type="custom",
- build_steps=[
- f"./Configure --prefix={prefix} --libdir=lib",
- f"make -j{proc_count}",
- f"make -j{proc_count} install"
- ],
- ),
"boost": PackageDef(
rev="1.78.0",
url=(
@@ -651,7 +637,7 @@
docker_image_name = os.environ.get("DOCKER_IMAGE_NAME", "openbmc/ubuntu-unit-test")
force_build = os.environ.get("FORCE_DOCKER_BUILD")
is_automated_ci_build = os.environ.get("BUILD_URL", False)
-distro = os.environ.get("DISTRO", "ubuntu:impish")
+distro = os.environ.get("DISTRO", "ubuntu:jammy")
branch = os.environ.get("BRANCH", "master")
ubuntu_mirror = os.environ.get("UBUNTU_MIRROR")
http_proxy = os.environ.get("http_proxy")
@@ -725,7 +711,7 @@
ENV DEBIAN_FRONTEND noninteractive
-ENV PYTHONPATH "/usr/local/lib/python3.9/site-packages/"
+ENV PYTHONPATH "/usr/local/lib/python3.10/site-packages/"
# Sometimes the ubuntu key expires and we need a way to force an execution
# of the apt-get commands for the dbgsym-keyring. When this happens we see
@@ -805,7 +791,7 @@
libldap2-dev \
libprotobuf-dev \
liburing-dev \
- liburing1-dbgsym \
+ liburing2-dbgsym \
libperlio-gzip-perl \
libjson-perl \
protobuf-compiler \