Skip to content

Commit 99cc6aa

Browse files
committed
Update RApache for R-4.5
1 parent 616df92 commit 99cc6aa

File tree

5 files changed

+29
-15
lines changed

5 files changed

+29
-15
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Workaround for ubuntu-18
1+
# Parallel make does not work on Centos-7 /ubuntu-18
22
MAKEFLAGS = -j3
33

44
library:

docker/centos-7/Dockerfile

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,22 @@ FROM centos:centos7
33
ARG BRANCH=master
44
ARG RSTUDIO=2023.12.0-369
55

6-
# Enable EPEL
6+
# Enable Vault and install EPEL
77
RUN \
8-
yum install -y epel-release
8+
sed -i.bak 's@^mirrorlist@#mirrorlist@g' /etc/yum.repos.d/*.repo &&\
9+
sed -i.bak 's@#.*baseurl=http://mirror.centos.org@baseurl=http://vault.centos.org@g' /etc/yum.repos.d/*.repo &&\
10+
yum update -y &&\
11+
yum install -y epel-release centos-release-scl &&\
12+
sed -i.bak 's@^mirrorlist@#mirrorlist@g' /etc/yum.repos.d/*.repo &&\
13+
sed -i.bak 's@#.*baseurl=http://mirror.centos.org@baseurl=http://vault.centos.org@g' /etc/yum.repos.d/*.repo &&\
14+
yum install -y devtoolset-8 &&\
15+
rm -f /etc/yum.repos.d/*.bak
16+
17+
RUN \
18+
curl -fsSOL https://cdn.rstudio.com/r/centos-7/pkgs/R-4.5.0-1-1.x86_64.rpm &&\
19+
yum install -y R-4.5.0-1-1.x86_64.rpm
20+
21+
ENV PATH="/opt/rh/devtoolset-8/root/usr/bin/:/opt/R/4.5.0/bin:${PATH}"
922

1023
# Install.
1124
RUN \
@@ -15,6 +28,7 @@ RUN \
1528
yum install -y rpm-build make wget tar httpd-devel libapreq2-devel R-devel libcurl-devel protobuf-devel openssl-devel libxml2-devel libicu-devel libssh2-devel cairo-devel createrepo cmake && \
1629
yum clean all
1730

31+
1832
USER builder
1933

2034
RUN \
@@ -23,9 +37,9 @@ RUN \
2337

2438
RUN \
2539
cd ~ && \
26-
wget --quiet https://github.com/jeffreyhorner/rapache/archive/v1.2.9.tar.gz -O rapache-1.2.9.tar.gz && \
27-
tar xzvf rapache-1.2.9.tar.gz rapache-1.2.9/rpm/rapache.spec --strip-components 2 && \
28-
mv -f rapache-1.2.9.tar.gz ~/rpmbuild/SOURCES/ && \
40+
wget --quiet https://github.com/jeffreyhorner/rapache/archive/v1.2.11.tar.gz -O v1.2.11.tar.gz && \
41+
tar xzvf v1.2.11.tar.gz '*/rpm/rapache.spec' --strip-components 2 && \
42+
mv -f v1.2.11.tar.gz ~/rpmbuild/SOURCES/ && \
2943
mv -f rapache.spec ~/rpmbuild/SPECS/ && \
3044
rpmbuild -ba ~/rpmbuild/SPECS/rapache.spec
3145

docker/fedora/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ RUN \
1919

2020
RUN \
2121
cd ~ && \
22-
wget --quiet https://github.com/jeffreyhorner/rapache/archive/v1.2.9.tar.gz -O rapache-1.2.9.tar.gz && \
23-
tar xzvf rapache-1.2.9.tar.gz rapache-1.2.9/rpm/rapache.spec --strip-components 2 && \
24-
mv -f rapache-1.2.9.tar.gz ~/rpmbuild/SOURCES/ && \
22+
wget --quiet https://github.com/jeffreyhorner/rapache/archive/v1.2.11.tar.gz -O v1.2.11.tar.gz && \
23+
tar xzvf v1.2.11.tar.gz '*/rpm/rapache.spec' --strip-components 2 && \
24+
mv -f v1.2.11.tar.gz ~/rpmbuild/SOURCES/ && \
2525
mv -f rapache.spec ~/rpmbuild/SPECS/ && \
2626
rpmbuild -ba ~/rpmbuild/SPECS/rapache.spec
2727

docker/rocky-8/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ RUN \
2525

2626
RUN \
2727
cd ~ && \
28-
wget --quiet https://github.com/jeffreyhorner/rapache/archive/v1.2.9.tar.gz -O rapache-1.2.9.tar.gz && \
29-
tar xzvf rapache-1.2.9.tar.gz rapache-1.2.9/rpm/rapache.spec --strip-components 2 && \
30-
mv -f rapache-1.2.9.tar.gz ~/rpmbuild/SOURCES/ && \
28+
wget --quiet https://github.com/jeffreyhorner/rapache/archive/v1.2.11.tar.gz -O v1.2.11.tar.gz && \
29+
tar xzvf v1.2.11.tar.gz '*/rpm/rapache.spec' --strip-components 2 && \
30+
mv -f v1.2.11.tar.gz ~/rpmbuild/SOURCES/ && \
3131
mv -f rapache.spec ~/rpmbuild/SPECS/ && \
3232
rpmbuild -ba ~/rpmbuild/SPECS/rapache.spec
3333

docker/rocky-9/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ RUN \
2525

2626
RUN \
2727
cd ~ && \
28-
wget --quiet https://github.com/jeffreyhorner/rapache/archive/v1.2.9.tar.gz -O rapache-1.2.9.tar.gz && \
29-
tar xzvf rapache-1.2.9.tar.gz rapache-1.2.9/rpm/rapache.spec --strip-components 2 && \
30-
mv -f rapache-1.2.9.tar.gz ~/rpmbuild/SOURCES/ && \
28+
wget --quiet https://github.com/jeffreyhorner/rapache/archive/v1.2.11.tar.gz -O v1.2.11.tar.gz && \
29+
tar xzvf v1.2.11.tar.gz '*/rpm/rapache.spec' --strip-components 2 && \
30+
mv -f v1.2.11.tar.gz ~/rpmbuild/SOURCES/ && \
3131
mv -f rapache.spec ~/rpmbuild/SPECS/ && \
3232
rpmbuild -ba ~/rpmbuild/SPECS/rapache.spec
3333

0 commit comments

Comments
 (0)