Enables output of Linux OS packages for CentOS 7 (#20)

* Enables output of Linux OS packages for CentOS 7

* Changed vendor to RStudio

* Added post install script to swap in openBLAS shared library

* tidied up some dependencies

* Added a post remove step to cleanup install dir

As we swap in the openBlas shared object file during installation
the RPM database knows that the RPM installation has been "interefered"
with. Because of this `yum remove` does not clean out the full directory
tree. This update therefore prunes the directory tree at
/opt/R/R_VERSION
This commit is contained in:
sellorm 2019-08-06 23:17:45 +01:00 committed by GitHub
commit 60474b593b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,6 +30,9 @@ RUN yum -y update \
pcre-devel \
pcre2-devel \
readline-devel \
rpm-build \
ruby \
ruby-devel \
tcl-devel \
tex \
texinfo-tex \
@ -50,6 +53,8 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
RUN pip install awscli --upgrade --user && \
ln -s /root/.local/bin/aws /usr/bin/aws
RUN gem install fpm
RUN chmod 0777 /opt
# Configure flags for CentOS 7 that don't use the defaults in build.sh
@ -66,5 +71,6 @@ ENV CONFIGURE_OPTIONS="\
# RHEL 7 doesn't have the inconsolata font, so override the defaults.
ENV R_RD4PDF="times,hyper"
COPY package.centos-7 /package.sh
COPY build.sh .
ENTRYPOINT ./build.sh