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

Install git-lfs in space_robots image for cloning the simulation repo #194

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

eholum
Copy link
Contributor

@eholum eholum commented Sep 29, 2024

Resolves #193

Needed post space-ros/simulation#27.

@eholum eholum marked this pull request as ready for review September 29, 2024 23:25
@eholum eholum self-assigned this Sep 29, 2024
@xfiderek
Copy link
Contributor

xfiderek commented Oct 1, 2024

Just one idea to brainstorm: from what I can see, vcs import fails silently when lfs is missing, i.e. it does not print any warning that git-lfs is not installed. for that reason, maybe it makes sense to include git-lfs in the base space-ros docker image, to make it easier to clone simulation assets in any project without running into silent errors. What do you think?

Copy link

@asimonov asimonov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great work, I think it should be fine.

one question though... does vcstool deal with LFS repos without any extra modifications required? simulation repo is imported here:

https://github.com/space-ros/docker/blob/main/space_robots/Dockerfile#L86

@eholum
Copy link
Contributor Author

eholum commented Oct 1, 2024

maybe it makes sense to include git-lfs in the base space-ros docker image

Ah, I do like the idea. Though I think the goal should be to actively discourage doing any kind of cloning during builds of a docker image. Ideally the workspace setup happens outside of the container, or at least in a disposable layer that we copy out of. We have some open tasks there iirc.

@eholum eholum merged commit 588d5a9 into main Oct 1, 2024
4 checks passed
@asimonov
Copy link

asimonov commented Oct 2, 2024

Just one idea to brainstorm: from what I can see, vcs import fails silently when lfs is missing, i.e. it does not print any warning that git-lfs is not installed. for that reason, maybe it makes sense to include git-lfs in the base space-ros docker image, to make it easier to clone simulation assets in any project without running into silent errors. What do you think?

i support this idea. now that some parts of bigger project depend on git-lfs it is better to include it in base image. it is not that big. but will save time of contributors trying to figure out what does not work and how to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Install git-lfs in space robots image to support simulation repo
4 participants