summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-02-28 07:30:35 +0100
committerGitHub <noreply@github.com>2023-02-28 07:30:35 +0100
commit16d167ac32a30b6d1b7c4856063beb39cc60f46f (patch)
tree3c76c5c6f16308993f320c267221e83bdc38d33f /interface-definitions
parent1aeddb187dffb5d861eaacda497922a5eafe638b (diff)
parent53aebddb4ca54b0cc4a296d6cc4c4d960c5f1d73 (diff)
downloadvyos-1x-16d167ac32a30b6d1b7c4856063beb39cc60f46f.tar.gz
vyos-1x-16d167ac32a30b6d1b7c4856063beb39cc60f46f.zip
Merge pull request #1784 from Zen3515/current-add-container-command-arg
container: T4014: Add `command`, `arg` and `entrypoint` configuration options for containers
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/container.xml.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in
index b61664125..2ea1e6ab2 100644
--- a/interface-definitions/container.xml.in
+++ b/interface-definitions/container.xml.in
@@ -104,11 +104,38 @@
</leafNode>
</children>
</tagNode>
+ <leafNode name="entrypoint">
+ <properties>
+ <help>Override the default ENTRYPOINT from the image</help>
+ <constraint>
+ <regex>[ !#-%&amp;(-~]+</regex>
+ </constraint>
+ <constraintErrorMessage>Entrypoint must be ascii characters, use &amp;quot; and &amp;apos for double and single quotes respectively</constraintErrorMessage>
+ </properties>
+ </leafNode>
<leafNode name="image">
<properties>
<help>Image name in the hub-registry</help>
</properties>
</leafNode>
+ <leafNode name="command">
+ <properties>
+ <help>Override the default CMD from the image</help>
+ <constraint>
+ <regex>[ !#-%&amp;(-~]+</regex>
+ </constraint>
+ <constraintErrorMessage>Command must be ascii characters, use &amp;quot; and &amp;apos for double and single quotes respectively</constraintErrorMessage>
+ </properties>
+ </leafNode>
+ <leafNode name="arguments">
+ <properties>
+ <help>The command's arguments for this container</help>
+ <constraint>
+ <regex>[ !#-%&amp;(-~]+</regex>
+ </constraint>
+ <constraintErrorMessage>The command's arguments must be ascii characters, use &amp;quot; and &amp;apos for double and single quotes respectively</constraintErrorMessage>
+ </properties>
+ </leafNode>
<leafNode name="memory">
<properties>
<help>Memory (RAM) available to this container</help>