Skip to content

Commit 57c6aad

Browse files
committed
first attempt at fixing broken backfill build
1 parent 16a2128 commit 57c6aad

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

backfill_corrections/Dockerfile

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,20 @@ ENV LD_LIBRARY_PATH $GUROBI_HOME/lib
1515
RUN ln -s -f /usr/share/zoneinfo/America/New_York /etc/localtime
1616

1717
RUN apt-get update && apt-get install -qq -y \
18-
libglpk-dev\
18+
libudunits2-dev \
19+
libgdal-dev \
20+
libgeos-dev \
21+
libproj-dev \
22+
libglpk-dev \
1923
python3-venv \
2024
python3-dev \
2125
python3-pip
2226

23-
RUN install2.r --error \
24-
roxygen2 \
25-
Rglpk \
26-
argparser
27-
27+
RUN R -e 'install.packages(c("pak", "rspm"))'
2828
RUN --mount=type=secret,id=GITHUB_TOKEN \
2929
export GITHUB_PAT="$(cat /run/secrets/GITHUB_TOKEN)" && \
30-
R -e 'devtools::install_version("bettermc", version = "1.1.2")' && \
31-
R -e 'devtools::install_github("cmu-delphi/covidcast", ref = "evalcast", subdir = "R-packages/evalcast")' && \
32-
R -e 'devtools::install_github(repo="ryantibs/quantgen", subdir="quantgen")' && \
33-
R -e 'install.packages(list.files(path="/opt/gurobi/linux64/R/", pattern="^gurobi_.*[.]tar[.]gz$", full.names = TRUE), repos=NULL)'
30+
R -e 'rspm::enable(); pak::pkg_install(c("roxygen2", "Rglpk", "argparser", "gfkse/[email protected]", "cmu-delphi/covidcast/R-packages/evalcast@evalcast", "ryantibs/quantgen/quantgen"))'
31+
RUN R -e 'install.packages(list.files(path="/opt/gurobi/linux64/R/", pattern="^gurobi_.*[.]tar[.]gz$", full.names = TRUE), repos=NULL)'
3432

3533
WORKDIR /backfill_corrections/
3634
ADD ./delphiBackfillCorrection ./delphiBackfillCorrection/

0 commit comments

Comments
 (0)