From 153594584cbc68497f31f8240b67821b954b6e82 Mon Sep 17 00:00:00 2001 From: pat-s Date: Sun, 9 Feb 2025 09:27:44 +0100 Subject: [PATCH] pin alpine320 --- docker/Containerfile-alpine-320 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/Containerfile-alpine-320 b/docker/Containerfile-alpine-320 index f7e4f5c..76160ee 100644 --- a/docker/Containerfile-alpine-320 +++ b/docker/Containerfile-alpine-320 @@ -1,13 +1,13 @@ -FROM alpine:3.21 AS jags +FROM alpine:3.20 AS jags RUN apk add -q --no-cache curl tar make lapack lapack-dev blas blas-dev gcc gfortran g++ git cmake tk-dev xz # 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 + tar -xzf JAGS-4.3.2.tar.gz && cd JAGS-4.3.2 && ./configure --enable-silent-rules && make 2>&1 -FROM alpine:3.21 AS final +FROM alpine:3.20 AS final ARG R_VERSION=4.4.2 ENV PATH=/opt/R/${R_VERSION}/bin:$PATH @@ -27,7 +27,7 @@ COPY --link --from=jags /JAGS-4.3.2 /JAGS-4.3.2 # # xvfb: for graphical pkgs requiring tcl, like gWidgets2tcltk RUN apk add -q --no-cache curl tar make lapack lapack-dev blas blas-dev gcc gfortran g++ htop git cmake tk-dev xvfb xvfb-run xorg-server xauth xinit xz libdeflate libdeflate-dev -### CUSTOM DEPENDENCIES +### CUSTOM DEPENDENCIES # 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 -q -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 && make install 2>&1 >/dev/null && rm -rf JAGS-4.3.2.tar.gz JAGS-4.3.2 && cd .. @@ -47,7 +47,7 @@ RUN apk add --no-cache --update --repository=https://dl-cdn.alpinelinux.org/alpi # https://github.com/RcppCore/Rcpp/issues/448#issuecomment-220148774 # LDFLAGS+=-fPIC -> arrow (https://github.com/r-hub/r-minimal/blob/main/examples/arrow/Dockerfile) # dbarts: CFLAGS += -flax-vector-conversions (https://github.com/vdorie/dbarts/issues/66) -# CXXFLAGS: -> Rcpp +# CXXFLAGS: -> Rcpp # -DDMLC_USE_FOPEN64=0 -> xgboost (https://github.com/dmlc/xgboost/issues/8595) # 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\nCXXFLAGS=-D__MUSL__ -DDMLC_USE_FOPEN64=0\nCPPFLAGS=-D__MUSL__ -DDMLC_USE_FOPEN64=0\nCFLAGS += -flax-vector-conversions\nLDFLAGS+=-fPIC\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' @@ -70,4 +70,4 @@ RUN sed -i 's/,//g' /opt/R/${R_VERSION}/lib/R/library/utils/iconvlist RUN R -q -e 'pak::pak("git::https://gitlab.com/devxy/r-package-binaries/bincraftr.git", dependencies = TRUE)' -CMD ["/bin/bash"] \ No newline at end of file +CMD ["/bin/bash"]