fix image names, quote argument
This commit is contained in:
parent
c9fd2b5c03
commit
a5b9515b6c
6 changed files with 22 additions and 3 deletions
|
|
@ -42,7 +42,7 @@ steps:
|
|||
# more complicated system dependencies which pak cannot resolve
|
||||
- mkdir -p /mnt/cache/pkgcache /mnt/cache/R-pkgs /mnt/cache/ccache /mnt/cache/packages
|
||||
# set additional repos: important as otherwise some packages cannot be resolved (e.g. INLA). Also: setting our own binary repos so we can make use of them for dep installation at some point
|
||||
- R -q -e 'options(crayon.enabled = TRUE, Ncpus = 6, future.globals.onReference = "error", repos = structure(c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/stable"))); pkgs = tools::CRAN_package_db()[[1]][${BLOCK}]; library(rBinaries); future::plan("multisession", workers = 6, rscript_startup = quote(options(crayon.enabled = TRUE))); foo = lapply(pkgs, function(x) build_binary_package(x, build_for_minor=FALSE, debug = FALSE, force = TRUE, platform = ${PLATFORM}))'
|
||||
- R -q -e 'options(crayon.enabled = TRUE, Ncpus = 6, future.globals.onReference = "error", repos = structure(c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/stable"))); pkgs = tools::CRAN_package_db()[[1]][${BLOCK}]; library(rBinaries); future::plan("multisession", workers = 6, rscript_startup = quote(options(crayon.enabled = TRUE))); foo = lapply(pkgs, function(x) build_binary_package(x, build_for_minor=FALSE, debug = FALSE, force = TRUE, platform = "${PLATFORM}"))'
|
||||
backend_options:
|
||||
kubernetes:
|
||||
### PROD
|
||||
|
|
|
|||
2
Justfile
2
Justfile
|
|
@ -1,5 +1,5 @@
|
|||
image OS:
|
||||
if echo "{{OS}}" | grep -qi "rhel"; then \
|
||||
if echo "{{OS}}" | grep -qi "redhat"; then \
|
||||
docker buildx build --build-arg RED_HAT_DEV_PW='ujF@4A^yn$6utRhb&UooGH#w' -f docker/Dockerfile-{{OS}} -t pats22/arm-binaries-r-{{OS}}:latest --push .; \
|
||||
else \
|
||||
docker buildx build -f docker/Dockerfile-{{OS}} -t pats22/arm-binaries-r-{{OS}}:latest --push .; \
|
||||
|
|
|
|||
21
docker/Dockerfile-redhat-8
Normal file
21
docker/Dockerfile-redhat-8
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
FROM redhat/ubi8:8.10-1020
|
||||
|
||||
ARG RED_HAT_DEV_PW
|
||||
ENV PATH=/opt/R/4.4.1/bin:$PATH
|
||||
ENV TZ="Europe/Berlin"
|
||||
|
||||
RUN subscription-manager register --username mail@devxy.io --password "$RED_HAT_DEV_PW" && subscription-manager repos --enable codeready-builder-for-rhel-8-aarch64-rpms
|
||||
### install JAGS (needed for runjags which itself is again a dependency of many packages)
|
||||
RUN dnf install -y -q make lapack-devel git gcc gcc-c++ fontconfig-devel fribidi-devel libjpeg-turbo-devel libtiff-devel postgresql-devel
|
||||
RUN curl -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 && make && make install && rm -rf JAGS-4.3.2.tar.gz JAGS-4.3.2 && cd ..
|
||||
RUN dnf install -y -q https://dl.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/h/hiredis-0.13.3-13.el8.aarch64.rpm && dnf install -y -q https://dl.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/c/ccache-3.7.7-1.el8.aarch64.rpm
|
||||
RUN curl -O https://f003.backblazeb2.com/file/devxy-r-builds/el8/R-4.4.1-1-1.aarch64.rpm
|
||||
RUN dnf install -q -y R-4.4.1-1-1.aarch64.rpm
|
||||
RUN R -q -e 'install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch))'
|
||||
|
||||
COPY . .
|
||||
RUN R -q -e 'Sys.setenv(PKG_SYSREQS = TRUE, PKG_SYSREQS_VERBOSE = TRUE, PKG_SYSREQS_PLATFORM = "redhat-8"); pak::pak()'
|
||||
RUN R CMD INSTALL .
|
||||
RUN rm -rf arm-binaries-r
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
21
docker/Dockerfile-redhat-9
Normal file
21
docker/Dockerfile-redhat-9
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
FROM redhat/ubi9:9.4-1181
|
||||
|
||||
ARG RED_HAT_DEV_PW
|
||||
ENV PATH=/opt/R/4.4.1/bin:$PATH
|
||||
ENV TZ="Europe/Berlin"
|
||||
|
||||
RUN subscription-manager register --username mail@devxy.io --password "$RED_HAT_DEV_PW" && subscription-manager repos --enable codeready-builder-for-rhel-9-aarch64-rpms
|
||||
### install JAGS (needed for runjags which itself is again a dependency of many packages)
|
||||
RUN dnf install -y -q lapack-devel git gcc g++ fontconfig-devel fribidi-devel libjpeg-turbo-devel libtiff-devel
|
||||
RUN curl -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 && make && make install && rm -rf JAGS-4.3.2.tar.gz JAGS-4.3.2 && cd ..
|
||||
RUN dnf install -y -q https://dl.fedoraproject.org/pub/epel/9/Everything/aarch64/Packages/h/hiredis-1.0.2-2.el9.aarch64.rpm && dnf install -y -q https://dl.fedoraproject.org/pub/epel/9/Everything/aarch64/Packages/c/ccache-4.5.1-2.el9.aarch64.rpm
|
||||
RUN curl -O https://f003.backblazeb2.com/file/devxy-r-builds/el9/R-4.4.1-1-1.aarch64.rpm
|
||||
RUN dnf install -q -y R-4.4.1-1-1.aarch64.rpm
|
||||
RUN R -q -e 'install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch))'
|
||||
|
||||
COPY . .
|
||||
RUN R -q -e 'Sys.setenv(PKG_SYSREQS = TRUE, PKG_SYSREQS_VERBOSE = TRUE, PKG_SYSREQS_PLATFORM = "redhat-9"); pak::pak()'
|
||||
RUN R CMD INSTALL .
|
||||
RUN rm -rf arm-binaries-r
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
19
docker/Dockerfile-ubuntu-2204
Normal file
19
docker/Dockerfile-ubuntu-2204
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
FROM ubuntu:jammy-20240530
|
||||
|
||||
ENV PATH=/opt/R/4.4.1/bin:$PATH
|
||||
ENV TZ="Europe/Berlin"
|
||||
|
||||
### install JAGS (needed for runjags which itself is again a dependency of many packages)
|
||||
RUN apt update && apt install -y --no-install-recommends gdebi-core g++ gfortran libbz2-dev libblas-dev libicu-dev liblapack-dev liblzma-dev libpaper-utils libpcre2-dev libtcl8.6 libtk8.6 libxt6 unzip zip zlib1g-dev libpcre3-dev libopenblas-dev curl ca-certificates make ccache
|
||||
|
||||
RUN curl -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 && make && make install && rm -rf JAGS-4.3.2.tar.gz JAGS-4.3.2 && cd ..
|
||||
RUN curl -O https://f003.backblazeb2.com/file/devxy-r-builds/2204/r-4.4.1_1_arm64.deb
|
||||
RUN gdebi -n -qq r-4.4.1_1_arm64.deb && rm r-4.4.1_1_arm64.deb
|
||||
RUN R -q -e 'install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch))'
|
||||
|
||||
COPY . .
|
||||
RUN R -q -e 'Sys.setenv(PKG_SYSREQS = TRUE, PKG_SYSREQS_VERBOSE = TRUE, PKG_SYSREQS_PLATFORM = "ubuntu-24.04"); pak::pak()'
|
||||
RUN R CMD INSTALL .
|
||||
RUN rm -rf arm-binaries-r
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
|
|
@ -4,7 +4,7 @@ ENV PATH=/opt/R/4.4.1/bin:$PATH
|
|||
ENV TZ="Europe/Berlin"
|
||||
|
||||
### install JAGS (needed for runjags which itself is again a dependency of many packages)
|
||||
RUN apt update && apt install -y --no-install-recommends gdebi-core g++ gfortran libbz2-dev libblas-dev libicu-dev liblapack-dev liblzma-dev libpaper-utils libpcre2-dev libtcl8.6 libtk8.6 libxt6 unzip zip zlib1g-dev libpcre3-dev libopenblas-dev curl ca-certificates make
|
||||
RUN apt update && apt install -y --no-install-recommends gdebi-core g++ gfortran libbz2-dev libblas-dev libicu-dev liblapack-dev liblzma-dev libpaper-utils libpcre2-dev libtcl8.6 libtk8.6 libxt6 unzip zip zlib1g-dev libpcre3-dev libopenblas-dev curl ca-certificates make ccache
|
||||
|
||||
RUN curl -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 && make && make install && rm -rf JAGS-4.3.2.tar.gz JAGS-4.3.2 && cd ..
|
||||
RUN curl -O https://f003.backblazeb2.com/file/devxy-r-builds/2404/r-4.4.1_1_arm64.deb
|
||||
|
|
|
|||
Loading…
Reference in a new issue