Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Packaged runtime image should not install build tools/dependencies #263

Open
1 task
emersonknapp opened this issue Sep 24, 2020 · 0 comments
Open
1 task
Labels
enhancement New feature or request

Comments

@emersonknapp
Copy link
Contributor

Description

The runtime image created by PackageRuntimeImageStage currently uses the build/sysroot environment as the base layer. This means that the build tools and build dependencies are installed in this runtime, taking up extra space that is not needed when deploying the built application.

Related Issues

N/A

Completion Criteria

  • Runtime image only has runtime dependencies and the build, with no extraneous installed software

Implementation Notes / Suggestions

This will likely need to be implemented as two independent upgrades

  1. Separate out the "sysroot" environment from the "build" environment, use the sysroot for the runtime base
  2. Figure out how to only collect/install run_depends in the rosdep collection to create an even more minimal sysroot. Currently running rosdep install does not differentiate between the types of dependencies

Testing Notes / Suggestions

This will be an optimization, we can view the uploaded metrics (via Action artifacts) to see if an implementation makes the size of the runtime image decrease over the baseline value on master. This probably does not require a dedicated automated test.

@emersonknapp emersonknapp added the enhancement New feature or request label Sep 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant