-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a SLES 15 SP6 / openSUSE 15.6 build #233
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e1c52d7
Add a SLES 15 SP6 / openSUSE 15.6 build
christierney 7b7535f
Use vault.centos.org on CentOS 7 for EOL
glin 5b740c9
Switch deprecated docker-compose commands to docker compose
glin 917c657
Use vault.centos.org in tests too
glin edaf387
Use archive URL for EPEL 7 RPM
glin bd62e5a
Merge pull request #234 from rstudio/centos7-vault
glin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
FROM opensuse/leap:15.6 | ||
|
||
ENV OS_IDENTIFIER opensuse-156 | ||
|
||
# Most of these packages, and also the configure options that follow were determined | ||
# by reviewing "R-base.spec" from the following OpenSUSE RPM: | ||
# https://download.opensuse.org/repositories/devel:/languages:/R:/released/openSUSE_Leap_42.3/src/R-base-3.5.3-103.1.src.rpm | ||
|
||
RUN zypper --non-interactive update | ||
RUN zypper --non-interactive --gpg-auto-import-keys -n install \ | ||
bzip2 \ | ||
cairo-devel \ | ||
curl \ | ||
fdupes \ | ||
gcc \ | ||
gcc-c++ \ | ||
gcc-fortran \ | ||
glib2-devel \ | ||
glibc-locale \ | ||
help2man \ | ||
java-11-openjdk-devel \ | ||
libX11-devel \ | ||
libXScrnSaver-devel \ | ||
libXmu-devel \ | ||
libXt-devel \ | ||
libbz2-devel \ | ||
libcurl-devel \ | ||
# Like openSUSE/SLES 15.5, SUSE 15.6 ships with both ICU 65 (libicu-devel) | ||
# and a later version; unlike 15.5, the later version is ICU 73 | ||
# (libicu73_2-devel). Prefer ICU 73 because the devel packages can't | ||
# coexist, and zypper resolves libicu-devel to libicu73_2-devel when | ||
# installing RPMs. | ||
libicu73_2-devel \ | ||
libjpeg-devel \ | ||
libpng-devel \ | ||
libtiff-devel \ | ||
make \ | ||
pango-devel \ | ||
pcre-devel \ | ||
pcre2-devel \ | ||
perl \ | ||
perl-macros \ | ||
readline-devel \ | ||
rpm-build \ | ||
shadow \ | ||
tcl-devel \ | ||
texinfo \ | ||
texlive-ae \ | ||
texlive-bibtex \ | ||
texlive-cm-super \ | ||
texlive-dvips \ | ||
texlive-fancyvrb \ | ||
texlive-helvetic \ | ||
texlive-inconsolata \ | ||
texlive-latex \ | ||
texlive-makeindex \ | ||
texlive-metafont \ | ||
texlive-psnfss \ | ||
texlive-tex \ | ||
texlive-times \ | ||
tk-devel \ | ||
unzip \ | ||
wget \ | ||
xdg-utils \ | ||
xorg-x11-devel \ | ||
xz-devel \ | ||
zip \ | ||
zlib-devel \ | ||
&& zypper clean | ||
|
||
# Install AWS CLI | ||
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o "awscliv2.zip" && \ | ||
unzip awscliv2.zip && \ | ||
./aws/install && \ | ||
rm -rf aws awscliv2.zip | ||
|
||
RUN if [ "$(arch)" == "aarch64" ]; then echo arm64; else echo amd64; fi > /tmp/arch | ||
|
||
RUN curl -LO "https://github.com/goreleaser/nfpm/releases/download/v2.18.1/nfpm_$(cat /tmp/arch).rpm" && \ | ||
zypper --non-interactive --no-gpg-checks install "nfpm_$(cat /tmp/arch).rpm" && \ | ||
rm "nfpm_$(cat /tmp/arch).rpm" | ||
|
||
RUN chmod 0777 /opt | ||
|
||
# Configure flags for SUSE that don't use the defaults in build.sh | ||
ENV CONFIGURE_OPTIONS="\ | ||
--enable-R-shlib \ | ||
--with-tcltk \ | ||
--with-x \ | ||
--enable-memory-profiling \ | ||
--with-tcl-config=/usr/lib64/tclConfig.sh \ | ||
--with-tk-config=/usr/lib64/tkConfig.sh" | ||
|
||
# Make sure that patching Java does not break R. | ||
# On SUSE, the default JAVA_HOME path always uses the major Java version only, | ||
# 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. | ||
# https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Java-support | ||
# https://solutions.posit.co/envs-pkgs/using-rjava/ | ||
ENV JAVA_HOME=/usr/lib64/jvm/jre-11-openjdk | ||
|
||
COPY package.opensuse-156 /package.sh | ||
COPY build.sh . | ||
COPY patches /patches | ||
ENTRYPOINT ./build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
#!/bin/bash | ||
|
||
if [[ ! -d /tmp/output/${OS_IDENTIFIER} ]]; then | ||
mkdir -p "/tmp/output/${OS_IDENTIFIER}" | ||
fi | ||
|
||
# R 3.x requires PCRE1 | ||
pcre_lib='pcre2-devel' | ||
if [[ "${R_VERSION}" =~ ^3 ]]; then | ||
pcre_lib='pcre-devel' | ||
fi | ||
|
||
# Create post-install script required for OpenBLAS. | ||
# | ||
# On RHEL and SUSE, we link R against the internal shared BLAS to make the | ||
# R binaries more portable and allow users to switch BLAS implementations without | ||
# having to recompile R. We default to OpenBLAS, but users may prefer other implementations. | ||
# | ||
# Binary packages built against the shared BLAS are also more portable and may be used | ||
# with the default R distributed by RHEL/SUSE, or other R installations using | ||
# shared BLAS and configured with a different BLAS (such as Microsoft R Open with MKL). | ||
# This is especially important for RSPM's binary packages. | ||
# | ||
# On Ubuntu/Debian, we link R against the external BLAS instead (--with-blas/--with-lapack), | ||
# as those distributions use the alternatives system to swap BLAS libraries at runtime. | ||
# The default R distributions on Ubuntu/Debian use the external BLAS, so we do as well | ||
# for portability. | ||
# | ||
# https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Shared-BLAS | ||
cat <<EOF >> /post-install.sh | ||
mv ${R_INSTALL_PATH}/lib/R/lib/libRblas.so ${R_INSTALL_PATH}/lib/R/lib/libRblas.so.keep | ||
ln -s /usr/lib64/libopenblas.so ${R_INSTALL_PATH}/lib/R/lib/libRblas.so | ||
EOF | ||
|
||
# Create after-remove script to remove internal BLAS, which won't be cleaned up automatically. | ||
cat <<EOF >> /after-remove.sh | ||
if [ -d ${R_INSTALL_PATH} ]; then | ||
rm -r ${R_INSTALL_PATH} | ||
fi | ||
EOF | ||
|
||
if [ "$(arch)" == "aarch64" ]; then echo arm64; else echo amd64; fi > /tmp/arch | ||
|
||
cat <<EOF > /tmp/nfpm.yml | ||
name: R-${R_VERSION} | ||
version: 1 | ||
version_schema: none | ||
arch: $(cat /tmp/arch) | ||
release: 1 | ||
maintainer: Posit Software, PBC <https://github.com/rstudio/r-builds> | ||
description: | | ||
GNU R statistical computation and graphics system | ||
vendor: Posit Software, PBC | ||
homepage: https://www.r-project.org | ||
license: GPLv2+ | ||
depends: | ||
- fontconfig | ||
- gcc | ||
- gcc-c++ | ||
- gcc-fortran | ||
- glibc-locale | ||
- gzip | ||
- libbz2-devel | ||
- libcairo2 | ||
- libcurl-devel | ||
- libfreetype6 | ||
- libgomp1 | ||
- libicu73_2-devel | ||
- libjpeg62 | ||
- libopenblas_pthreads-devel | ||
- libpango-1_0-0 | ||
- libreadline7 | ||
- libtiff6 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. difference from 15.5 |
||
- make | ||
- ${pcre_lib} | ||
- tar | ||
- tcl | ||
- tk | ||
- unzip | ||
- which | ||
- xorg-x11 | ||
- xorg-x11-fonts-100dpi | ||
- xorg-x11-fonts-75dpi | ||
- xz-devel | ||
- zip | ||
- zlib-devel | ||
contents: | ||
- src: ${R_INSTALL_PATH} | ||
dst: ${R_INSTALL_PATH} | ||
scripts: | ||
postinstall: /post-install.sh | ||
postremove: /after-remove.sh | ||
EOF | ||
|
||
nfpm package \ | ||
-f /tmp/nfpm.yml \ | ||
-p rpm \ | ||
-t "/tmp/output/${OS_IDENTIFIER}" | ||
|
||
export PKG_FILE=$(ls /tmp/output/${OS_IDENTIFIER}/R-${R_VERSION}*.rpm | head -1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
difference from 15.5