Skip to content

introduce dockerfile-inline#315

Merged
glours merged 1 commit intocompose-spec:masterfrom
ndeloof:dockerile-inline
Mar 13, 2023
Merged

introduce dockerfile-inline#315
glours merged 1 commit intocompose-spec:masterfrom
ndeloof:dockerile-inline

Conversation

@ndeloof
Copy link
Collaborator

@ndeloof ndeloof commented Mar 2, 2023

What this PR does / why we need it:
define dockerfile_inline for user to declare a (simple) Dockerfile as inlined content directly in a compose-file.
attribute named has been chosen to align with bake's dockerfile-inline https://docs.docker.com/build/bake/file-definition/ but using underscore separator for consistency with other attributes

Which issue(s) this PR fixes:
Fixes #298

@ndeloof ndeloof requested review from EricHripko, glours, laurazard and milas and removed request for glours March 2, 2023 13:12
@ndeloof ndeloof force-pushed the dockerile-inline branch 2 times, most recently from 3cabd48 to 7b6af62 Compare March 3, 2023 09:28
@EricHripko
Copy link
Collaborator

The proposal makes sense - I was wondering if we could let dockerfile attribute be either file contents or file path, but I guess this would lead to peculiar edge cases and/or failure modes 😬

@ndeloof ndeloof force-pushed the dockerile-inline branch 2 times, most recently from 316d172 to bcf92e5 Compare March 7, 2023 17:32
@ndeloof
Copy link
Collaborator Author

ndeloof commented Mar 7, 2023

I was wondering if we could let dockerfile attribute be either file contents or file path, but I guess this would lead to peculiar edge cases and/or failure modes 😬

Yes, I expect this could bring some weird issues, so better use an explicit attribute. We could later investigate introducing more magic

Copy link
Member

@laurazard laurazard left a comment

Choose a reason for hiding this comment

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

A bit sad about not having the custom yaml type, but it's probably for the best 😞

LGTM ✅

@ndeloof ndeloof force-pushed the dockerile-inline branch 2 times, most recently from fbd0480 to c87aef4 Compare March 13, 2023 13:50
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

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

LGTM

@glours glours merged commit 030884c into compose-spec:master Mar 13, 2023
@ndeloof ndeloof deleted the dockerile-inline branch March 13, 2023 13:57
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.

inline Dockerfile

4 participants