Quieter R builds

We redirect stdout (not stderr) of apt-get update and install
in most other places (check out base.py) to not clutter the
output
pull/1103/head
YuviPanda 2021-12-16 12:29:27 +05:30
rodzic 00769c0fb2
commit 2f1fc81dff
2 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -29,8 +29,8 @@ def rstudio_base_scripts():
r"""
curl --silent --location --fail {rstudio_url} > /tmp/rstudio.deb && \
echo '{rstudio_checksum} /tmp/rstudio.deb' | md5sum -c - && \
apt-get update && \
apt install -y /tmp/rstudio.deb && \
apt-get update > /dev/null && \
apt install -y /tmp/rstudio.deb > /dev/null && \
rm /tmp/rstudio.deb && \
apt-get -qq purge && \
apt-get -qq clean && \
@ -45,7 +45,7 @@ def rstudio_base_scripts():
r"""
curl --silent --location --fail {url} > {deb} && \
echo '{checksum} {deb}' | md5sum -c - && \
dpkg -i {deb} && \
dpkg -i {deb} > /dev/null && \
rm {deb}
""".format(
url=SHINY_URL, checksum=SHINY_CHECKSUM, deb="/tmp/shiny.deb"

Wyświetl plik

@ -258,11 +258,11 @@ class RBuildPack(PythonBuildPack):
(
"root",
r"""
apt-get update && \
apt-get update > /dev/null && \
apt-get install --yes r-base={R_version} \
r-base-dev={R_version} \
r-recommended={R_version} \
libclang-dev && \
libclang-dev > /dev/null && \
apt-get -qq purge && \
apt-get -qq clean && \
rm -rf /var/lib/apt/lists/*