manibuilder: Add official AlmaLinux images
The dockerfile is a mix from the CentOS and the Fedora one. For Meson,
we require an additional repository, `powertools` in AlmaLinux 8 and
`crb` in AlmaLinux 9. As `ccache` is missing, we have to override $(CC).
Change-Id: I33c62a5cc9bf05c626179acb35250a8a3293f8c1
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/73473
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/util/manibuilder/Dockerfile.almalinux b/util/manibuilder/Dockerfile.almalinux
new file mode 100644
index 0000000..5904f45
--- /dev/null
+++ b/util/manibuilder/Dockerfile.almalinux
@@ -0,0 +1,29 @@
+FROM manibase
+
+RUN \
+ useradd -p locked -m mani && \
+ if dnf repolist powertools | grep -q powertools; then \
+ powertools=powertools; \
+ else \
+ powertools=crb; \
+ fi && \
+ dnf install -y --enablerepo=${powertools} \
+ ca-certificates shadow-utils \
+ git gcc make systemd-devel meson \
+ pciutils-devel libusbx-devel && \
+ { dnf install -y libgpiod-devel || true; } && \
+ dnf clean -y all
+
+RUN mkdir -p -m 1777 /ccache
+
+ENV GIT_SSL_NO_VERIFY=1
+USER mani
+
+ARG ORIGIN=https://review.coreboot.org/flashrom-stable.git
+RUN \
+ cd && \
+ git clone ${ORIGIN} flashrom
+
+ENV DEVSHELL /bin/bash
+COPY mani-wrapper.sh /home/mani/
+ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"]