Skip to content

Commit e0aea8b

Browse files
authored
Merge pull request #197 from r-devel/dockerfile/arm64
use ppa:marutter/rrutter4.0 as base R repository
2 parents ae68732 + a794b17 commit e0aea8b

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

.gitpod.Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,18 @@ RUN if [ "${REINSTALL_CMAKE_VERSION_FROM_SOURCE}" != "none" ]; then \
1313
&& rm -f /tmp/reinstall-cmake.sh
1414

1515
RUN sed -i.bak "/^#.*deb-src.*universe$/s/^# //g" /etc/apt/sources.list \
16-
&& echo "deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/" >> /etc/apt/sources.list \
16+
&& apt -y update \
17+
&& apt install -y --no-install-recommends \
18+
software-properties-common \
19+
subversion \
20+
valgrind \
21+
&& add-apt-repository --enable-source --yes "ppa:marutter/rrutter4.0" \
1722
&& wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc \
18-
&& apt update \
19-
&& apt -y install subversion \
2023
&& apt -y build-dep r-base-dev \
2124
&& apt -y install r-base-dev \
22-
&& apt -y install valgrind \
2325
&& Rscript -e "install.packages('languageserver', repos='https://cran.rstudio.com')" \
24-
&& Rscript -e "install.packages('httpgd', repos='https://cran.rstudio.com')"
26+
&& Rscript -e "install.packages('httpgd', repos='https://cran.rstudio.com')" \
27+
&& rm -rf /var/lib/apt/lists/*
2528

2629
RUN apt install -y shellcheck
2730
RUN apt install -y ccache

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@ RUN if [ "${REINSTALL_CMAKE_VERSION_FROM_SOURCE}" != "none" ]; then \
1111
&& rm -f /tmp/reinstall-cmake.sh
1212

1313
RUN sed -i.bak "/^#.*deb-src.*universe$/s/^# //g" /etc/apt/sources.list \
14-
&& echo "deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/" >> /etc/apt/sources.list \
14+
&& apt -y update \
15+
&& apt install -y --no-install-recommends \
16+
software-properties-common \
17+
subversion \
18+
&& add-apt-repository --enable-source --yes "ppa:marutter/rrutter4.0" \
1519
&& wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc \
16-
&& apt update \
17-
&& apt -y install subversion \
1820
&& apt -y build-dep r-base-dev \
1921
&& apt -y install r-base-dev \
2022
&& Rscript -e "install.packages('languageserver', repos='https://cran.rstudio.com')" \
21-
&& Rscript -e "install.packages('httpgd', repos='https://cran.rstudio.com')"
23+
&& Rscript -e "install.packages('httpgd', repos='https://cran.rstudio.com')" \
24+
&& rm -rf /var/lib/apt/lists/*
2225

2326
RUN apt install shellcheck
2427
RUN apt install -y ccache

0 commit comments

Comments
 (0)