From d4e7c82a2b45457c11a64851a9bda913403b79e3 Mon Sep 17 00:00:00 2001 From: Friedemann Date: Fri, 12 Jan 2024 15:42:22 +0000 Subject: [PATCH] init --- arm64-docker/install_dependencies.sh | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 arm64-docker/install_dependencies.sh diff --git a/arm64-docker/install_dependencies.sh b/arm64-docker/install_dependencies.sh new file mode 100644 index 0000000..cec46ef --- /dev/null +++ b/arm64-docker/install_dependencies.sh @@ -0,0 +1,39 @@ +#!/bin/bash +set -e + +SHINY_SERVER_VERSION=${1:-${SHINY_SERVER_VERSION:-latest}} + +## build ARGs +NCPUS=${NCPUS:--1} + +# a function to install apt packages only if they are not installed +function apt_install() { + if ! dpkg -s "$@" >/dev/null 2>&1; then + if [ "$(find /var/lib/apt/lists/* | wc -l)" = "0" ]; then + apt-get update + fi + apt-get install -y --no-install-recommends "$@" + fi +} + + +apt_install \ + git \ + xz-utils \ + cmake \ + g++ \ + sudo \ + gcc \ + gdebi-core \ + lsb-release \ + libcurl4-openssl-dev \ + libcairo2-dev \ + libxt-dev \ + xtail \ + wget + +# Run dependency scripts +# /rocker_scripts/install_s6init.sh +/rocker_scripts/install_pandoc.sh + +# install2.r --error --skipinstalled shiny rmarkdown \ No newline at end of file