Merge pull request #83 from rstudio/fix-sles12-blas

Work around broken OpenBLAS dependency for SLES 12
This commit is contained in:
Greg Lin 2021-01-26 14:00:08 -06:00 committed by GitHub
commit 0e674af3ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 11 deletions

View file

@ -29,6 +29,8 @@ RUN yum -y update \
pango-devel \ pango-devel \
pcre-devel \ pcre-devel \
pcre2-devel \ pcre2-devel \
python3 \
python3-pip \
readline-devel \ readline-devel \
rpm-build \ rpm-build \
ruby \ ruby \
@ -45,15 +47,12 @@ RUN yum -y update \
zlib-devel \ zlib-devel \
&& yum clean all && yum clean all
# Install pip for python
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python get-pip.py
# Install AWS CLI. # Install AWS CLI.
RUN pip install awscli --upgrade --user && \ RUN pip3 install awscli --upgrade --user && \
ln -s /root/.local/bin/aws /usr/bin/aws ln -s /root/.local/bin/aws /usr/bin/aws
RUN gem install ffi:1.12.2 fpm # Pin fpm for compatibility with Ruby < 2.3
RUN gem install ffi:1.12.2 fpm:1.11.0
RUN chmod 0777 /opt RUN chmod 0777 /opt

View file

@ -66,7 +66,8 @@ RUN zypper --non-interactive --gpg-auto-import-keys -n install \
RUN pip install awscli RUN pip install awscli
RUN gem install fpm && ln -s /usr/lib64/ruby/gems/2.5.0/gems/fpm-1.11.0/bin/fpm /bin/fpm RUN gem install fpm && \
ln -s /usr/bin/fpm.ruby2.5 /usr/local/bin/fpm
RUN chmod 0777 /opt RUN chmod 0777 /opt

View file

@ -66,7 +66,8 @@ RUN zypper --non-interactive --gpg-auto-import-keys -n install \
RUN pip install awscli RUN pip install awscli
RUN gem install fpm && ln -s /usr/lib64/ruby/gems/2.5.0/gems/fpm-1.11.0/bin/fpm /bin/fpm RUN gem install fpm && \
ln -s /usr/bin/fpm.ruby2.5 /usr/local/bin/fpm
RUN chmod 0777 /opt RUN chmod 0777 /opt

View file

@ -66,7 +66,9 @@ RUN zypper --non-interactive --gpg-auto-import-keys -n install \
RUN pip install awscli RUN pip install awscli
RUN gem install ffi:1.12.2 fpm && ln -s /usr/lib64/ruby/gems/2.1.0/gems/fpm-1.11.0/bin/fpm /bin/fpm # Pin fpm for compatibility with Ruby < 2.3
RUN gem install ffi:1.12.2 fpm:1.11.0 && \
ln -s /usr/bin/fpm.ruby2.1 /usr/local/bin/fpm
RUN chmod 0777 /opt RUN chmod 0777 /opt

View file

@ -13,7 +13,7 @@ fi
# create post-install script required for openblas # create post-install script required for openblas
cat <<EOF >> /post-install.sh cat <<EOF >> /post-install.sh
mv /opt/R/${R_VERSION}/lib/R/lib/libRblas.so /opt/R/${R_VERSION}/lib/R/lib/libRblas.so.keep mv /opt/R/${R_VERSION}/lib/R/lib/libRblas.so /opt/R/${R_VERSION}/lib/R/lib/libRblas.so.keep
ln -s /usr/lib64/libopenblas.so /opt/R/${R_VERSION}/lib/R/lib/libRblas.so ln -s /usr/lib64/libopenblas_pthreads.so /opt/R/${R_VERSION}/lib/R/lib/libRblas.so
EOF EOF
# create after-remove script to remove internal blas # create after-remove script to remove internal blas
@ -53,7 +53,7 @@ fpm \
-d libpango-1_0-0 \ -d libpango-1_0-0 \
-d libtiff5 \ -d libtiff5 \
-d make \ -d make \
-d openblas-devel \ -d libopenblas_pthreads-devel \
-d ${pcre_lib} \ -d ${pcre_lib} \
-d tar \ -d tar \
-d tcl \ -d tcl \