Skip to content

Commit

Permalink
Merge pull request #487 from eitsupi/use-scripts-on-other-images
Browse files Browse the repository at this point in the history
Make `install_quarto.sh` only install quarto cli (no R pakcages)
  • Loading branch information
eitsupi authored Jun 16, 2022
2 parents 81cbf6a + 011d985 commit d5e8891
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 15 deletions.
12 changes: 12 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# News

## 2022-06

### Changes in rocker_scripts

- `install_quarto.sh` was changed to not install R packages and only install quarto cli.
([#487](https://github.com/rocker-org/rocker-versioned2/pull/487))

### Changes in pre-built images

- New builds of `rocker/verse` and `rocker/ml-verse` for R >= 4.1.0 no longer install the quarto R package.
([#487](https://github.com/rocker-org/rocker-versioned2/pull/487))

## 2022-05

### Changes in rocker_scripts
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_julia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if [ "$ARCH_LONG" = "x86_64" ]; then
ARCH_SHORT="x64"
fi

apt_install wget
apt_install wget ca-certificates

install2.r --error --skipmissing --skipinstalled -n "$NCPUS" \
yaml \
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_pandoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function apt_install() {
fi
}

apt_install wget
apt_install wget ca-certificates

if [ -x "$(command -v pandoc)" ]; then
INSTALLED_PANDOC_VERSION=$(pandoc --version 2>/dev/null | head -n 1 | grep -oP '[\d\.]+$')
Expand Down
12 changes: 1 addition & 11 deletions scripts/install_quarto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function apt_install() {
fi
}

apt_install wget
apt_install wget ca-certificates

if [ -x "$(command -v quarto)" ]; then
INSTALLED_QUARTO_VERSION=$(quarto --version)
Expand Down Expand Up @@ -67,15 +67,5 @@ if [ "$QUARTO_VERSION" != "$INSTALLED_QUARTO_VERSION" ]; then

fi

# Install the quarto R package
install2.r --error --skipmissing --skipinstalled -n "$NCPUS" \
knitr \
quarto

# Clean up
rm -rf /var/lib/apt/lists/*
rm -rf /tmp/downloaded_packages

## Strip binary installed lybraries from RSPM
## https://github.com/rocker-org/rocker-versioned2/issues/340
strip /usr/local/lib/R/site-library/*/libs/*.so
1 change: 1 addition & 0 deletions scripts/install_rstudio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function apt_install() {
}

apt_install \
ca-certificates \
lsb-release \
file \
git \
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_s6init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fi

DOWNLOAD_FILE=s6-overlay-${ARCH}.tar.gz

apt_install wget
apt_install wget ca-certificates

## Set up S6 init system
if [ -f "/rocker_scripts/.s6_version" ] && [ "$S6_VERSION" = "$(cat /rocker_scripts/.s6_version)" ]; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_wgrib2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function apt_install() {
fi
}

apt_install wget
apt_install wget ca-certificates

cd /opt
wget https://www.ftp.cpc.ncep.noaa.gov/wd51we/wgrib2/wgrib2.tgz
Expand Down
6 changes: 6 additions & 0 deletions tests/rocker_scripts/matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@
"tag": "cuda11.1",
"script_name": "config_R_cuda.sh",
"script_arg": "none"
},
{
"base_image": "debian",
"tag": "stable-slim",
"script_name": "install_quarto.sh",
"script_arg": "none"
}
]
}

0 comments on commit d5e8891

Please sign in to comment.