space-ros / docker

Docker images to facilitate Docker-based development.
15 stars 12 forks source link

Ensure that Earthly pulls latest changes when spaceros repos are updated (#134). #135

Closed xfiderek closed 4 months ago

xfiderek commented 4 months ago

This commit addresses https://github.com/space-ros/docker/issues/134 and adds description of intermediate earthly tasks to the readme.

Solution description

To make sure that changes to unpinned versions are reflected in docker image during subsequent builds, we need to create exact.repos file containing pinned package versions. This adds about 1-2 minutes to the build time. I have verified that when no new commits are added to downstream repos, then earthly re-uses cache. Conversely it pulls new changes when they are available and re-builds the workspace.

xfiderek commented 4 months ago

Note that space_nav2 fails also on main, so it is unrelated to this PR