diff --git a/trains/test/nginx/1.0.0/README.md b/trains/test/nginx/1.0.0/README.md new file mode 100644 index 0000000000..0aa2984cee --- /dev/null +++ b/trains/test/nginx/1.0.0/README.md @@ -0,0 +1,3 @@ +# Nginx + +It is a test app diff --git a/trains/test/nginx/1.0.0/app.yaml b/trains/test/nginx/1.0.0/app.yaml new file mode 100644 index 0000000000..9deeade89c --- /dev/null +++ b/trains/test/nginx/1.0.0/app.yaml @@ -0,0 +1,37 @@ +app_version: v1 +capabilities: +- description: Just here as an example + name: NET_RAW +categories: +- networking +containerVersion: 1.0.0 +description: Nginx description +home: https://github.com/AdguardTeam/AdGuardHome +host_mounts: [] +icon: https://media.sys.truenas.net/apps/adguard-home/icons/icon.svg +keywords: +- dns +- adblock +lib_version: 0.0.1 +lib_version_hash: f074617a82a86d2a6cc78a4c8a4296fc9d168e456f12713e50c696557b302133 +maintainers: +- email: dev@ixsystems.com + name: truenas + url: https://www.truenas.com/ +name: nginx +run_as_context: +- description: Test app. + gid: 0 + groupName: root + uid: 0 + userName: root +screenshots: +- https://media.sys.truenas.net/apps/adguard-home/screenshots/screenshot1.png +- https://media.sys.truenas.net/apps/adguard-home/screenshots/screenshot2.png +sources: +- https://github.com/AdguardTeam/AdGuardHome +- https://github.com/truenas/charts/tree/master/community/adguard-home +- https://hub.docker.com/r/adguard/adguardhome +title: Nginx +train: test +version: 1.0.0 diff --git a/trains/test/nginx/1.0.0/questions.yaml b/trains/test/nginx/1.0.0/questions.yaml new file mode 100644 index 0000000000..793345493d --- /dev/null +++ b/trains/test/nginx/1.0.0/questions.yaml @@ -0,0 +1,18 @@ +groups: + - name: Network Configuration + description: Configure Network for Nginx + +questions: + - variable: network + label: "" + group: Network Configuration + schema: + type: dict + attrs: + - variable: web_port + label: WebUI Port + description: The port for Nginx WebUI + schema: + type: int + default: 8080 + required: true diff --git a/trains/test/nginx/1.0.0/templates/docker-compose.yaml b/trains/test/nginx/1.0.0/templates/docker-compose.yaml new file mode 100644 index 0000000000..1ed199c8dd --- /dev/null +++ b/trains/test/nginx/1.0.0/templates/docker-compose.yaml @@ -0,0 +1,12 @@ +x-values: {{ values.some_key | tojson }} +services: + {{ ix_lib.base.test.container_name() }}: + image: nginx + ports: + - {{ values.network.web_port }}:80 + healthcheck: + test: {{ "curl -f http://localhost:%s" | format(values.network.web_port) }} + interval: 10s + timeout: 10s + retries: 5 + start_period: 30s diff --git a/trains/test/nginx/1.0.0/templates/library/base_v0_0_1/__init__.py b/trains/test/nginx/1.0.0/templates/library/base_v0_0_1/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/trains/test/nginx/1.0.0/templates/library/base_v0_0_1/test.py b/trains/test/nginx/1.0.0/templates/library/base_v0_0_1/test.py new file mode 100644 index 0000000000..ea5a314a0d --- /dev/null +++ b/trains/test/nginx/1.0.0/templates/library/base_v0_0_1/test.py @@ -0,0 +1,2 @@ +def container_name(): + return "nginx" diff --git a/trains/test/nginx/1.0.0/templates/test_values/basic-values.yaml b/trains/test/nginx/1.0.0/templates/test_values/basic-values.yaml new file mode 100644 index 0000000000..14898f4fa6 --- /dev/null +++ b/trains/test/nginx/1.0.0/templates/test_values/basic-values.yaml @@ -0,0 +1,3 @@ +some_key: some_value +network: + web_port: 8080 diff --git a/trains/test/nginx/item.yaml b/trains/test/nginx/item.yaml new file mode 100644 index 0000000000..782f9f2a10 --- /dev/null +++ b/trains/test/nginx/item.yaml @@ -0,0 +1,5 @@ +icon_url: https://seeklogo.com/images/N/nginx-logo-B38DADE410-seeklogo.com.png +categories: + - networking +screenshots: [] +tags: []