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

Do not copy extra junk when installing dev build of porter #1547

Merged
merged 2 commits into from
Apr 27, 2021

Conversation

carolynvs
Copy link
Member

What does this change

The install target is a bit lazy and copies everything in certain directories. This results in files that do not need to be installed
copied into PORTER_HOME. For example, the release directories (dev, latest, tagged) for the exec mixin.

The extra binaries are a problem because it seriously bloats invocation images built on a dev machine.

This moves the logic to our magefile, and is more explicit about what we want to copy.

What issue does it fix

My chonky invocation images

Notes for the reviewer

I'm considering a follow-up that makes porter more selective when copying files into the invocation image, e.g. only the runtimes and not blanket copying the entire mixin directory for each mixin.

Checklist

  • Unit Tests
  • Documentation
  • Schema (porter.yaml)

The install target is a bit lazy and copies everything in certain
directories. This results in files that do not need to be installed
copied into PORTER_HOME. For example, the release directories (dev,
latest, tagged) for the exec mixin.

The extra binaries are a problem because it seriously bloats invocation
images built on a dev machine.

This moves the logic to our magefile, and is more explicit about what we
want to copy.

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
When running porter from the bin directory, PORTER_HOME must be set.
Otherwise Porter will use ~/.porter

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
@carolynvs carolynvs changed the title Do not copy extra junk when installing porter Do not copy extra junk when installing dev build of porter Apr 27, 2021
@carolynvs carolynvs marked this pull request as ready for review April 27, 2021 14:07
@carolynvs carolynvs added this to In Progress in Porter and Mixins via automation Apr 27, 2021
@carolynvs carolynvs merged commit 7890a7e into getporter:main Apr 27, 2021
Porter and Mixins automation moved this from In Progress to Done Apr 27, 2021
@carolynvs carolynvs deleted the fix-install-mixins branch April 27, 2021 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants