forked from rweekly/rweekly.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
29 additions
and
892 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,5 @@ | ||
INSTALL_ZSH=false | ||
INSTALL_FISH=true | ||
UPGRADE_PACKAGES=true | ||
RENV_PATHS_CACHE_HOST=/opt/local/renv/cache | ||
RENV_PATHS_CACHE_CONTAINER=/renv/cache | ||
RENV_PATHS_CACHE=/renv/cache | ||
USER=eric | ||
USERID=1000 | ||
GROUPID=1000 | ||
PASSWORD=1rstudio | ||
VOLUME_PATH=/home/eric/r_projects | ||
LOCAL_PORT=3955 | ||
QUARTO_VERSION=latest | ||
RSTUDIO_VERSION=2022.02.1-461 | ||
S6_VERSION=v1.21.7.0 | ||
COMPOSE_PROJECT_NAME=rweekly | ||
DISABLE_AUTH=true | ||
PASSWORD=rstudio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,13 @@ | ||
################################################################################################################### | ||
# Adapted from https://github.com/microsoft/vscode-dev-containers/blob/master/containers/r/.devcontainer/Dockerfile | ||
# licence: MIT | ||
################################################################################################################### | ||
FROM ghcr.io/rocker-org/devcontainer/tidyverse:4.2 | ||
|
||
FROM rocker/r-ver:4.1.3 | ||
# key dependencies for utilities | ||
RUN apt-get update -qq \ | ||
&& export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get -y install --no-install-recommends libxt6 curl python3-pip libsodium-dev imagemagick libmagick++-dev | ||
|
||
# Options for setup script | ||
ARG USERNAME | ||
ARG INSTALL_ZSH="false" | ||
ARG USER_UID="1000" | ||
ARG USER_GID="1000" | ||
ARG UPGRADE_PACKAGES="false" | ||
ARG INSTALL_OHMYZSH="false" | ||
ARG INSTALL_NONFREE="false" | ||
ARG QUARTO_VERSION=latest | ||
|
||
# key dependencies for certain R packages | ||
RUN apt-get update \ | ||
&& export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get -y install --no-install-recommends software-properties-common curl wget libssl-dev libxml2-dev libsodium-dev imagemagick libmagick++-dev libgit2-dev libssh2-1-dev zlib1g-dev librsvg2-dev libudunits2-dev libcurl4-openssl-dev python3-pip pandoc libzip-dev libfreetype6-dev libfontconfig1-dev tk libpq5 libxt6 openssh-client openssh-server \ | ||
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* | ||
|
||
COPY library-scripts/common-debian.sh /tmp/library-scripts/ | ||
RUN apt-get update && bash /tmp/library-scripts/common-debian.sh ${INSTALL_ZSH} ${USERNAME} ${USER_UID} ${USER_GID} ${UPGRADE_PACKAGES} ${INSTALL_OHMYZSH} ${INSTALL_NONFREE} | ||
|
||
# install R packages needed for VSCode interaction and package management | ||
RUN install2.r --error --skipinstalled --ncpus -4 languageserver renv remotes httpgd | ||
|
||
# install radian via python and pip3 | ||
RUN apt-get update \ | ||
&& export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get -y install --no-install-recommends python3-setuptools | ||
|
||
RUN pip3 install radian | ||
|
||
# install dot net core runtime for the R Tools plugin | ||
RUN wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O /tmp/packages-microsoft-prod.deb \ | ||
&& dpkg -i /tmp/packages-microsoft-prod.deb | ||
|
||
RUN apt-get update \ | ||
&& apt-get -y install --no-install-recommends apt-transport-https \ | ||
&& apt-get -y install --no-install-recommends dotnet-sdk-3.1 | ||
|
||
# ensure that the renv package cache env var is accessible in default R installation | ||
RUN echo "RENV_PATHS_CACHE=/renv/cache" >> /usr/local/lib/R/etc/Renviron | ||
|
||
# copy the modified .Rprofile template to the renv cache | ||
#COPY library-scripts/.Rprofile-vscode /renv/.Rprofile-vscode | ||
|
||
# [Optional] Uncomment this section to add Quarto to the container | ||
RUN /rocker_scripts/install_quarto.sh | ||
|
||
# [Optional] Uncomment this section to add Hugo to the container | ||
# Customize version number as appropriate | ||
#RUN curl -L https://github.com/gohugoio/hugo/releases/download/v0.87.0/hugo_extended_0.87.0_Linux-64bit.deb -o /tmp/hugo.deb | ||
#RUN apt-get -y install ./tmp/hugo.deb | ||
|
||
# [Optional] Uncomment this section to add addtional system dependencies needed for project | ||
# RUN apt-get update \ | ||
# && export DEBIAN_FRONTEND=noninteractive \ | ||
# && apt-get -y install --no-install-recommends ---packages list---- | ||
|
||
# [Optional] Uncomment this section for linking a local pusleaudio sound system on a linux host | ||
# to the container. | ||
#RUN apt-get update \ | ||
# && export DEBIAN_FRONTEND=noninteractive \ | ||
# && apt-get -y install --no-install-recommends libpulse0 libasound2 libasound2-plugins pulseaudio-utils | ||
|
||
# install obs-cli (Go version) | ||
# https://github.com/muesli/obs-cli/releases | ||
#ADD https://github.com/muesli/obs-cli/releases/download/v0.4.0/obs-cli_0.4.0_linux_x86_64.tar.gz /obs-cli-linux.tar.gz | ||
#RUN tar -zxvf obs-cli-linux.tar.gz | ||
#RUN cp /obs-cli /usr/local/bin/obs-cli | ||
#RUN chmod 755 /usr/local/bin/obs-cli | ||
|
||
# install obs-cli (Javascript version) | ||
# https://github.com/leafac/obs-cli/releases | ||
#ADD https://github.com/leafac/obs-cli/releases/download/v2.2.3/obs-cli-linux /usr/local/bin/obs-cli-js | ||
#RUN chmod 755 /usr/local/bin/obs-cli-js | ||
|
||
# [Optional] install additional R packages | ||
# install additional R packages | ||
RUN install2.r --error --skipinstalled --ncpus -4 tidyRSS pkgsearch lubridate dplyr rtweet readr longurl tidyr twitterwidget urltools | ||
|
||
RUN installGithub.r rweekly/rweekly.tools rweekly/rweekly.highlights | ||
|
||
# [Optional] Set the default user. Omit if you want to keep the default as root. | ||
USER $USERNAME | ||
USER rstudio |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.