Skip to content

Commit

Permalink
feat: use conda to manage exact package versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Oct 17, 2023
1 parent 4eb00b3 commit a9bd705
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 29 deletions.
10 changes: 4 additions & 6 deletions docker/spacesavers2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ ENV BUILD_TAG=${BUILD_TAG}
ARG REPONAME="000000"
ENV REPONAME=${REPONAME}

# install pandoc
RUN mamba install pandoc

# install R packages
COPY r-packages.txt /data2/
RUN R -e 'install.packages(readLines("r-packages.txt"), repos="http://cran.us.r-project.org")'
# install pandoc & R packages
COPY environment.txt /data/2
RUN mamba install -c conda-forge -c r --file environment.txt
ENV R_LIBS_USER=/opt2/conda/lib/R/library/

# install quarto
ENV QUARTO_VERSION="1.3.450"
Expand Down
26 changes: 26 additions & 0 deletions docker/spacesavers2/environment.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
quarto
pandoc
r-base=4.3.1
r-DT
r-RColorBrewer
r-bslib=0.5.1
r-crosstalk
r-downlit
r-dplyr
r-ggplot2
r-glue
r-here
r-janitor
r-knitr
r-lubridate
r-plotly
r-purrr
r-readr
r-rlang
r-rmarkdown
r-scales
r-shiny
r-stringr
r-tibble
r-tidyr
r-xml2
23 changes: 0 additions & 23 deletions docker/spacesavers2/r-packages.txt

This file was deleted.

0 comments on commit a9bd705

Please sign in to comment.