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 pin invocation image to a specific debian release #2745

Merged
merged 2 commits into from
Apr 24, 2023

Conversation

carolynvs
Copy link
Member

What does this change

Use stable instead of a specific debian release, so that when the release is archived, we don't end up with an unbuildable bundle. If a user wants to pin to a base image, they should use a custom Dockerfile. Porter should default to a release (stable) that will always work, so that porter doesn't need to be recompiled or a new version installed because a debian release was archived.

What issue does it fix

Fixes #2744

Notes for the reviewer

N/A

Checklist

  • Did you write tests? No, existing tests are failing now, this fixes them.
  • Did you write documentation? Updated existing documentation
  • Did you change porter.yaml or a storage document record? Update the corresponding schema file.
  • If this is your first pull request, please add your name to the bottom of our Contributors list. Thank you for making Porter better! 🙇‍♀️

Reviewer Checklist

  • Comment with /azp run test-porter-release if a magefile or build script was modified
  • Comment with /azp run porter-integration if it's a non-trivial PR

Use stable instead of a specific debian release, so that when the release is archived, we don't end up with an unbuildable bundle. If a user wants to pin to a base image, they should use a custom Dockerfile. Porter should default to a release (stable) that will always work, so that porter doesn't need to be recompiled or a new version installed because a debian release was archived.

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
@carolynvs carolynvs marked this pull request as ready for review April 24, 2023 14:50
Copy link
Contributor

@arschles arschles left a comment

Choose a reason for hiding this comment

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

I saw the changes to docs that go from Go vsn. 11 (using the "11-stretch base Docker image) to 19. Do the vsn. 19 base images have tags that let you specify a base OS?

Anyway, LGTM. If there's anything to do there, it could be done in a follow-up.

@carolynvs
Copy link
Member Author

@arschles We don't need a specific base distribution for those tutorials, so I'm not sure why that documentation ever pointed to go 1.11 stretch specifically, vs just the go version.

Honestly I just updated them so that if someone did a google search, they wouldn't find stuff that absolutely doesn't work anymore (stretch). But the tutorials aren't used or linked to and are kind of just around in case we reboot doing workshops about porter at conferences.

@arschles
Copy link
Contributor

arschles commented Apr 24, 2023

How about just using the latest base image then?

@carolynvs
Copy link
Member Author

Yes, learn from your mistakes Carolyn. Don't pin stuff that doesn't need to be pinned. 😅 Fixing...

Update the Porter workshop images to use golang:latest so that we don't need to keep updating it when it works just fine with any version of Go.

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
@carolynvs carolynvs merged commit 343ad5f into getporter:main Apr 24, 2023
@carolynvs carolynvs deleted the bump-image-distro branch April 24, 2023 17:04
bdegeeter pushed a commit to bdegeeter/porter that referenced this pull request May 11, 2023
)

* Do not pin invocation image to a specific debian release

Use stable instead of a specific debian release, so that when the release is archived, we don't end up with an unbuildable bundle. If a user wants to pin to a base image, they should use a custom Dockerfile. Porter should default to a release (stable) that will always work, so that porter doesn't need to be recompiled or a new version installed because a debian release was archived.

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>

* Use golang:latest for our (defunct) developer workshop

Update the Porter workshop images to use golang:latest so that we don't need to keep updating it when it works just fine with any version of Go.

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>

---------

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
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.

Porter should not pin to debian stretch
2 participants