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

ioc: reorder stages to improve portability. #9

Merged
merged 1 commit into from
Aug 15, 2023
Merged

ioc: reorder stages to improve portability. #9

merged 1 commit into from
Aug 15, 2023

Conversation

henriquesimoes
Copy link
Collaborator

@henriquesimoes henriquesimoes commented Aug 11, 2023

Docker without BuildKit and Podman fail when an unused stage fails before the defined target. As static build stage from the IOC image is known to possibly fail, we now define all static build stages last.

Arguments have now been defined only in stages they are used. This is required to support non-BuildKit builds, as they aren't inherited.

Copy link
Collaborator

@ericonr ericonr left a comment

Choose a reason for hiding this comment

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

In commit message:

Docker without BuildKit and Podman fail when some unused stage fails

Arguments have now been defined only in stages they are used.

Dockerfile Outdated
ARG BUILD_STAGE_VERSION=v0.2.0
ARG BUILD_STAGE_VERSION=latest
Copy link
Collaborator

Choose a reason for hiding this comment

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

This change slipped through.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oops. Fixed!

Docker without BuildKit and Podman fail when an unused stage fails
before the defined target. As static build stage from the IOC image is
known to possibly fail, we now define all static build stages last.

Arguments have now been defined only in stages they are used. This is
required to support non-BuildKit builds, as they aren't inherited.
@ericonr ericonr merged commit 4559e78 into main Aug 15, 2023
1 check passed
@ericonr ericonr deleted the no-buildkit branch August 15, 2023 12:50
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