Merge pull request #110 from rstudio/add-ubuntu-2204
Add ubuntu 22.04 (jammy) support
This commit is contained in:
commit
fa8f303cf7
7 changed files with 123 additions and 13 deletions
2
Makefile
2
Makefile
|
|
@ -1,4 +1,4 @@
|
||||||
PLATFORMS := ubuntu-1604 ubuntu-1804 ubuntu-2004 debian-9 debian-10 centos-7 centos-8 opensuse-42 opensuse-15 opensuse-152 opensuse-153
|
PLATFORMS := ubuntu-1604 ubuntu-1804 ubuntu-2004 ubuntu-2204 debian-9 debian-10 centos-7 centos-8 opensuse-42 opensuse-15 opensuse-152 opensuse-153
|
||||||
SLS_BINARY ?= ./node_modules/serverless/bin/serverless
|
SLS_BINARY ?= ./node_modules/serverless/bin/serverless
|
||||||
|
|
||||||
deps:
|
deps:
|
||||||
|
|
|
||||||
23
builder/Dockerfile.ubuntu-2204
Normal file
23
builder/Dockerfile.ubuntu-2204
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
FROM ubuntu:jammy
|
||||||
|
|
||||||
|
ENV OS_IDENTIFIER ubuntu-2204
|
||||||
|
|
||||||
|
RUN set -x \
|
||||||
|
&& sed -i "s|# deb-src|deb-src|g" /etc/apt/sources.list \
|
||||||
|
&& export DEBIAN_FRONTEND=noninteractive \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get install -y libblas-dev libcurl4-openssl-dev libicu-dev liblapack-dev libpcre2-dev wget python3-pip ruby ruby-dev \
|
||||||
|
&& apt-get build-dep -y r-base
|
||||||
|
|
||||||
|
RUN pip3 install awscli
|
||||||
|
|
||||||
|
RUN gem install fpm
|
||||||
|
|
||||||
|
RUN chmod 0777 /opt
|
||||||
|
|
||||||
|
# Override the default pager used by R
|
||||||
|
ENV PAGER /usr/bin/pager
|
||||||
|
|
||||||
|
COPY package.ubuntu-2204 /package.sh
|
||||||
|
COPY build.sh .
|
||||||
|
ENTRYPOINT ./build.sh
|
||||||
|
|
@ -34,6 +34,17 @@ services:
|
||||||
image: r-builds:ubuntu-2004
|
image: r-builds:ubuntu-2004
|
||||||
volumes:
|
volumes:
|
||||||
- ./integration/tmp:/tmp/output
|
- ./integration/tmp:/tmp/output
|
||||||
|
ubuntu-2204:
|
||||||
|
command: ./build.sh
|
||||||
|
environment:
|
||||||
|
- R_VERSION=${R_VERSION}
|
||||||
|
- LOCAL_STORE=/tmp/output
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile.ubuntu-2204
|
||||||
|
image: r-builds:ubuntu-2204
|
||||||
|
volumes:
|
||||||
|
- ./integration/tmp:/tmp/output
|
||||||
debian-9:
|
debian-9:
|
||||||
command: ./build.sh
|
command: ./build.sh
|
||||||
environment:
|
environment:
|
||||||
|
|
@ -67,17 +78,17 @@ services:
|
||||||
image: r-builds:centos-7
|
image: r-builds:centos-7
|
||||||
volumes:
|
volumes:
|
||||||
- ./integration/tmp:/tmp/output
|
- ./integration/tmp:/tmp/output
|
||||||
centos-8:
|
# centos-8:
|
||||||
command: ./build.sh
|
# command: ./build.sh
|
||||||
environment:
|
# environment:
|
||||||
- R_VERSION=${R_VERSION}
|
# - R_VERSION=${R_VERSION}
|
||||||
- LOCAL_STORE=/tmp/output
|
# - LOCAL_STORE=/tmp/output
|
||||||
build:
|
# build:
|
||||||
context: .
|
# context: .
|
||||||
dockerfile: Dockerfile.centos-8
|
# dockerfile: Dockerfile.centos-8
|
||||||
image: r-builds:centos-8
|
# image: r-builds:centos-8
|
||||||
volumes:
|
# volumes:
|
||||||
- ./integration/tmp:/tmp/output
|
# - ./integration/tmp:/tmp/output
|
||||||
opensuse-42:
|
opensuse-42:
|
||||||
command: ./build.sh
|
command: ./build.sh
|
||||||
environment:
|
environment:
|
||||||
|
|
|
||||||
59
builder/package.ubuntu-2204
Normal file
59
builder/package.ubuntu-2204
Normal file
|
|
@ -0,0 +1,59 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ ! -d /tmp/output/ubuntu-2204 ]]; then
|
||||||
|
mkdir -p /tmp/output/ubuntu-2204
|
||||||
|
fi
|
||||||
|
|
||||||
|
# R 3.x requires PCRE1
|
||||||
|
pcre_lib='libpcre2-dev'
|
||||||
|
if [[ "${R_VERSION}" =~ ^3 ]]; then
|
||||||
|
pcre_lib='libpcre3-dev'
|
||||||
|
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/ubuntu-2204/ \
|
||||||
|
-d g++ \
|
||||||
|
-d gcc \
|
||||||
|
-d gfortran \
|
||||||
|
-d libbz2-dev \
|
||||||
|
-d libblas-dev \
|
||||||
|
-d libc6 \
|
||||||
|
-d libcairo2 \
|
||||||
|
-d libcurl4 \
|
||||||
|
-d libglib2.0-0 \
|
||||||
|
-d libgomp1 \
|
||||||
|
-d libicu-dev \
|
||||||
|
-d libjpeg8 \
|
||||||
|
-d liblapack-dev \
|
||||||
|
-d liblzma-dev \
|
||||||
|
-d libpango-1.0-0 \
|
||||||
|
-d libpangocairo-1.0-0 \
|
||||||
|
-d libpaper-utils \
|
||||||
|
-d ${pcre_lib} \
|
||||||
|
-d libpng16-16 \
|
||||||
|
-d libreadline8 \
|
||||||
|
-d libtcl8.6 \
|
||||||
|
-d libtiff5 \
|
||||||
|
-d libtk8.6 \
|
||||||
|
-d libx11-6 \
|
||||||
|
-d libxt6 \
|
||||||
|
-d make \
|
||||||
|
-d ucf \
|
||||||
|
-d unzip \
|
||||||
|
-d zip \
|
||||||
|
-d zlib1g-dev \
|
||||||
|
/opt/R/${R_VERSION}
|
||||||
|
|
||||||
|
shopt -s extglob
|
||||||
|
export PKG_FILE=$(ls /tmp/output/ubuntu-2204/[rR]-${R_VERSION}*.@(deb|rpm) | head -1)
|
||||||
|
|
@ -129,6 +129,7 @@ def queue_builds(event, context):
|
||||||
# zlib version fails to handle versions longer than 5 characters.
|
# zlib version fails to handle versions longer than 5 characters.
|
||||||
# Skip builds affected by this bug.
|
# Skip builds affected by this bug.
|
||||||
if platform in [
|
if platform in [
|
||||||
|
'ubuntu-2204',
|
||||||
'ubuntu-2004',
|
'ubuntu-2004',
|
||||||
'ubuntu-1804',
|
'ubuntu-1804',
|
||||||
'opensuse-15',
|
'opensuse-15',
|
||||||
|
|
|
||||||
|
|
@ -173,6 +173,20 @@ rBuildsBatchJobDefinitionUbuntu2004:
|
||||||
Image: "#{AWS::AccountId}.dkr.ecr.#{AWS::Region}.amazonaws.com/r-builds:ubuntu-2004"
|
Image: "#{AWS::AccountId}.dkr.ecr.#{AWS::Region}.amazonaws.com/r-builds:ubuntu-2004"
|
||||||
Timeout:
|
Timeout:
|
||||||
AttemptDurationSeconds: 7200
|
AttemptDurationSeconds: 7200
|
||||||
|
rBuildsBatchJobDefinitionUbuntu2204:
|
||||||
|
Type: AWS::Batch::JobDefinition
|
||||||
|
Properties:
|
||||||
|
Type: container
|
||||||
|
ContainerProperties:
|
||||||
|
Command:
|
||||||
|
- ./build.sh
|
||||||
|
Vcpus: 4
|
||||||
|
Memory: 4096
|
||||||
|
JobRoleArn:
|
||||||
|
"Fn::GetAtt": [ rBuildsEcsTaskIamRole, Arn ]
|
||||||
|
Image: "#{AWS::AccountId}.dkr.ecr.#{AWS::Region}.amazonaws.com/r-builds:ubuntu-2204"
|
||||||
|
Timeout:
|
||||||
|
AttemptDurationSeconds: 7200
|
||||||
rBuildsBatchJobDefinitionDebian9:
|
rBuildsBatchJobDefinitionDebian9:
|
||||||
Type: AWS::Batch::JobDefinition
|
Type: AWS::Batch::JobDefinition
|
||||||
Properties:
|
Properties:
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,8 @@ provider:
|
||||||
Ref: rBuildsBatchJobDefinitionUbuntu1804
|
Ref: rBuildsBatchJobDefinitionUbuntu1804
|
||||||
JOB_DEFINITION_ARN_ubuntu_2004:
|
JOB_DEFINITION_ARN_ubuntu_2004:
|
||||||
Ref: rBuildsBatchJobDefinitionUbuntu2004
|
Ref: rBuildsBatchJobDefinitionUbuntu2004
|
||||||
|
JOB_DEFINITION_ARN_ubuntu_2204:
|
||||||
|
Ref: rBuildsBatchJobDefinitionUbuntu2204
|
||||||
JOB_DEFINITION_ARN_debian_9:
|
JOB_DEFINITION_ARN_debian_9:
|
||||||
Ref: rBuildsBatchJobDefinitionDebian9
|
Ref: rBuildsBatchJobDefinitionDebian9
|
||||||
JOB_DEFINITION_ARN_debian_10:
|
JOB_DEFINITION_ARN_debian_10:
|
||||||
|
|
@ -57,7 +59,7 @@ provider:
|
||||||
Ref: rBuildsBatchJobDefinitionOpensuse152
|
Ref: rBuildsBatchJobDefinitionOpensuse152
|
||||||
JOB_DEFINITION_ARN_opensuse_153:
|
JOB_DEFINITION_ARN_opensuse_153:
|
||||||
Ref: rBuildsBatchJobDefinitionOpensuse153
|
Ref: rBuildsBatchJobDefinitionOpensuse153
|
||||||
SUPPORTED_PLATFORMS: ubuntu-1604,ubuntu-1804,ubuntu-2004,debian-9,debian-10,centos-7,centos-8,opensuse-42,opensuse-15,opensuse-152,opensuse-153
|
SUPPORTED_PLATFORMS: ubuntu-1604,ubuntu-1804,ubuntu-2004,ubuntu-2204,debian-9,debian-10,centos-7,centos-8,opensuse-42,opensuse-15,opensuse-152,opensuse-153
|
||||||
|
|
||||||
functions:
|
functions:
|
||||||
queueBuilds:
|
queueBuilds:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue