Skip to content

Commit

Permalink
fix conda and indicate destination folder last slash
Browse files Browse the repository at this point in the history
  • Loading branch information
jrosell committed Feb 29, 2024
1 parent dcbbc54 commit e7c7dea
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/conda.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: conda R packages
name: Last version R packages using conda

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/renv.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Locked version R packages
name: Locked version R packages using renv

on:
push:
Expand Down
7 changes: 4 additions & 3 deletions conda.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
FROM python:3.12-slim-bookworm

RUN apt-get install -y wget && rm -rf /var/lib/apt/lists/* \
&& wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
RUN apt-get install -y wget && rm -rf /var/lib/apt/lists/*

RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh \
&& conda install r-base r-dplyr r-purrr r-purrr r-readr r-stringr r-ggplot2 r-janitor r-targets r-curl -y --quiet --channel=conda-forge

WORKDIR /workspace
COPY _targets.R functions.R /workspace
COPY _targets.R functions.R /workspace/

CMD R -e "sessionInfo(); \
list.files(); \
Expand Down
2 changes: 1 addition & 1 deletion pak.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WORKDIR /workspace

RUN R -e "install.packages('pak');pak::pak(c('dplyr', 'purrr', 'curl', 'readr', 'stringr', 'ggplot2', 'janitor', 'targets'))"

COPY _targets.R functions.R /workspace
COPY _targets.R functions.R /workspace/

CMD R -e "sessionInfo(); \
list.files(); \
Expand Down
2 changes: 1 addition & 1 deletion r2u.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WORKDIR /workspace

RUN R -e "install.packages(c('dplyr', 'purrr', 'curl', 'readr', 'stringr', 'ggplot2', 'janitor', 'targets'))"

COPY _targets.R functions.R /workspace
COPY _targets.R functions.R /workspace/

CMD R -e "sessionInfo(); \
list.files(); \
Expand Down
2 changes: 1 addition & 1 deletion renv.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN mkdir renv/cache
ENV RENV_PATHS_CACHE renv/cache
RUN R -e "renv::restore()"

COPY _targets.R functions.R /workspace
COPY _targets.R functions.R /workspace/

CMD R -e "sessionInfo(); \
list.files(); \
Expand Down

0 comments on commit e7c7dea

Please sign in to comment.