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

Prevent buildpack inception style builds #24995

Merged
merged 1 commit into from
Apr 25, 2022

Conversation

iocanel
Copy link
Contributor

@iocanel iocanel commented Apr 19, 2022

Resolves: #23613

The pull request adds an environmental variable in the build, which when present prevents a nested build from taking place.

@quarkus-bot

This comment was marked as resolved.

@@ -42,6 +42,7 @@
public class BuildpackProcessor {

private static final Logger log = Logger.getLogger(BuildpackProcessor.class);
private static final String IN_BUILDPACK_BUILD = "IN_BUILDPACK_BUILD";
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it not make more sense to have an enabled field in BuildpackConfig?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think you are right, we should use real configuration properties.

I am learning towards reusing quarkus.container-image.build=false and quarkus.container-image.push=false as this does not require us to introduce new properties.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds reasonable

@gsmet gsmet changed the title Prevent buildpack inception style builds. Prevent buildpack inception style builds Apr 19, 2022
@iocanel iocanel force-pushed the issue23613-inception-style-buildpack branch from 951d9db to e79bfbe Compare April 22, 2022 07:27
@iocanel iocanel force-pushed the issue23613-inception-style-buildpack branch from e79bfbe to f167a85 Compare April 22, 2022 07:46
@quarkus-bot

This comment has been minimized.

@gsmet gsmet merged commit dba6939 into quarkusio:main Apr 25, 2022
@quarkus-bot quarkus-bot bot added this to the 2.9 - main milestone Apr 25, 2022
@quarkus-bot quarkus-bot bot added the kind/enhancement New feature or request label Apr 25, 2022
@gsmet gsmet modified the milestones: 2.9 - main, 2.8.2.Final Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prevent inception style buildpack builds
4 participants