Merge branch 'main' into feature/arm64

This commit is contained in:
Gábor Csárdi 2023-01-10 20:30:58 +01:00 committed by GitHub
commit fc4212278b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 47 additions and 47 deletions

View file

@ -40,9 +40,9 @@ jobs:
id: setup-matrix id: setup-matrix
run: | run: |
platforms=$(python test/get_platforms.py ${{ github.event.inputs.platforms }}) platforms=$(python test/get_platforms.py ${{ github.event.inputs.platforms }})
echo "::set-output name=platforms::$platforms" echo "platforms=$platforms" >> $GITHUB_OUTPUT
r_versions=$(python test/get_r_versions.py ${{ github.event.inputs.r_versions }}) r_versions=$(python test/get_r_versions.py ${{ github.event.inputs.r_versions }})
echo "::set-output name=r_versions::$r_versions" echo "r_versions=$r_versions" >> $GITHUB_OUTPUT
docker-images: docker-images:
needs: setup-matrix needs: setup-matrix
@ -60,12 +60,12 @@ jobs:
install: true install: true
# Enable Docker layer caching without having to push to a registry. # Enable Docker layer caching without having to push to a registry.
# https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md#local-cache # https://docs.docker.com/build/ci/github-actions/examples/#local-cache
# This may eventually be migrated to the GitHub Actions cache backend, # This may eventually be migrated to the GitHub Actions cache backend,
# which is still considered experimental. # which is still considered experimental.
# https://github.com/moby/buildkit#github-actions-cache-experimental # https://github.com/moby/buildkit#github-actions-cache-experimental
- name: Cache Docker layers - name: Cache Docker layers
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: /tmp/.buildx-cache path: /tmp/.buildx-cache
key: ${{ matrix.platform }}-buildx-${{ github.sha }} key: ${{ matrix.platform }}-buildx-${{ github.sha }}
@ -108,7 +108,7 @@ jobs:
install: true install: true
- name: Restore cached Docker layers - name: Restore cached Docker layers
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: /tmp/.buildx-cache path: /tmp/.buildx-cache
key: ${{ matrix.platform }}-buildx-${{ github.sha }} key: ${{ matrix.platform }}-buildx-${{ github.sha }}

4
Jenkinsfile vendored
View file

@ -16,7 +16,7 @@ pipeline {
stage('push images') { stage('push images') {
agent { label 'docker-4x' } agent { label 'docker-4x' }
when { when {
branch 'master' branch 'main'
} }
steps { steps {
sh 'make docker-push' sh 'make docker-push'
@ -25,7 +25,7 @@ pipeline {
stage('deploy') { stage('deploy') {
agent none agent none
when { when {
branch 'master' branch 'main'
} }
steps { steps {
build(job: 'r-builds/deploy-r-builds', wait: true, build(job: 'r-builds/deploy-r-builds', wait: true,

View file

@ -1,19 +1,19 @@
# r-builds # r-builds
This repository orchestrates tools to produce R binaries. The binaries are available as a This repository orchestrates tools to produce R binaries. The binaries are available as a
community resource, **they are not professionally supported by RStudio**. community resource, **they are not professionally supported by Posit**.
The R language is open source, please see the official documentation at https://www.r-project.org/. The R language is open source, please see the official documentation at https://www.r-project.org/.
These binaries are not a replacement to existing binary distributions for R. These binaries are not a replacement to existing binary distributions for R.
The binaries were built with the following considerations: The binaries were built with the following considerations:
- They use a minimal set of [build and runtime dependencies](builder). - They use a minimal set of [build and runtime dependencies](builder).
- They are designed to be used side-by-side, e.g., on [RStudio Server Pro](https://docs.rstudio.com/ide/server-pro/r-versions.html#using-multiple-versions-of-r-concurrently). - They are designed to be used side-by-side, e.g., on [Posit Workbench](https://docs.posit.co/ide/server-pro/r_versions/using_multiple_versions_of_r.html).
- They give users a consistent option for accessing R across different Linux distributions. - They give users a consistent option for accessing R across different Linux distributions.
These binaries have been extensively tested, and are used in production everyday These binaries have been extensively tested, and are used in production everyday
on [RStudio Cloud](https://rstudio.cloud) and on [Posit Cloud](https://posit.cloud) and
[shinyapps.io](https://shinyapps.io). Please open an issue to report a specific [shinyapps.io](https://shinyapps.io). Please open an issue to report a specific
bug, or ask questions on [RStudio Community](https://community.rstudio.com). bug, or ask questions on [Posit Community](https://community.rstudio.com).
## Supported Platforms ## Supported Platforms
@ -27,7 +27,7 @@ R binaries are built for the following Linux operating systems:
- SUSE Linux Enterprise 15 SP3, 15 SP4 - SUSE Linux Enterprise 15 SP3, 15 SP4
Operating systems are supported until their vendor end-of-support dates, which Operating systems are supported until their vendor end-of-support dates, which
can be found on the [RStudio Platform Support](https://www.rstudio.com/about/platform-support/) can be found on the [Posit Platform Support](https://posit.co/about/platform-support/)
page. When an operating system has reached its end of support, builds for it page. When an operating system has reached its end of support, builds for it
will be discontinued, but existing binaries will continue to be available. will be discontinued, but existing binaries will continue to be available.
@ -46,7 +46,7 @@ bash -c "$(curl -L https://rstd.io/r-install)"
### Specify R version ### Specify R version
Define the version of R that you want to install. Available versions Define the version of R that you want to install. Available versions
of R can be found here: https://cdn.rstudio.com/r/versions.json of R can be found here: https://cdn.posit.co/r/versions.json
```bash ```bash
R_VERSION=4.1.3 R_VERSION=4.1.3
``` ```
@ -57,19 +57,19 @@ R_VERSION=4.1.3
Download the deb package: Download the deb package:
```bash ```bash
# Ubuntu 18.04 # Ubuntu 18.04
wget https://cdn.rstudio.com/r/ubuntu-1804/pkgs/r-${R_VERSION}_1_amd64.deb curl -O https://cdn.posit.co/r/ubuntu-1804/pkgs/r-${R_VERSION}_1_amd64.deb
# Ubuntu 20.04 # Ubuntu 20.04
wget https://cdn.rstudio.com/r/ubuntu-2004/pkgs/r-${R_VERSION}_1_amd64.deb curl -O https://cdn.posit.co/r/ubuntu-2004/pkgs/r-${R_VERSION}_1_amd64.deb
# Ubuntu 22.04 # Ubuntu 22.04
wget https://cdn.rstudio.com/r/ubuntu-2204/pkgs/r-${R_VERSION}_1_amd64.deb curl -O https://cdn.posit.co/r/ubuntu-2204/pkgs/r-${R_VERSION}_1_amd64.deb
# Debian 10 # Debian 10
wget https://cdn.rstudio.com/r/debian-10/pkgs/r-${R_VERSION}_1_amd64.deb curl -O https://cdn.posit.co/r/debian-10/pkgs/r-${R_VERSION}_1_amd64.deb
# Debian 11 # Debian 11
wget https://cdn.rstudio.com/r/debian-11/pkgs/r-${R_VERSION}_1_amd64.deb curl -O https://cdn.posit.co/r/debian-11/pkgs/r-${R_VERSION}_1_amd64.deb
``` ```
Then install the package: Then install the package:
@ -119,13 +119,13 @@ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noa
Download the rpm package: Download the rpm package:
```bash ```bash
# CentOS / RHEL 7 # CentOS / RHEL 7
wget https://cdn.rstudio.com/r/centos-7/pkgs/R-${R_VERSION}-1-1.x86_64.rpm curl -O https://cdn.posit.co/r/centos-7/pkgs/R-${R_VERSION}-1-1.x86_64.rpm
# RHEL 8 / Rocky Linux 8 / AlmaLinux 8 # RHEL 8 / Rocky Linux 8 / AlmaLinux 8
wget https://cdn.rstudio.com/r/centos-8/pkgs/R-${R_VERSION}-1-1.x86_64.rpm curl -O https://cdn.posit.co/r/centos-8/pkgs/R-${R_VERSION}-1-1.x86_64.rpm
# RHEL 9 / Rocky Linux 9 / AlmaLinux 9 # RHEL 9 / Rocky Linux 9 / AlmaLinux 9
wget https://cdn.rstudio.com/r/rhel-9/pkgs/R-${R_VERSION}-1-1.x86_64.rpm curl -O https://cdn.posit.co/r/rhel-9/pkgs/R-${R_VERSION}-1-1.x86_64.rpm
``` ```
Then install the package: Then install the package:
@ -138,10 +138,10 @@ sudo yum install R-${R_VERSION}-1-1.x86_64.rpm
Download the rpm package: Download the rpm package:
```bash ```bash
# openSUSE 15.3 / SLES 15 SP3 # openSUSE 15.3 / SLES 15 SP3
wget https://cdn.rstudio.com/r/opensuse-153/pkgs/R-${R_VERSION}-1-1.x86_64.rpm curl -O https://cdn.posit.co/r/opensuse-153/pkgs/R-${R_VERSION}-1-1.x86_64.rpm
# openSUSE 15.4 / SLES 15 SP4 # openSUSE 15.4 / SLES 15 SP4
wget https://cdn.rstudio.com/r/opensuse-154/pkgs/R-${R_VERSION}-1-1.x86_64.rpm curl -O https://cdn.posit.co/r/opensuse-154/pkgs/R-${R_VERSION}-1-1.x86_64.rpm
``` ```
Then install the package: Then install the package:

View file

@ -94,7 +94,7 @@ ENV CONFIGURE_OPTIONS="\
# but the JDK path is chosen by default. We change this to the JRE path to # but the JDK path is chosen by default. We change this to the JRE path to
# support users who only want to install the JRE (non-devel) package. # support users who only want to install the JRE (non-devel) package.
# https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Java-support # https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Java-support
# https://solutions.rstudio.com/r/using-rjava/ # https://solutions.posit.co/envs-pkgs/using-rjava/
ENV JAVA_HOME=/usr/lib64/jvm/jre-11-openjdk ENV JAVA_HOME=/usr/lib64/jvm/jre-11-openjdk
COPY package.opensuse-154 /package.sh COPY package.opensuse-154 /package.sh

View file

@ -81,7 +81,7 @@ ENV R_RD4PDF="times,hyper"
# requires users to run `R CMD javareconf` even on minor/patch upgrades. Use the # requires users to run `R CMD javareconf` even on minor/patch upgrades. Use the
# major version symlink to avoid this. # major version symlink to avoid this.
# https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Java-support # https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Java-support
# https://solutions.rstudio.com/r/using-rjava/ # https://solutions.posit.co/envs-pkgs/using-rjava/
ENV JAVA_HOME=/usr/lib/jvm/jre-11-openjdk ENV JAVA_HOME=/usr/lib/jvm/jre-11-openjdk
# R 3.x requires PCRE2 for Pango support on RHEL 9 # R 3.x requires PCRE2 for Pango support on RHEL 9

View file

@ -31,10 +31,10 @@ version: 1
version_schema: none version_schema: none
arch: $(cat /tmp/arch) arch: $(cat /tmp/arch)
release: 1 release: 1
maintainer: RStudio, PBC <https://github.com/rstudio/r-builds> maintainer: Posit Software, PBC <https://github.com/rstudio/r-builds>
description: | description: |
GNU R statistical computation and graphics system GNU R statistical computation and graphics system
vendor: RStudio, PBC vendor: Posit Software, PBC
homepage: https://www.r-project.org homepage: https://www.r-project.org
license: GPLv2+ license: GPLv2+
depends: depends:

View file

@ -31,10 +31,10 @@ version: 1
version_schema: none version_schema: none
arch: $(cat /tmp/arch) arch: $(cat /tmp/arch)
release: 1 release: 1
maintainer: RStudio, PBC <https://github.com/rstudio/r-builds> maintainer: Posit Software, PBC <https://github.com/rstudio/r-builds>
description: | description: |
GNU R statistical computation and graphics system GNU R statistical computation and graphics system
vendor: RStudio, PBC vendor: Posit Software, PBC
homepage: https://www.r-project.org homepage: https://www.r-project.org
license: GPLv2+ license: GPLv2+
depends: depends:

View file

@ -17,10 +17,10 @@ version_schema: none
section: gnu-r section: gnu-r
arch: $(dpkg --print-architecture) arch: $(dpkg --print-architecture)
priority: optional priority: optional
maintainer: RStudio, PBC <https://github.com/rstudio/r-builds> maintainer: Posit Software, PBC <https://github.com/rstudio/r-builds>
description: | description: |
GNU R statistical computation and graphics system GNU R statistical computation and graphics system
vendor: RStudio, PBC vendor: Posit Software, PBC
homepage: https://www.r-project.org homepage: https://www.r-project.org
license: GPL-2 license: GPL-2
deb: deb:

View file

@ -18,10 +18,10 @@ version_schema: none
section: gnu-r section: gnu-r
arch: $(dpkg --print-architecture) arch: $(dpkg --print-architecture)
priority: optional priority: optional
maintainer: RStudio, PBC <https://github.com/rstudio/r-builds> maintainer: Posit Software, PBC <https://github.com/rstudio/r-builds>
description: | description: |
GNU R statistical computation and graphics system GNU R statistical computation and graphics system
vendor: RStudio, PBC vendor: Posit Software, PBC
homepage: https://www.r-project.org homepage: https://www.r-project.org
license: GPL-2 license: GPL-2
deb: deb:

View file

@ -31,10 +31,10 @@ version: 1
version_schema: none version_schema: none
arch: $(cat /tmp/arch) arch: $(cat /tmp/arch)
release: 1 release: 1
maintainer: RStudio, PBC <https://github.com/rstudio/r-builds> maintainer: Posit Software, PBC <https://github.com/rstudio/r-builds>
description: | description: |
GNU R statistical computation and graphics system GNU R statistical computation and graphics system
vendor: RStudio, PBC vendor: Posit Software, PBC
homepage: https://www.r-project.org homepage: https://www.r-project.org
license: GPLv2+ license: GPLv2+
depends: depends:

View file

@ -47,10 +47,10 @@ version: 1
version_schema: none version_schema: none
arch: $(cat /tmp/arch) arch: $(cat /tmp/arch)
release: 1 release: 1
maintainer: RStudio, PBC <https://github.com/rstudio/r-builds> maintainer: Posit Software, PBC <https://github.com/rstudio/r-builds>
description: | description: |
GNU R statistical computation and graphics system GNU R statistical computation and graphics system
vendor: RStudio, PBC vendor: Posit Software, PBC
homepage: https://www.r-project.org homepage: https://www.r-project.org
license: GPLv2+ license: GPLv2+
depends: depends:

View file

@ -48,10 +48,10 @@ version: 1
version_schema: none version_schema: none
arch: $(cat /tmp/arch) arch: $(cat /tmp/arch)
release: 1 release: 1
maintainer: RStudio, PBC <https://github.com/rstudio/r-builds> maintainer: Posit Software, PBC <https://github.com/rstudio/r-builds>
description: | description: |
GNU R statistical computation and graphics system GNU R statistical computation and graphics system
vendor: RStudio, PBC vendor: Posit Software, PBC
homepage: https://www.r-project.org homepage: https://www.r-project.org
license: GPLv2+ license: GPLv2+
depends: depends:

View file

@ -17,10 +17,10 @@ version_schema: none
section: universe/math section: universe/math
arch: $(dpkg --print-architecture) arch: $(dpkg --print-architecture)
priority: optional priority: optional
maintainer: RStudio, PBC <https://github.com/rstudio/r-builds> maintainer: Posit Software, PBC <https://github.com/rstudio/r-builds>
description: | description: |
GNU R statistical computation and graphics system GNU R statistical computation and graphics system
vendor: RStudio, PBC vendor: Posit Software, PBC
homepage: https://www.r-project.org homepage: https://www.r-project.org
license: GPL-2 license: GPL-2
deb: deb:

View file

@ -17,10 +17,10 @@ version_schema: none
section: universe/math section: universe/math
priority: optional priority: optional
arch: $(dpkg --print-architecture) arch: $(dpkg --print-architecture)
maintainer: RStudio, PBC <https://github.com/rstudio/r-builds> maintainer: Posit Software, PBC <https://github.com/rstudio/r-builds>
description: | description: |
GNU R statistical computation and graphics system GNU R statistical computation and graphics system
vendor: RStudio, PBC vendor: Posit Software, PBC
homepage: https://www.r-project.org homepage: https://www.r-project.org
license: GPL-2 license: GPL-2
deb: deb:

View file

@ -18,10 +18,10 @@ version_schema: none
section: universe/math section: universe/math
priority: optional priority: optional
arch: $(dpkg --print-architecture) arch: $(dpkg --print-architecture)
maintainer: RStudio, PBC <https://github.com/rstudio/r-builds> maintainer: Posit Software, PBC <https://github.com/rstudio/r-builds>
description: | description: |
GNU R statistical computation and graphics system GNU R statistical computation and graphics system
vendor: RStudio, PBC vendor: Posit Software, PBC
homepage: https://www.r-project.org homepage: https://www.r-project.org
license: GPL-2 license: GPL-2
deb: deb:

View file

@ -27,7 +27,7 @@ if [[ $(id -u) != "0" ]]; then
fi fi
# The root of the S3 URL for downloads # The root of the S3 URL for downloads
CDN_URL='https://cdn.rstudio.com/r' CDN_URL='https://cdn.posit.co/r'
# The URL for listing available R versions # The URL for listing available R versions
VERSIONS_URL="${CDN_URL}/versions.json" VERSIONS_URL="${CDN_URL}/versions.json"

View file

@ -3,7 +3,7 @@ import json
import re import re
import urllib.request import urllib.request
VERSIONS_URL = 'https://cdn.rstudio.com/r/versions.json' VERSIONS_URL = 'https://cdn.posit.co/r/versions.json'
# Minimum R version for "all" # Minimum R version for "all"
MIN_ALL_VERSION = '3.1.0' MIN_ALL_VERSION = '3.1.0'