osrf / docker_images

A repository to hold definitions of docker images maintained by OSRF
Apache License 2.0
550 stars 169 forks source link

[question] Base images on snapshots.ros.org? #297

Open mikaelarguedas opened 5 years ago

mikaelarguedas commented 5 years ago

There are now snapshots repositories providing ROS packages for every new sync (discourse announcement).

Characteristics of the snapshots repositories:

Docker images for EOL ROS distributions will be built once using the final snapshot and then be removed from the docker hub build farm.

This proposal is to evaluate the value of using those in the docker images of active ROS distributions:

Changes in the docker images if using the new repositories

Pros:

Cons:

@nuclearsandwich @tfoote is this description accurate?


@yosifkit @tianon Is this a pattern that has been seen / is acceptable for official docker images?

nuclearsandwich commented 5 years ago
* people using a ROS image after 6+ months without pulling a new version / updating the URL will not be able to install ROS packages (as the apt repo will not exist anymore)

We haven't done any removal of old snapshots yet. The six-month commitment is there to set a minimum bar while we try out hosting snapshots and gives us an out if hosting them becomes prohibitively expensive. I feel like a case could be made for extending the guarantee window from 6 to 12 months if that lessens this concern.

I think a more serious trade-off is that images based on snapshot repositories will not receive any package updates unless the repository configuration is updated. Now depending on your image build pipeline getting updates might not be nearly as important as getting a consistent and reproducible repository state but any team who is nursing a constructed base image rather than regenerating one periodically is going to be locked out of sync updates unless they know to update the snapshot repository.