summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorZen3515 <7106408+Zen3515@users.noreply.github.com>2023-01-31 14:23:06 +0700
committerChristian Poessinger <christian@poessinger.com>2023-03-01 08:28:28 +0100
commita214896fca177704998314c22fe6a57314c22827 (patch)
tree50e1a33b4a954f5212dabd4f06710d42aaf7bdca /interface-definitions
parent0420cea6f0c655aced9668ae01c50d517e1e8f29 (diff)
downloadvyos-1x-a214896fca177704998314c22fe6a57314c22827.tar.gz
vyos-1x-a214896fca177704998314c22fe6a57314c22827.zip
container: T4014: Add `command`, `arg` and `entrypoint` configuration options for containers
(cherry picked from commit 53aebddb4ca54b0cc4a296d6cc4c4d960c5f1d73)
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 1c971b58a..479f13355 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 (default: 512)</help>