Skip to content

Commit

Permalink
Trying to set github pat as env within achilles dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
alondhe committed Jan 4, 2024
1 parent 00df003 commit 5e02356
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions achilles/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM docker.io/rocker/r-ver:4.2.3
ARG ACHILLES_GITHUB_REF=main

RUN echo 'GITHUB_PAT=' /run/secrets/GITHUB_PAT >> /root/.Renviron
#RUN echo 'GITHUB_PAT=' /run/secrets/GITHUB_PAT >> /root/.Renviron

RUN GITHUB_PAT=$(cat /run/secrets/GITHUB_PAT)

RUN <<EOF
apt-get update
Expand All @@ -19,4 +20,4 @@ install2.r --error --ncpus 2 \
R CMD javareconf
EOF

RUN R -e "remotes::install_github(repo = 'OHDSI/Achilles', ref = '${ACHILLES_GITHUB_REF}')"
RUN R -e "remotes::install_github(repo = 'OHDSI/Achilles')"

0 comments on commit 5e02356

Please sign in to comment.