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 encode -runtime into mixin download filename #272

Merged
merged 3 commits into from
Apr 17, 2019

Conversation

carolynvs
Copy link
Member

@carolynvs carolynvs commented Apr 15, 2019

Instead of requiring the runtime binary for the mixin to be uploaded as foo-runtime-linux-amd64, allow the client mixin for linux, which is foo-linux-amd64, to be reused as there is no difference.

This sets us up anyway for when porter needs to support a customizable runtime image that could be a different os/arch.

Note: This doesn't change the name of the file on the filesystem, just what we require the mixin author to upload it as.

  • Update da code
  • Update all da makefiles
    • generate filenames that match the new format in the porter repo
    • install using porter mixin install
    • consolidate targets for the internal / external mixins

After this PR, I'll update the azure, helm, and terraform repos, and then all of the mixins will have done a canary publish with the new naming conventiong

Instead of requiring the runtime binary for the mixin
to be uploaded as foo-runtime-linux-amd64, allow the client mixin
for linux, which is foo-linux-amd64, to be reused as there is
no difference.

This sets us up anyway for when porter needs to support a customizable
runtime image that could be a different os/arch.
@ghost ghost assigned carolynvs Apr 15, 2019
@ghost ghost added the review label Apr 15, 2019
@carolynvs carolynvs changed the title Do not encode -runtime into mixin download filename WIP: Do not encode -runtime into mixin download filename Apr 15, 2019
@carolynvs carolynvs changed the title WIP: Do not encode -runtime into mixin download filename Do not encode -runtime into mixin download filename Apr 16, 2019
@carolynvs carolynvs changed the title Do not encode -runtime into mixin download filename WIP: Do not encode -runtime into mixin download filename Apr 16, 2019
@carolynvs carolynvs force-pushed the runtime-download-name branch from 2bfba65 to 44df2fc Compare April 16, 2019 20:38
I took this opportunity to overhaul them makefiles with other changes:

* install using porter mixin install
* consolidate targets for the internal / external mixins
@carolynvs carolynvs force-pushed the runtime-download-name branch from 44df2fc to 950a4d6 Compare April 16, 2019 20:43
@carolynvs carolynvs changed the title WIP: Do not encode -runtime into mixin download filename Do not encode -runtime into mixin download filename Apr 16, 2019
@carolynvs
Copy link
Member Author

Ok, boy that was harder than I expected. Silly make. This is ready for review.

Copy link
Member

@vdice vdice left a comment

Choose a reason for hiding this comment

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

This is a great idea, both to simplify things and to pave the way for OS-specific runtimes down the line, as mentioned. LGTM.

Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@carolynvs carolynvs merged commit 2273ffd into getporter:master Apr 17, 2019
@ghost ghost removed the review label Apr 17, 2019
@carolynvs carolynvs deleted the runtime-download-name branch April 17, 2019 16:12
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.

3 participants