Skip to content

Commit

Permalink
fix platform and add repos to run stage
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Aug 2, 2024
1 parent c8d49cd commit d81f48a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
# Run package checks
docker run --rm \
--platform "linux-${{ matrix.config.arch }}" \
--platform "linux/${{ matrix.config.arch }}" \
-e _R_CHECK_FORCE_SUGGESTS_=false \
-e _R_CHECK_CRAN_INCOMING_=false \
-v $(pwd):/workspace -w /workspace \
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ RUN Rscript -e "ref <- Sys.getenv('GIT_COMMIT_ID_ABBREV', unset = Sys.getenv('GI


FROM docker.io/rocker/rstudio:4.4.1
#

RUN Rscript -e "if (Sys.getenv('ARCH')=='arm64') {options('repos'=c(RHUB='https://raw.githubusercontent.com/r-hub/repos/main/ubuntu-22.04-aarch64/4.4', \
CRAN='https://cloud.r-project.org'))} else { \
options('repos'='https://p3m.dev/cran/__linux__/jammy/latest')
COPY --from=build /usr/local/lib/python3.10/dist-packages /usr/local/lib/python3.10/dist-packages
COPY --from=build /database_drivers /database_drivers
COPY --from=build /usr/local/lib/R/site-library /usr/local/lib/R/site-library
Expand Down

0 comments on commit d81f48a

Please sign in to comment.