# ch-test-scope: standard FROM almalinux:9 # This image has three purposes: (1) demonstrate we can build a AlmaLinux 8 # image, (2) provide a build environment for Charliecloud EPEL 8 RPMs, and (3) # provide image packages necessary for Obspy and Paraview. # # Quirks: # # 1. Install the dnf ovl plugin to work around RPMDB corruption when # building images with Docker and the OverlayFS storage driver. # # 2. Enable PowerTools repo, because some packages in EPEL depend on it. # # 3. Install packages needed to build el8 rpms. # # 4. Issue #1103: Install libarchive to resolve cmake bug # # 5. AlmaLinux lost their GPG key, so manual intervention is required to # install current packages [1]. # # [1]: https://almalinux.org/blog/2023-12-20-almalinux-8-key-update/ RUN rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux-9 RUN dnf install -y --setopt=install_weak_deps=false \ epel-release \ 'dnf-command(config-manager)' RUN dnf config-manager --enable crb RUN dnf install -y --setopt=install_weak_deps=false \ autoconf \ automake \ gcc \ git \ libarchive \ libpng-devel \ make \ python3 \ python3-devel \ python3-lark-parser \ python3-pip \ python3-requests \ python3-sphinx \ python3-sphinx_rtd_theme \ rpm-build \ rpmlint \ rsync \ squashfs-tools \ squashfuse \ wget \ which \ && dnf clean all # Need wheel to install bundled Lark, and the RPM version doesn’t work. RUN pip3 install wheel # AlmaLinux's linker doesn’t search these paths by default; add them because we # will install stuff later into /usr/local. RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/usrlocal.conf \ && echo "/usr/local/lib64" >> /etc/ld.so.conf.d/usrlocal.conf \ && ldconfig # Install ImageMagick # The latest, 7.1.0, fails to install with a cryptic libtool error. ¯\_(ツ)_/¯ ARG MAGICK_VERSION=7.0.11-14 RUN wget -nv -O ImageMagick-${MAGICK_VERSION}.tar.gz \ "https://github.com/ImageMagick/ImageMagick/archive/refs/tags/${MAGICK_VERSION}.tar.gz" \ && tar xf ImageMagick-${MAGICK_VERSION}.tar.gz \ && cd ImageMagick-${MAGICK_VERSION} \ && ./configure --prefix=/usr/local \ && make -j $(getconf _NPROCESSORS_ONLN) install \ && rm -Rf ../ImageMagick-${MAGICK_VERSION} # Add mount points for files and directories for paraview and obspy comparison # tests. RUN mkdir /diff \ && echo "example bind mount file" > /a.png \ && echo "example bind mount file" > /b.png