From e6af32344b1647f59543cbc659704bb9ef08be5f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 1 May 2022 18:43:47 +0200 Subject: container: T4353: fix Jinja2 linting errors --- interface-definitions/container.xml.in | 293 ++++++++++++++++++++++++++++++++ interface-definitions/containers.xml.in | 293 -------------------------------- 2 files changed, 293 insertions(+), 293 deletions(-) create mode 100644 interface-definitions/container.xml.in delete mode 100644 interface-definitions/containers.xml.in (limited to 'interface-definitions') diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in new file mode 100644 index 000000000..85231b50c --- /dev/null +++ b/interface-definitions/container.xml.in @@ -0,0 +1,293 @@ + + + + + Container applications + 1280 + + + + + Container name + + [-a-zA-Z0-9]+ + + Container name must be alphanumeric and can contain hyphens + + + + + Allow host networks in container + + + + + + Container capabilities/permissions + + net-admin net-bind-service net-raw setpcap sys-admin sys-time + + + net-admin + Network operations (interface, firewall, routing tables) + + + net-bind-service + Bind a socket to privileged ports (port numbers less than 1024) + + + net-raw + Permission to create raw network sockets + + + setpcap + Capability sets (from bounded or inherited set) + + + sys-admin + Administation operations (quotactl, mount, sethostname, setdomainame) + + + sys-time + Permission to set system clock + + + (net-admin|net-bind-service|net-raw|setpcap|sys-admin|sys-time) + + + + + #include + + + Add a host device to the container + + + + + Source device (Example: "/dev/x") + + txt + Source device + + + + + + Destination container device (Example: "/dev/x") + + txt + Destination container device + + + + + + #include + + + Add custom environment variables + + [-_a-zA-Z0-9]+ + + Environment variable name must be alphanumeric and can contain hyphen and underscores + + + + + Set environment option value + + txt + Set environment option value + + + + + + + + Image name in the hub-registry + + + + + Constrain the memory available to a container + + u32:0 + Unlimited + + + u32:1-16384 + Container memory in megabytes (MB) + + + + + Container memory must be in range 0 to 16384 MB + + 512 + + + + Attach user defined network to container + + container network + + + + + + + Assign static IP address to container + + ipv4 + IPv4 address + + + + + + + + + + + Publish port to the container + + + + + Source host port + + u32:1-65535 + Source host port + + + start-end + Source host port range (e.g. 10025-10030) + + + + + + + + + Destination container port + + u32:1-65535 + Destination container port + + + start-end + Destination container port range (e.g. 10025-10030) + + + + + + + + + Protocol tcp/udp + + tcp udp + + + (tcp|udp) + + + + + + + + Restart options for container + + no on-failure always + + + no + Do not restart containers on exit + + + on-failure + Restart containers when they exit with a non-zero exit code, retrying indefinitely + + + always + Restart containers when they exit, regardless of status, retrying indefinitely + + + (no|on-failure|always) + + + on-failure + + + + Mount a volume into the container + + + + + Source host directory + + txt + Source host directory + + + + + + Destination container directory + + txt + Destination container directory + + + + + + + + + + Network name + + + + + Network description + + + + + Prefix which allocated to that network + + ipv4net + IPv4 network prefix + + + ipv6net + IPv6 network prefix + + + + + + + + + + + + + Registry Name + + + docker.io quay.io + + + + diff --git a/interface-definitions/containers.xml.in b/interface-definitions/containers.xml.in deleted file mode 100644 index 85231b50c..000000000 --- a/interface-definitions/containers.xml.in +++ /dev/null @@ -1,293 +0,0 @@ - - - - - Container applications - 1280 - - - - - Container name - - [-a-zA-Z0-9]+ - - Container name must be alphanumeric and can contain hyphens - - - - - Allow host networks in container - - - - - - Container capabilities/permissions - - net-admin net-bind-service net-raw setpcap sys-admin sys-time - - - net-admin - Network operations (interface, firewall, routing tables) - - - net-bind-service - Bind a socket to privileged ports (port numbers less than 1024) - - - net-raw - Permission to create raw network sockets - - - setpcap - Capability sets (from bounded or inherited set) - - - sys-admin - Administation operations (quotactl, mount, sethostname, setdomainame) - - - sys-time - Permission to set system clock - - - (net-admin|net-bind-service|net-raw|setpcap|sys-admin|sys-time) - - - - - #include - - - Add a host device to the container - - - - - Source device (Example: "/dev/x") - - txt - Source device - - - - - - Destination container device (Example: "/dev/x") - - txt - Destination container device - - - - - - #include - - - Add custom environment variables - - [-_a-zA-Z0-9]+ - - Environment variable name must be alphanumeric and can contain hyphen and underscores - - - - - Set environment option value - - txt - Set environment option value - - - - - - - - Image name in the hub-registry - - - - - Constrain the memory available to a container - - u32:0 - Unlimited - - - u32:1-16384 - Container memory in megabytes (MB) - - - - - Container memory must be in range 0 to 16384 MB - - 512 - - - - Attach user defined network to container - - container network - - - - - - - Assign static IP address to container - - ipv4 - IPv4 address - - - - - - - - - - - Publish port to the container - - - - - Source host port - - u32:1-65535 - Source host port - - - start-end - Source host port range (e.g. 10025-10030) - - - - - - - - - Destination container port - - u32:1-65535 - Destination container port - - - start-end - Destination container port range (e.g. 10025-10030) - - - - - - - - - Protocol tcp/udp - - tcp udp - - - (tcp|udp) - - - - - - - - Restart options for container - - no on-failure always - - - no - Do not restart containers on exit - - - on-failure - Restart containers when they exit with a non-zero exit code, retrying indefinitely - - - always - Restart containers when they exit, regardless of status, retrying indefinitely - - - (no|on-failure|always) - - - on-failure - - - - Mount a volume into the container - - - - - Source host directory - - txt - Source host directory - - - - - - Destination container directory - - txt - Destination container directory - - - - - - - - - - Network name - - - - - Network description - - - - - Prefix which allocated to that network - - ipv4net - IPv4 network prefix - - - ipv6net - IPv6 network prefix - - - - - - - - - - - - - Registry Name - - - docker.io quay.io - - - - -- cgit v1.2.3