-
Notifications
You must be signed in to change notification settings - Fork 798
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
Clarify the use of buildah config options #592
Conversation
Fixed #591 |
cmd/buildah/config.go
Outdated
@@ -73,7 +73,7 @@ var ( | |||
}, | |||
cli.StringSliceFlag{ | |||
Name: "volume, v", | |||
Usage: "add default `volume` path to be created for containers based on image", | |||
Usage: "add default `volume` path to be created for containers based on image (default [])", |
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.
nit, looks like you've a double space before (default []).
@@ -13,24 +13,24 @@ Updates one or more of the settings kept for a container. | |||
|
|||
**--annotation** *annotation* | |||
|
|||
Adds an image *annotation* (e.g. annotation=*annotation*) to the image manifest | |||
of any images which will be built using the specified container. | |||
Add an image *annotation* (e.g. annotation=*annotation*) to the image manifest |
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.
could you whip up an example or three that shows how some of the multiples could be used? Perhaps an example for annotations, port and volume?
Make it clearer to the user which options can be executed multiple times, versus those that can only used once. Cleanup some documentation issues Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
bot, retest this please |
Specifies a *port* to expose when running containers based on any images which | ||
will be built using the specified container. | ||
Add a *port* to expose when running containers based on any images which | ||
will be built using the specified container. Can be used multiple times. |
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.
Can you clarify the syntax used in this Redhat documentation
# buildah config --port 80/tcp working-container
Are /tcp
/udp
and /icmp
supported. If you use this decoration in the config do you have to use that when you launch, for example, a rkt container from the command line? For the googlers, rkt
syntax (pre-spec) is --port 8080-tcp:8080
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.
I would doubt you have to do anything special with rkt on the command line, although I have know clue.
@baude @TomSweeneyRedHat Could you verify the syntax.
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.
According to the spec the description should be:
Can be in the format of:
port/tcp
,port/udp
,port
with the default protocol beingtcp
if not specified. ICMP is not part of the OCI specification.
Hmm, maybe the documentation burden can be eased by linking to the version of the spec that Buildah is targeting. Example:
See OCI spec v1.0.1 Properties:ExposedPorts
If you're happy with that approach I'll add such a reference as I go?
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.
Sure lets merge this and then open a PR with these additional changes to docs.
📌 Commit da4e9d4 has been approved by |
⚡ Test exempted: pull fully rebased and already tested. |
@taqtiqa-mark Could you add a PR with the changes you want. |
Make it clearer to the user which options can be executed multiple times, versus those that can only used once. Cleanup some documentation issues Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: containers#592 Approved by: rhatdan Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Make it clearer to the user which options can be executed multiple times, versus those that can only used once. Cleanup some documentation issues Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: containers#592 Approved by: rhatdan Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Make it clearer to the user which options can be executed multiple times, versus those that can only used once. Cleanup some documentation issues Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: containers#592 Approved by: rhatdan Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Make it clearer to the user which options can be executed multiple times, versus those that can only used once. Cleanup some documentation issues Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: containers#592 Approved by: rhatdan Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Make it clearer to the user which options can be executed multiple times, versus those that can only used once. Cleanup some documentation issues Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: containers#592 Approved by: rhatdan Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Make it clearer to the user which options can be executed multiple times, versus those that can only used once. Cleanup some documentation issues Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: containers#592 Approved by: rhatdan Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Make it clearer to the user which options can be executed multiple times, versus those that can only used once. Cleanup some documentation issues Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #592 Approved by: rhatdan Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #602 Approved by: pixdrift
Make it clearer to the user which options can be executed
multiple times, versus those that can only used once.
Cleanup some documentation issues
Signed-off-by: Daniel J Walsh dwalsh@redhat.com