-
Notifications
You must be signed in to change notification settings - Fork 762
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
[CI:DOCS] Touch up Containerfile man page to show ARG can be 1st #3577
[CI:DOCS] Touch up Containerfile man page to show ARG can be 1st #3577
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: TomSweeneyRedHat The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
docs/Containerfile.5.md
Outdated
valid image. It is easy to start by pulling an image from the public | ||
valid Containerfile must have either **ARG** or *FROM** as its first instruction. | ||
If **FROM** is not the first instruction in the file, it may only be preceded by | ||
one or more ARG instructions, which declare arguments that are used in FROM lines in the Containerfile. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to nitpick, aren't ARGs only used by the next FROM command. IE
ARG FOO=bar
from fedora
from $FOO
Does not work. From reading this description, I would assume it does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good nit to pick. Perhaps "... are used in the next FROM line in the Containerfile."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
The Containerfile man page says FROM must be the first statement in the file. However, that is not true as the ARG instruction can proceed it. Addresses: containers#3555 Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
5492729
to
a5b5534
Compare
/lgtm |
The Containerfile man page says FROM must be the first statement
in the file. However, that is not true as the ARG instruction can proceed it.
Fixes: #3555
Signed-off-by: TomSweeneyRedHat tsweeney@redhat.com
What type of PR is this?
What this PR does / why we need it:
Fixes the Containerfile man page which stated FROM had to be the first instruction, when it is permissible to have ARG.
How to verify it
Read
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?