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

Updates samples for run image extension #149

Merged
merged 12 commits into from
Jul 25, 2023
Merged

Conversation

natalieparellano
Copy link
Member

Branching off of other branch as this is dependent on that fix

Signed-off-by: Natalie Arellano <[email protected]>
- When switching the run image, include the registry context (if not Docker Hub)
- Verify that run image extensions are applied on top of the new run image

Signed-off-by: Natalie Arellano <[email protected]>
@natalieparellano natalieparellano changed the base branch from fix/override-alpine-builder to main July 7, 2023 19:15
@natalieparellano natalieparellano marked this pull request as ready for review July 7, 2023 19:15
@natalieparellano natalieparellano requested a review from a team as a code owner July 7, 2023 19:15
@natalieparellano
Copy link
Member Author

Please merge #142 first and the diff will be nicer

Copy link
Member

@AidanDelaney AidanDelaney left a comment

Choose a reason for hiding this comment

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

I have one nit-pick suggestion. Other than that, these are the examples we used in the KubeCon talk, and they work well.

extensions/cowsay/bin/generate Outdated Show resolved Hide resolved
@@ -0,0 +1,10 @@
# Buildpack API version
api = "0.10"
Copy link
Member

Choose a reason for hiding this comment

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

Requires #140 to update lifecycle.

@AidanDelaney
Copy link
Member

Currently blocked on #140

…implify cowsay extension

Signed-off-by: Natalie Arellano <[email protected]>
edmorley added a commit to heroku/libcnb.rs that referenced this pull request Jul 12, 2023
In CI a `pack build` is performed using one of libcnb's example CNBs
and the upstream `cnb/sample-builder:alpine` builder, in order to test
that our static MUSL compile works with non-libc base images.

However, CI has just started failing with:

```
ERROR: failed to build: experimental features must be enabled when builder contains image extensions
```
(https://github.com/heroku/libcnb.rs/actions/runs/5530837180/jobs/10090742723?pr=592#step:10:107)

This is due to the upstream images having been rebuilt with extension
support, which is an experimental feature until the next stable Pack CLI
release):
buildpacks/samples#149
buildpacks/samples#142

As such until Pack CLI v0.30 is released as stable, we'll have to pin
to an older `alpine` image by SHA256 ref.

GUS-W-13746154.
edmorley added a commit to heroku/libcnb.rs that referenced this pull request Jul 12, 2023
In CI a `pack build` is performed using one of libcnb's example CNBs
and the upstream `cnb/sample-builder:alpine` builder, in order to test
that our static MUSL compile works with non-libc base images.

However, CI has just started failing with:

```
ERROR: failed to build: experimental features must be enabled when builder contains image extensions
```
(https://github.com/heroku/libcnb.rs/actions/runs/5530837180/jobs/10090742723?pr=592#step:10:107)

This is due to the upstream images having been rebuilt with extension
support, which is an experimental feature until the next stable Pack CLI
release):
buildpacks/samples#149
buildpacks/samples#142

As such until Pack CLI v0.30 is released as stable, we'll have to pin
to an older `alpine` image by SHA256 ref.

GUS-W-13746154.
@AidanDelaney AidanDelaney merged commit 7c70979 into main Jul 25, 2023
@AidanDelaney AidanDelaney deleted the runext/update-samples branch July 25, 2023 16:44
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