Skip to content

[Enhancement] Dockerfile cleanup #226

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

Conversation

amarburg
Copy link
Collaborator

@amarburg amarburg commented Aug 8, 2024

Changes Made

An opinionated cleanup of the dockerfile. Includes:

At present, this PR will not build due to other issues (#220 #223 ). As this is an optimization, deal with this once the other issues have been resolved.

Associated Issues

n/a

Testing

None yet.

@amarburg amarburg force-pushed the feature/rosdep_all_repos branch from b5fdb27 to f99ca99 Compare August 8, 2024 16:05
- In the "ci" image:
    - Move the apt-get above the "copy" so changes to this repo don't break that cache
    - Only copy the */package.xml (requires recent "copy --parent" syntax) and blue.repos
    - vcs import blue.repos so we rosdep dependencies for those packages as well.

- In the "robot" image:
    - Move the gstreamer apt-get above the "copy" so it's cached

- Sort lists of packages for apt-get (https://docs.docker.com/build/building/best-practices/#sort-multi-line-arguments)
@amarburg amarburg force-pushed the feature/rosdep_all_repos branch from f99ca99 to 8af46fe Compare August 8, 2024 16:06
Copy link
Collaborator

@evan-palmer evan-palmer left a comment

Choose a reason for hiding this comment

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

Thanks for submitting this! I just have a couple of small comments. I saw that this was a draft after adding some comments, so I'll hold off on future reviews until it's ready for review.

Copy link

mergify bot commented Aug 8, 2024

This pull request is in conflict. Could you fix it @amarburg?

@amarburg
Copy link
Collaborator Author

FYI this PR has become a bit gnarly due to upstream changes. May be a hard push or a new PR in the future.

@amarburg amarburg closed this Aug 23, 2024
@amarburg amarburg deleted the feature/rosdep_all_repos branch August 23, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants