Skip to content

Commit

Permalink
update R version to 4.4.1, renv to 1.07, and renv dependencies (#59)
Browse files Browse the repository at this point in the history
* Update R version to 4.4.1, renv to 1.0.7 and renv dependencies.

* upgrade degauss version

---------

Co-authored-by: Jerry Xiong <[email protected]>
  • Loading branch information
cole-brokamp and Jerry Xiong authored Aug 26, 2024
1 parent f68a7c6 commit 9fab80e
Show file tree
Hide file tree
Showing 2 changed files with 268 additions and 190 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM rocker/r-ver:4.1.2
FROM rocker/r-ver:4.4.1

# DeGAUSS container metadata
ENV degauss_name="geocoder"
ENV degauss_version="3.3.0"
ENV degauss_version="3.4.0"
ENV degauss_description="geocodes"
ENV degauss_argument="valid_geocode_score_threshold [default: 0.5]"

Expand All @@ -28,6 +28,7 @@ RUN apt-get update && apt-get install -y \
bison \
gnupg \
software-properties-common \
pkg-config\
&& apt-get clean

RUN gem install sqlite3 json Text
Expand All @@ -46,11 +47,11 @@ RUN make -f Makefile.ruby install \
WORKDIR /app

# install required version of renv
RUN R --quiet -e "install.packages('remotes', repos = 'https://packagemanager.rstudio.com/all/__linux__/focal/latest')"
RUN R --quiet -e "remotes::install_github('rstudio/renv@0.15.4')"
RUN R --quiet -e "install.packages('remotes', repos = c(CRAN = 'https://packagemanager.posit.co/cran/latest'))"
RUN R --quiet -e "remotes::install_github('rstudio/renv@v1.0.7')"

COPY renv.lock .
RUN R --quiet -e "renv::restore()"
RUN R --quiet -e "renv::restore(repos = c(CRAN = 'https://packagemanager.posit.co/cran/latest'))"

COPY geocode.rb .
COPY entrypoint.R .
Expand Down
Loading

0 comments on commit 9fab80e

Please sign in to comment.