All checks were successful
ci/crow/cron/process-updates-alpine-320-arm64 Pipeline was successful
ci/crow/cron/process-updates-redhat-8-arm64 Pipeline was successful
ci/crow/cron/process-updates-redhat-8-amd64 Pipeline was successful
ci/crow/cron/process-updates-alpine-320-amd64 Pipeline was successful
ci/crow/cron/process-updates-ubuntu-2404-amd64 Pipeline was successful
ci/crow/cron/process-updates-redhat-9-arm64 Pipeline was successful
ci/crow/cron/process-updates-alpine-321-amd64 Pipeline was successful
ci/crow/cron/process-updates-ubuntu-2204-amd64 Pipeline was successful
ci/crow/cron/process-updates-redhat-9-amd64 Pipeline was successful
ci/crow/cron/process-updates-ubuntu-2404-arm64 Pipeline was successful
61 lines
3.6 KiB
Text
61 lines
3.6 KiB
Text
FROM redhat/ubi9 AS jags
|
|
ARG RED_HAT_DEV_PW
|
|
|
|
RUN subscription-manager register --username mail@devxy.io --password "$RED_HAT_DEV_PW" && subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
|
|
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && dnf install -y epel-release
|
|
RUN dnf install -y -q gcc-c++ lapack-devel make git ca-certificates
|
|
|
|
# These usually are not packaged in OS repositories and need to be installed from source
|
|
# - JAGS (needed for runjags which itself is again a dependency of many packages)
|
|
RUN curl -s -L -O https://sourceforge.net/projects/mcmc-jags/files/JAGS/4.x/Source/JAGS-4.3.2.tar.gz && \
|
|
tar -xzf JAGS-4.3.2.tar.gz && cd JAGS-4.3.2 && ./configure --enable-silent-rules && make 2>&1
|
|
|
|
FROM redhat/ubi9 AS final
|
|
|
|
# renovate datasource=docker depName=rocker/r-ver
|
|
ARG R_VERSION=4.4.3
|
|
ARG RED_HAT_DEV_PW
|
|
ENV PATH=/opt/R/${R_VERSION}/bin:$PATH
|
|
ENV TZ="Europe/Berlin"
|
|
ENV R_LIBS_USER=/mnt/cache/R-pkgs
|
|
ENV R_PKG_CACHE_DIR=/mnt/cache/pkgcache
|
|
|
|
ARG ARCH=arm64
|
|
ENV NCPUS=2
|
|
|
|
ARG GITHUB_PAT
|
|
|
|
COPY --link --from=jags /JAGS-4.3.2 /JAGS-4.3.2
|
|
|
|
RUN subscription-manager register --username mail@devxy.io --password "$RED_HAT_DEV_PW" && subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
|
|
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && dnf install -y epel-release
|
|
# xvfb: for graphical pkgs requiring tcl, like gWidgets2tcltk
|
|
# ImageMagick-c++-devel ImageMagick-devel: boths are not auto-installed via pak sysreqs
|
|
# mecab-devel: RcppMeCab -> no autodetection yet
|
|
# libfftw3-dev: ravetools -> actually auto-detect but somehow doesn't work in container?
|
|
RUN dnf install -y -q make lapack-devel git gcc gcc-c++ fontconfig-devel fribidi-devel libjpeg-turbo-devel libtiff-devel postgresql-devel htop libgit2-devel libxml2-devel hiredis ccache cmake xorg-x11-server-Xvfb ImageMagick-c++-devel ImageMagick-devel xz pkg-config mecab-devel fftw-devel tk-devel automake readline-devel
|
|
|
|
### CUSTOM DEPENDENCIES
|
|
# - Chromium should be auto-installed once pkgdepends merges the latest system-requirements rule changes
|
|
RUN dnf install -y chromium
|
|
|
|
### INSTALL R
|
|
RUN curl -O "https://devxy-r-builds.fsn1.your-objectstorage.com/el9/R-${R_VERSION}-1-1.$(arch).rpm"
|
|
RUN dnf install -q -y "R-${R_VERSION}-1-1.$(arch).rpm" && rm "R-${R_VERSION}-1-1.$(arch).rpm"
|
|
RUN R -q -e 'install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/devel/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch))'
|
|
|
|
### Makevars
|
|
# dbarts: CFLAGS += -flax-vector-conversions (https://github.com/vdorie/dbarts/issues/66)
|
|
# can't set ccache for gfortran because of https://gitlab.com/roigrp/solver/highs/-/issues/4
|
|
RUN mkdir -p /root/.R && bash -c 'echo -e "CXX_STD = CXX14\nCFLAGS += -flax-vector-conversions\nCC=ccache gcc\nCPP=gcc -E\nCXXCPP=gcc -e\nCXX=ccache g++\nCXX11=ccache g++\nCXX14=ccache g++\nCXX17=ccache g++\nF77=gfortran\nFC=gfortran" >> /root/.R/Makevars'
|
|
|
|
# R repos
|
|
RUN bash -c 'echo -e "options(crayon.enabled = TRUE, Ncpus = ${NCPUS}, future.globals.onReference = NULL, repos = structure(c(CRAN = \"https://cran.devxy.io/$ARCH/rhel9/latest\", INLA = \"https://inla.r-inla-download.org/R/stable\")))" > /root/.Rprofile'
|
|
RUN bash -c 'echo -e "PKG_SYSREQS = TRUE\nPKG_SYSREQS_VERBOSE = TRUE\nPKG_SYSREQS_PLATFORM=\"redhat-9\"" > /root/.Renviron'
|
|
|
|
# these dirs will later be used by the CI with existing mounts
|
|
RUN mkdir -p /mnt/cache/packages /mnt/cache/pkgcache /mnt/cache/R-pkgs
|
|
|
|
RUN R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraftr.git", dependencies = TRUE)'
|
|
|
|
CMD ["/bin/bash"]
|