Skip to content

Commit

Permalink
rstudio - add list of r packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jwijffels committed Dec 15, 2024
1 parent 72a7059 commit 8ea9caf
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
## CHANGELOG

### Release 0.1.1

- blackbar-rstudio:
- add pkg-config, cmake
- added RETICULATE_PYTHON environment variable
- remove python3.10-tk and python3.10-distutils
- added pip
- added R packages
- 'curl', 'openssl', 'remotes', 'httr'
- 'jsonlite', 'yaml', 'zip', 'data.table', 'rcpp', 'reticulate'
- 'shiny', 'knitr', 'htmltools', 'rmarkdown', 'shinydashboard', 'flexdashboard', 'bslib', 'fontawesome', 'sass', 'farver', 'DT'

### Release 0.1

- blackbar-base: image based on prefecthq/prefect, version 2.15.0-python3.10 which is based on Ubuntu 20.04
Expand Down
19 changes: 13 additions & 6 deletions development/rstudio/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ RUN apt-get update \
curl \
bash \
git \
pkg-config \
software-properties-common \
cmake \
&& rm -rf /var/lib/apt/lists/*

##
Expand All @@ -31,22 +34,26 @@ RUN wget https://github.com/intersystems-community/iris-driver-distribution/raw/
## Install Python 3.10 and Python package dependencies
##
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
software-properties-common pkg-config cmake \
&& rm -rf /var/lib/apt/lists/*
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
python3.10 python3.10-dev python3.10-tk python3.10-distutils \
python3.10 python3.10-dev \
&& rm -rf /var/lib/apt/lists/*

RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 && update-alternatives --config python3
COPY requirements.txt .
#RUN python3.10 -m pip install --no-cache-dir -r requirements.txt
#RUN python3 -m pip install --no-cache-dir -r requirements.txt
#RUN python3 -m pip install --no-cache-dir -r requirements.txt
RUN uv pip install --system --no-cache-dir -r requirements.txt
RUN uv pip install --system pip

##
## Default R packages
##
ENV RETICULATE_PYTHON="/usr/bin/python3"
RUN Rscript -e "install.packages(c('curl', 'openssl', 'remotes', 'httr'), clean = TRUE)"
RUN Rscript -e "install.packages(c('jsonlite', 'yaml', 'zip', 'data.table', 'rcpp', 'reticulate'), clean = TRUE)"
RUN Rscript -e "install.packages(c('shiny', 'knitr', 'htmltools', 'rmarkdown', 'shinydashboard', 'flexdashboard', 'bslib', 'fontawesome', 'sass', 'farver', 'DT'), clean = TRUE)"

##
## Rstudio initializations
Expand Down

0 comments on commit 8ea9caf

Please # to comment.