Skip to content

Commit

Permalink
Install deps for acteng/netgen#24
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Oct 1, 2024
1 parent 9746d8c commit e251fea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion binder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FROM rocker/binder:4.3.1
RUN R -e "options(repos = c(geocompr = 'https://geocompr.r-universe.dev', CRAN = 'https://cloud.r-project.org')); install.packages('geocompkg')"
RUN R -e "remotes::install_github('geocompx/geocompkg', upgrade = TRUE)"
16 changes: 8 additions & 8 deletions rust/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM ghcr.io/geocompx/docker:suggests
# RUN --mount=type=secret,id=GITHUB_PAT \
# echo "GITHUB_PAT=$(cat /run/secrets/GITHUB_PAT)" > ~/.Renviron
# RUN R -e "remotes::install_github('geocompr/geocompkg', upgrade = TRUE, dependencies = TRUE, force = TRUE)"
# od2net R package: https://urban-analytics-technology-platform.github.io/od2net/r/
RUN R -e "remotes::install_github('Urban-Analytics-Technology-Platform/od2net', subdir = 'r', upgrade = TRUE, dependencies = TRUE)"
# acteng/netgen:
RUN R -e "remotes::install_github('acteng/netgen', upgrade = TRUE, dependencies = TRUE)"
# robinlovelace/simodels:
RUN R -e "remotes::install_github('robinlovelace/simodels', upgrade = TRUE, dependencies = TRUE)"

RUN curl https://sh.rustup.rs -sSf | sh -s -- -y \
&& export PATH="$HOME/.cargo/bin:$PATH" \
Expand All @@ -19,8 +22,5 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y \

# RUN R -e "remotes::install_github('geocompx/geocompkg', upgrade = TRUE, dependencies = TRUE)"
RUN chown -Rv rstudio /home/rstudio/geocompr
# Set RStudio preferences
# No inline code:
RUN echo '{' >> /etc/rstudio/rstudio-prefs.json
RUN echo ' "rmd_chunk_output_inline": false' >> /etc/rstudio/rstudio-prefs.json
RUN echo '}' >> /etc/rstudio/rstudio-prefs.json


0 comments on commit e251fea

Please sign in to comment.