Compare commits
2 Commits
abf3859af7
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b2540e2bd3 | ||
|
|
47088fd1a0 |
@@ -1,5 +1,6 @@
|
||||
---
|
||||
container_command: []
|
||||
container_entrypoint: ""
|
||||
container_user: ""
|
||||
container_mounts: []
|
||||
container_publish_ports: []
|
||||
|
||||
@@ -13,6 +13,11 @@ argument_specs:
|
||||
required: false
|
||||
default: []
|
||||
elements: str
|
||||
container_entrypoint:
|
||||
description: Entrypoint to use for the continaer
|
||||
type: str
|
||||
required: false
|
||||
default: ""
|
||||
container_user:
|
||||
description: The UID to run as inside the container
|
||||
type: str
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
image: "{{ _container_image }}"
|
||||
name: "{{ container_name }}"
|
||||
command: "{{ container_command or omit }}"
|
||||
entrypoint: "{{ container_entrypoint or omit }}"
|
||||
user: "{{ container_user or omit }}"
|
||||
mount: "{{ _container_mounts | map('items') | map('map', 'join', '=') | map('join', ',') }}"
|
||||
network: "{{ _container_networks_with_ip }}"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
---
|
||||
service_container_command: []
|
||||
service_container_entrypoint: ""
|
||||
|
||||
service_domains: []
|
||||
service_container_http_port: 0
|
||||
|
||||
@@ -14,6 +14,11 @@ argument_specs:
|
||||
required: false
|
||||
default: []
|
||||
elements: str
|
||||
service_container_entrypoint:
|
||||
description: Entrypoint to use in the service container
|
||||
type: str
|
||||
required: false
|
||||
default: ""
|
||||
|
||||
service_domains:
|
||||
description: A list of domains which should be proxied to the main service container
|
||||
@@ -304,6 +309,11 @@ argument_specs:
|
||||
required: false
|
||||
default: "[]"
|
||||
elements: str
|
||||
entrypoint:
|
||||
description: Entrypoint to use in the container
|
||||
type: str
|
||||
required: false
|
||||
default: ""
|
||||
mounts:
|
||||
description: List of bind mounts or volumes to be mounted inside the main service container.
|
||||
type: list
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
container_name: "{{ _service_additional_container.name }}"
|
||||
container_image: "{{ _service_additional_container.image | default(service_container_image) }}"
|
||||
container_command: "{{ _service_additional_container.command | default([]) }}"
|
||||
container_entrypoint: "{{ _service_additional_container.entrypoint | default('') }}"
|
||||
container_user: "{{ service_container_user }}"
|
||||
container_mounts: "{{ _service_additional_container_mounts }}"
|
||||
container_publish_ports: "{{ _service_additional_container.publish_ports | default([]) }}"
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
container_name: "{{ service_name }}"
|
||||
container_image: "{{ service_container_image }}"
|
||||
container_command: "{{ service_container_command }}"
|
||||
container_entrypoint: "{{ service_container_entrypoint }}"
|
||||
container_user: "{{ service_container_user }}"
|
||||
container_mounts: "{{ _service_container_mounts }}"
|
||||
container_publish_ports: "{{ service_container_publish_ports }}"
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
---
|
||||
- name: Fail if service_name is empty
|
||||
ansible.builtin.fail:
|
||||
msg: service_name must not be empty
|
||||
when: service_name | length == 0
|
||||
|
||||
- name: Fail if service_container_user is not string
|
||||
ansible.builtin.fail:
|
||||
msg: "service_container_user must be a string, not int."
|
||||
|
||||
@@ -45,7 +45,7 @@ _service_all_template_mounts: >-
|
||||
_service_template_mounts +
|
||||
(
|
||||
_service_additional_containers |
|
||||
map(attribute='mounts') |
|
||||
map(attribute='mounts', default=[]) |
|
||||
flatten
|
||||
)
|
||||
) |
|
||||
|
||||
Reference in New Issue
Block a user