Enables output of Linux OS packages for Debian 9 (#19)

* Enables output of Linux OS packages for Debian 9

* added vendor

* Changed vendor to RStudio
This commit is contained in:
sellorm 2019-07-30 21:04:21 +01:00 committed by GitHub
commit d00b1c5e68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 1 deletions

View file

@ -6,15 +6,19 @@ RUN set -x \
&& export DEBIAN_FRONTEND=noninteractive \
&& echo 'deb-src http://deb.debian.org/debian stretch main' >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y libcurl4-openssl-dev libicu-dev libopenblas-base wget python-pip \
&& apt-get install -y gcc libcurl4-openssl-dev libicu-dev \
libopenblas-base make python-pip ruby ruby-dev wget \
&& apt-get build-dep -y r-base
RUN pip install awscli
RUN chmod 0777 /opt
RUN gem install fpm
# Override the default pager used by R
ENV PAGER /usr/bin/pager
COPY package.debian-9 /package.sh
COPY build.sh .
ENTRYPOINT ./build.sh

51
builder/package.debian-9 Normal file
View file

@ -0,0 +1,51 @@
if [[ ! -d /tmp/output/debian-9 ]]; then
mkdir -p /tmp/output/debian-9
fi
fpm \
-s dir \
-t deb \
-v 1 \
-n R-${R_VERSION} \
--vendor "RStudio Inc." \
--deb-priority "optional" \
--deb-field 'Bugs: https://github.com/rstudio/r-builds/issues' \
--url "http://www.r-project.org/" \
--description "GNU R statistical computation and graphics system" \
--maintainer "RStudio Inc https://github.com/rstudio/r-builds" \
--license "GPL-2" \
-p /tmp/output/debian-9/ \
-d ca-certificates \
-d g++ \
-d gcc \
-d gfortran \
-d libbz2-1.0 \
-d libc6 \
-d libcairo2 \
-d libcurl4-openssl-dev \
-d libglib2.0-0 \
-d libgomp1 \
-d libicu57 \
-d liblzma5 \
-d libopenblas-dev \
-d libpango-1.0-0 \
-d libpangocairo-1.0-0 \
-d libpaper-utils \
-d libpcre3 \
-d libpng16-16 \
-d libreadline7 \
-d libtcl8.6 \
-d libtiff5 \
-d libtk8.6 \
-d libx11-6 \
-d libxt6 \
-d make \
-d ucf \
-d unzip \
-d zip \
-d zlib1g \
/opt/R/${R_VERSION}
shopt -s extglob
export PKG_FILE=$(ls /tmp/output/debian-9/[rR]-${R_VERSION}*.@(deb|rpm) | head -1)