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

Add the 'as' field to ImageSource to allow multi-stage builds #34

Merged
merged 1 commit into from
Mar 1, 2018

Conversation

smarterclayton
Copy link
Contributor

The as field allows image sources to be used directly by multi-stage
Docker builds to replace hardcoded strings in the Dockerfile with images
delivered via image streams. After this change, both paths and as
are optional as long as at least one is specified. The list of values in
the as field are exact string replacements for fields in the
Dockerfile.

@bparees for discussion at minimum.

Part of openshift/origin#18741

The `as` field allows image sources to be used directly by multi-stage
Docker builds to replace hardcoded strings in the Dockerfile with images
delivered via image streams. After this change, both `paths` and `as`
are optional as long as at least one is specified. The list of values in
the `as` field are exact string replacements for fields in the
Dockerfile.
@openshift-ci-robot openshift-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Feb 25, 2018
@bparees
Copy link
Contributor

bparees commented Feb 26, 2018

api looks reasonable.

@bparees
Copy link
Contributor

bparees commented Mar 1, 2018

lgtm

@bparees bparees merged commit dca24d1 into openshift:master Mar 1, 2018
openshift-merge-robot added a commit to openshift/origin that referenced this pull request Mar 9, 2018
Automatic merge from submit-queue (batch tested with PRs 18887, 18741).

Support multi-stage dockerbuilds via imagebuilder

Needs an e2e test and a way to perform replacement on the stage images.

Will allow standard multi-stage Dockerfile builds against any Docker 1.12+ backend.

API PR openshift/api#34
openshift-cherrypick-robot pushed a commit to openshift-cherrypick-robot/api that referenced this pull request Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants