Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use Posit Package Manager for faster binary installs in Docker #114

Closed
cjyetman opened this issue Feb 9, 2024 · 13 comments · Fixed by #214
Closed

use Posit Package Manager for faster binary installs in Docker #114

cjyetman opened this issue Feb 9, 2024 · 13 comments · Fixed by #214

Comments

@cjyetman
Copy link
Member

cjyetman commented Feb 9, 2024

Setting https://packagemanager.posit.co/cran/__linux__/focal/latest as the default CRAN repo will allow the R package installs in Docker to be much faster since it provides binaries for Linux.

⚠️ However, currently arm64 binaries are only available for Debian.

@cjyetman cjyetman added the Docker label Feb 9, 2024
@jdhoffa
Copy link
Member

jdhoffa commented Feb 9, 2024

Is this interesting also for https://github.com/RMI-PACTA/workflow.transition.monitor and friends?

@cjyetman
Copy link
Member Author

cjyetman commented Feb 9, 2024

already used in workflow.transition.monitor
https://github.com/RMI-PACTA/workflow.transition.monitor/blob/main/Dockerfile#L29-L30

@jdhoffa
Copy link
Member

jdhoffa commented Feb 9, 2024

Woops! Didn't even look, sorry

@cjyetman
Copy link
Member Author

tagging as blocked in consideration that #112 may soon be merged making this a non-optimal change

@AlexAxthelm
Copy link
Collaborator

the Rocker images are all Debian, aren't they?

@cjyetman
Copy link
Member Author

the Rocker images are all Debian, aren't they?

yes, you're right (I think)
https://rocker-project.org/images/

weird, I think I got confused because workflow.transition.monitor uses
https://github.com/RMI-PACTA/workflow.transition.monitor/blob/db0c750aee92d17ddc94a2762821ef4980d9f17e/Dockerfile#L29

ARG CRAN_REPO="https://packagemanager.posit.co/cran/__linux__/jammy/2023-10-30"

but also based on rocker 🤔

@AlexAxthelm
Copy link
Collaborator

I'm guessing they're calling it by the Ubuntu name 22.04 - Jammy Jellyfish, which is a derivative of Debian 11 (Bookworm).

@cjyetman
Copy link
Member Author

maybe, but it seems like https://packagemanager.posit.co/cran/__linux__/bookworm/latest would be a better option (which is an actual, legitimate option)

@AlexAxthelm
Copy link
Collaborator

Oh, I had it backwards. the R versioned stack (including r-ver) is based on ubuntu, but the r-base stack builds on debian.

https://rocker-project.org/images/

@cjyetman
Copy link
Member Author

the Rocker images are all Debian, aren't they?

yes, you're right (I think) https://rocker-project.org/images/

actually, it's mixed...

for rocker/r-ver and those that build on it...

This stack builds on stable Debian releases (for R versions <= 3.6.3) or Ubuntu LTS (for R versions >= 4.0.0).

for rocker/r-base and those that build on it...

This stack builds on debian:testing and Debian unstable repo. Use this stack if you want access to the latest versions of system libraries and compilers through apt-get.

@AlexAxthelm
Copy link
Collaborator

Different issue though, why are we using latest, rather than date pinning?

@cjyetman
Copy link
Member Author

Different issue though, why are we using latest, rather than date pinning?

🤷🏻 @jdhoffa created the Dockerfile in this repo

but to be fair... I am less concerned about package versions in this repo than I am in the TM repo

@jdhoffa
Copy link
Member

jdhoffa commented Feb 13, 2024

answer is: I made it latest and never changed it.

I see no problem with yall pinning it to whatever you wish :-)

cjyetman added a commit that referenced this issue Apr 5, 2024
cjyetman added a commit that referenced this issue Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants