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

Bundle lifecycle with samples builder #151

Closed
wants to merge 4 commits into from
Closed

Conversation

AidanDelaney
Copy link
Member

Use the latest lifecycle and bundle it with the builder

@AidanDelaney AidanDelaney requested a review from a team as a code owner April 8, 2023 16:20
export JAVA_HOME=${jdk_layer_dir}
mkdir -p ${jdk_layer_dir}/exec.d
cat > "${jdk_layer_dir}/exec.d/jdk.sh" << EOF
echo JAVA_HOME=${jdk_layer_dir}
Copy link
Member

Choose a reason for hiding this comment

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

Why has this been changed to echo?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because the spec states that env vars should be output as key-value pairs -- https://github.com/buildpacks/spec/blob/main/buildpack.md#execd and https://github.com/buildpacks/spec/blob/main/buildpack.md#execd-output-toml. What was missing is a redirection to "FD 3".

Copy link
Member

Choose a reason for hiding this comment

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

I still don't see the redirection to fd3?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's in 5b94deb . I think this is GH being slow to update.

@AidanDelaney
Copy link
Member Author

The CircleCI workflow uses the last released builder. This means that it does not run the workflow using changes in the PR'ed builder. I'm not sure of the value of this workflow.

Use the latest lifecycle and bundle it with the builder

Signed-off-by: Aidan Delaney <[email protected]>
Convert from profile.d to exec.d

Signed-off-by: Aidan Delaney <[email protected]>
Show the value of JAVA_HOME for debugging purposes

Signed-off-by: Aidan Delaney <[email protected]>
Release a new version of the java-maven buildpack to force any
consumers of our builder to pull the latest buildpack.

Signed-off-by: Aidan Delaney <[email protected]>
@AidanDelaney
Copy link
Member Author

We made most of these changes in #140. Making the profile.d -> exec.d changes in a separate PR.

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