Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 02b21ab

Browse files
committed
Fix permissions
1 parent 35c0838 commit 02b21ab

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ci/docker/install/ubuntu_r.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt/sources.
3131

3232
apt-key add r.gpg
3333

34+
# We have to install some dependencies during runtime - if somebody knows a better solution,
35+
# please don't hesitate to replace this!
36+
# This script is supposed to only be run within Docker, so this should be "safe" to do.
37+
mkdir -p /usr/local/lib/R/site-library
38+
chmod 777 /usr/local/lib/R/site-library
39+
3440
# Installing the latest version (3.3+) that is compatible with MXNet
3541
add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'
3642

ci/docker/runtime_functions.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,7 @@ unittest_ubuntu_cpu_R() {
883883
mkdir -p /tmp/r-site-library
884884
# build R packages in parallel
885885
mkdir -p ~/.R/
886+
build_ccache_wrappers
886887
echo "MAKEFLAGS = -j"$(nproc) > ~/.R/Makevars
887888
# make -j not supported
888889
make rpkg \
@@ -898,6 +899,7 @@ unittest_ubuntu_gpu_R() {
898899
mkdir -p /tmp/r-site-library
899900
# build R packages in parallel
900901
mkdir -p ~/.R/
902+
build_ccache_wrappers
901903
echo "MAKEFLAGS = -j"$(nproc) > ~/.R/Makevars
902904
# make -j not supported
903905
make rpkg \

0 commit comments

Comments
 (0)