Add support for Debian 10 (buster)

Closes #58
This commit is contained in:
Dan Buch 2020-04-30 15:10:14 -04:00
commit 87c9ed44b0
No known key found for this signature in database
GPG key ID: 9685130D8B763EA7
3 changed files with 111 additions and 5 deletions

View file

@ -0,0 +1,24 @@
FROM debian:buster
ENV OS_IDENTIFIER debian-10
RUN set -x \
&& export DEBIAN_FRONTEND=noninteractive \
&& echo 'deb-src http://deb.debian.org/debian buster main' >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y gcc libcurl4-openssl-dev libicu-dev \
libopenblas-base libpcre2-dev make python3-pip ruby ruby-dev wget \
&& apt-get build-dep -y r-base
RUN pip3 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-10 /package.sh
COPY build.sh .
ENTRYPOINT ./build.sh

View file

@ -45,6 +45,17 @@ services:
image: r-builds:debian-9
volumes:
- ./integration/tmp:/tmp/output
debian-10:
command: ./build.sh
environment:
- R_VERSION=${R_VERSION}
- LOCAL_STORE=/tmp/output
build:
context: .
dockerfile: Dockerfile.debian-10
image: r-builds:debian-10
volumes:
- ./integration/tmp:/tmp/output
centos-6:
command: ./build.sh
environment:

54
builder/package.debian-10 Normal file
View file

@ -0,0 +1,54 @@
#!/bin/bash
if [[ ! -d /tmp/output/debian-10 ]]; then
mkdir -p /tmp/output/debian-10
fi
fpm \
-s dir \
-t deb \
-v 1 \
-n R-${R_VERSION} \
--vendor "RStudio, PBC" \
--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, PBC https://github.com/rstudio/r-builds" \
--license "GPL-2" \
-p /tmp/output/debian-10/ \
-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 libicu63 \
-d liblzma5 \
-d libopenblas-dev \
-d libpango-1.0-0 \
-d libpangocairo-1.0-0 \
-d libpaper-utils \
-d libpcre2-8-0 \
-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-10/[rR]-${R_VERSION}*.@(deb|rpm) | head -1)