Skip to content

Add INCLUDE to Dockerfile parsing in bud #851

Closed
@TomSweeneyRedHat

Description

@TomSweeneyRedHat

Description
Cut from #850 by @pixdrift - I think this should be a stand alone discussion/enhancement request.

I also wanted to raise in this thread the possibility of inclusion of an INCLUDE feature in the Dockerfile parser (bud), to essentially achieve the same as above. This has been raised / rejected several times in Docker/moby issues, but interested to know if there is any precedent in Buildah for support of additional features in the Dockerfile, or if bud is purely for compatibility with existing features.

Proposal discussions for INCLUDE in Docker/Moby:
moby/moby#735
moby/moby#12749

I don't really see this as including a entire existing Dockerfiles (ie. with their own FROM), more to include common code blocks/snippets. I have achieved the same using native buildah run and source to pull in common code blocks, but would still be interested in comments on the above idea.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions