@@ -3,9 +3,22 @@ FROM centos:centos7
3
3
ARG BRANCH=master
4
4
ARG RSTUDIO=2023.12.0-369
5
5
6
- # Enable EPEL
6
+ # Enable Vault and install EPEL
7
7
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}"
9
22
10
23
# Install.
11
24
RUN \
15
28
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 && \
16
29
yum clean all
17
30
31
+
18
32
USER builder
19
33
20
34
RUN \
23
37
24
38
RUN \
25
39
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/ && \
29
43
mv -f rapache.spec ~/rpmbuild/SPECS/ && \
30
44
rpmbuild -ba ~/rpmbuild/SPECS/rapache.spec
31
45
0 commit comments