install pak from source on rhel

This commit is contained in:
Patrick Schratz 2024-09-23 22:58:15 +02:00
commit 6710eb3d36
Signed by: pat-s
GPG key ID: 3C6318841EF78925
4 changed files with 100 additions and 98 deletions

View file

@ -8,36 +8,36 @@ depends_on:
matrix: matrix:
include: include:
# - PLATFORM: redhat-9 - PLATFORM: redhat-9
# BLOCK: 1135:length(pkgs) BLOCK: 1413:length(pkgs)
# ARCH: arm64 ARCH: arm64
# NCPUS: 2 NCPUS: 2
# MEMORY: 29Gi MEMORY: 29Gi
# STRATEGY: multisession STRATEGY: multisession
# - PLATFORM: redhat-8 - PLATFORM: redhat-8
# BLOCK: 1098:length(pkgs) BLOCK: 1322:length(pkgs)
# ARCH: arm64 ARCH: arm64
# NCPUS: 2 NCPUS: 2
# MEMORY: 29Gi MEMORY: 29Gi
# STRATEGY: multisession STRATEGY: multisession
# - PLATFORM: ubuntu-2404 - PLATFORM: ubuntu-2404
# BLOCK: 1248:length(pkgs) BLOCK: 1594:length(pkgs)
# ARCH: arm64 ARCH: arm64
# NCPUS: 2 NCPUS: 2
# MEMORY: 29Gi MEMORY: 29Gi
# STRATEGY: multisession STRATEGY: multisession
# - PLATFORM: ubuntu-2204 - PLATFORM: ubuntu-2204
# BLOCK: 1325:length(pkgs) BLOCK: 1645:length(pkgs)
# ARCH: arm64 ARCH: arm64
# NCPUS: 2 NCPUS: 2
# MEMORY: 29Gi MEMORY: 29Gi
# STRATEGY: multisession STRATEGY: multisession
# - PLATFORM: alpine-320 - PLATFORM: alpine-320
# BLOCK: 1199:length(pkgs) BLOCK: 1560:length(pkgs)
# ARCH: arm64 ARCH: arm64
# NCPUS: 2 NCPUS: 2
# MEMORY: 29Gi MEMORY: 29Gi
# STRATEGY: multisession STRATEGY: multisession
### AMD ### AMD
- PLATFORM: redhat-9 - PLATFORM: redhat-9
BLOCK: 699:length(pkgs) BLOCK: 699:length(pkgs)
@ -51,24 +51,24 @@ matrix:
NCPUS: 2 NCPUS: 2
MEMORY: 29Gi MEMORY: 29Gi
STRATEGY: multisession STRATEGY: multisession
# - PLATFORM: ubuntu-2404 - PLATFORM: ubuntu-2404
# BLOCK: 1481:length(pkgs) BLOCK: 1795:length(pkgs)
# ARCH: amd64 ARCH: amd64
# NCPUS: 2 NCPUS: 2
# MEMORY: 29Gi MEMORY: 29Gi
# STRATEGY: multisession STRATEGY: multisession
# - PLATFORM: ubuntu-2204 - PLATFORM: ubuntu-2204
# BLOCK: 1542:length(pkgs) BLOCK: 1893:length(pkgs)
# ARCH: amd64 ARCH: amd64
# NCPUS: 2 NCPUS: 2
# MEMORY: 29Gi MEMORY: 29Gi
# STRATEGY: multisession STRATEGY: multisession
# - PLATFORM: alpine-320 - PLATFORM: alpine-320
# BLOCK: 1161:length(pkgs) BLOCK: 1560:length(pkgs)
# ARCH: amd64 ARCH: amd64
# NCPUS: 2 NCPUS: 2
# MEMORY: 29Gi MEMORY: 29Gi
# STRATEGY: multisession STRATEGY: multisession
steps: steps:
- name: 'Build binaries (${PLATFORM}: ${BLOCK})' - name: 'Build binaries (${PLATFORM}: ${BLOCK})'
secrets: [red_hat_dev_pw, aws_access_key_id, aws_secret_access_key, pgpass, git_ro_token, GITHUB_PAT] secrets: [red_hat_dev_pw, aws_access_key_id, aws_secret_access_key, pgpass, git_ro_token, GITHUB_PAT]

View file

@ -5,36 +5,36 @@ skip_clone: true
matrix: matrix:
include: include:
# - PLATFORM: redhat-9 - PLATFORM: redhat-9
# BLOCK: 1135:length(pkgs) BLOCK: 1135:length(pkgs)
# ARCH: arm64 ARCH: arm64
# NCPUS: 2 NCPUS: 2
# MEMORY: 29Gi MEMORY: 29Gi
# STRATEGY: multisession STRATEGY: multisession
# - PLATFORM: redhat-8 - PLATFORM: redhat-8
# BLOCK: 1098:length(pkgs) BLOCK: 1098:length(pkgs)
# ARCH: arm64 ARCH: arm64
# NCPUS: 2 NCPUS: 2
# MEMORY: 29Gi MEMORY: 29Gi
# STRATEGY: multisession STRATEGY: multisession
# - PLATFORM: ubuntu-2404 - PLATFORM: ubuntu-2404
# BLOCK: 1248:length(pkgs) BLOCK: 1248:length(pkgs)
# ARCH: arm64 ARCH: arm64
# NCPUS: 2 NCPUS: 2
# MEMORY: 29Gi MEMORY: 29Gi
# STRATEGY: multisession STRATEGY: multisession
# - PLATFORM: ubuntu-2204 - PLATFORM: ubuntu-2204
# BLOCK: 1325:length(pkgs) BLOCK: 1325:length(pkgs)
# ARCH: arm64 ARCH: arm64
# NCPUS: 2 NCPUS: 2
# MEMORY: 29Gi MEMORY: 29Gi
# STRATEGY: multisession STRATEGY: multisession
# - PLATFORM: alpine-320 - PLATFORM: alpine-320
# BLOCK: 1199:length(pkgs) BLOCK: 1199:length(pkgs)
# ARCH: arm64 ARCH: arm64
# NCPUS: 2 NCPUS: 2
# MEMORY: 29Gi MEMORY: 29Gi
# STRATEGY: multisession STRATEGY: multisession
### AMD ### AMD
- PLATFORM: redhat-9 - PLATFORM: redhat-9
BLOCK: 690:length(pkgs) BLOCK: 690:length(pkgs)
@ -48,24 +48,24 @@ matrix:
NCPUS: 2 NCPUS: 2
MEMORY: 29Gi MEMORY: 29Gi
STRATEGY: multisession STRATEGY: multisession
# - PLATFORM: ubuntu-2404 - PLATFORM: ubuntu-2404
# BLOCK: 1481:length(pkgs) BLOCK: 1481:length(pkgs)
# ARCH: amd64 ARCH: amd64
# NCPUS: 2 NCPUS: 2
# MEMORY: 29Gi MEMORY: 29Gi
# STRATEGY: multisession STRATEGY: multisession
# - PLATFORM: ubuntu-2204 - PLATFORM: ubuntu-2204
# BLOCK: 1542:length(pkgs) BLOCK: 1542:length(pkgs)
# ARCH: amd64 ARCH: amd64
# NCPUS: 2 NCPUS: 2
# MEMORY: 29Gi MEMORY: 29Gi
# STRATEGY: multisession STRATEGY: multisession
# - PLATFORM: alpine-320 - PLATFORM: alpine-320
# BLOCK: 1161:length(pkgs) BLOCK: 1161:length(pkgs)
# ARCH: amd64 ARCH: amd64
# NCPUS: 2 NCPUS: 2
# MEMORY: 29Gi MEMORY: 29Gi
# STRATEGY: multisession STRATEGY: multisession
steps: steps:
- name: 'Warming up' - name: 'Warming up'
image: busybox:latest image: busybox:latest

View file

@ -30,7 +30,8 @@ RUN curl -q -L -O https://sourceforge.net/projects/mcmc-jags/files/JAGS/4.x/Sour
### INSTALL R ### INSTALL R
RUN curl -O "https://devxy-r-builds.s3.eu-central-2.amazonaws.com/el8/R-${R_VERSION}-1-1.$(arch).rpm" RUN curl -O "https://devxy-r-builds.s3.eu-central-2.amazonaws.com/el8/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 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))' # we can't install pak on rhel as the bundled curl has the wrong CURL_CA_BUNDLE set (as it is only built on Ubuntu)
RUN R -q -e 'install.packages("remotes", repos = "cloud.r-project.org"); remotes::install_github("r-lib/pak")'
### Makevars ### Makevars
# dbarts: CFLAGS += -flax-vector-conversions (https://github.com/vdorie/dbarts/issues/66) # dbarts: CFLAGS += -flax-vector-conversions (https://github.com/vdorie/dbarts/issues/66)

View file

@ -30,7 +30,8 @@ RUN curl -q -L -O https://sourceforge.net/projects/mcmc-jags/files/JAGS/4.x/Sour
### INSTALL R ### INSTALL R
RUN curl -O "https://devxy-r-builds.s3.eu-central-2.amazonaws.com/el9/R-${R_VERSION}-1-1.$(arch).rpm" RUN curl -O "https://devxy-r-builds.s3.eu-central-2.amazonaws.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 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))' # we can't install pak on rhel as the bundled curl has the wrong CURL_CA_BUNDLE set (as it is only built on Ubuntu)
RUN R -q -e 'install.packages("remotes", repos = "cloud.r-project.org"); remotes::install_github("r-lib/pak")'
### Makevars ### Makevars
# dbarts: CFLAGS += -flax-vector-conversions (https://github.com/vdorie/dbarts/issues/66) # dbarts: CFLAGS += -flax-vector-conversions (https://github.com/vdorie/dbarts/issues/66)