-
Notifications
You must be signed in to change notification settings - Fork 169
How to update package versions? #137
Comments
Err, asking that is rocker-versioned is weird. Aren't those supposed to be frozen and versioned? |
Yes. But what if a user happens to want to update the packages that they are using? Context: I'm using a docker image that builds FROM rocker/geospatial: https://github.com/Robinlovelace/geocompr/blob/master/Dockerfile Would I be better building from a non-versioned version of rocker/geospatial? Please point me to the non versioned one if so (I imagine there's a tag that I missed). |
Happy to ask this elsewhere. I think that the most frequently downloaded rocker images are versioned though, and that others will have that question. Hence asking, and tentatively answering, it here. From your perspective it's probably more about documentation - only a few people know that the repos info is stored in |
I think this would be the best place for such information: https://www.rocker-project.org/use/managing_containers/ Happy to put in a PR adding details on how packages are pinned. |
@Robinlovelace Thanks, yup that works, and documentation PR to the website would be great (sources here https://github.com/rocker-org/website) (it's just a hugo / blogdown site, so hopefully somewhat intuitive what to edit but ping me otherwise). For some context, there's really two different workflows in mind here, and it might be helpful if we spelled those out more explicitly too. The way things are currently setup, the idea is basically to treat the container as a transient -- i.e. you do a fresh But as you outline, this setup is not convenient for a less transient workflow, where you pull the image once, and then maybe customize it from there with new packages and new users, and want to keep updating software. In that scenario, ditching the MRAN pinning as you outline above often makes sense. Thanks as always, your feedback and sharing are a big help to the community! |
Hi @cboettig sorry it's been a while. Before suggesting any changes to docs, want to make sure I get it right. Do you know a better way of changing the default by updating the repos (3 times in on Rprofile.site I believe!)?: https://github.com/Robinlovelace/geocompr/pull/428/files Cheers |
Yeah, I think I have it in twice in the |
See proposed fix. Suggest linking to an existing Dockerfile that builds on your images, e.g. https://github.com/Robinlovelace/geocompr/blob/master/Dockerfile But wanted to keep changes in that commit to a minimum. |
Dunno. That gets subjective quickly. We too derive from our own containers, this is very central to how Docker works. You could argue our own containers already do that. But whatevs. (Minor nit: |
Happy for major/rewrites of my suggested updated documentation. Sure some will find it useful. Good point re installGithub.r. |
The PR is nice. I am unsure if / how this can be answered generically ... in a way that is not already covered by standard Docker documentation. As in "start with FROM, add RUN commands as you need them, ...". |
Possibly the most useful part of the PR is a link to the |
This is a question I asked in a different thread that got a great answer that answers it for a single user: rocker-org/geospatial#20 (comment)
I'm opening this as a separate issue here as I imagine it's an issue that many people face: you start using an image, you install some additional things on it and get some users, and then they ask why all the pkgs are out of date!
I found a solution to the that works for all users I believe. Why open an issue if it's solved? I think this could be better documented: I've had a good read and cannot find these instructions in any of the places I looked. In any case here's how I solved it (assuming this is a good way, let me know if not):
To 'unpin' packages so you get the latest versions of everything, across all users, you can do the following:
Happy it works on my tests, so wanting to share the knowledge.
The text was updated successfully, but these errors were encountered: