From ecf22aa703e2e94680426c8320294a6cf9c51a2c Mon Sep 17 00:00:00 2001 From: acknologia <64101826+acknologia@users.noreply.github.com> Date: Mon, 18 May 2026 14:33:20 -0400 Subject: [PATCH] kimai v4 script --- .../apps/install-scripts/curated/index.md | 1 + docs/public/install-scripts/kimai.json | 71 +++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 docs/public/install-scripts/kimai.json diff --git a/docs/features/apps/install-scripts/curated/index.md b/docs/features/apps/install-scripts/curated/index.md index 18e4e49..39e828b 100644 --- a/docs/features/apps/install-scripts/curated/index.md +++ b/docs/features/apps/install-scripts/curated/index.md @@ -10,6 +10,7 @@ | `home-assistant` | [home-assistant.json](/install-scripts/home-assistant.json) | 1.4 KB | 2026-05-15 | | `immich` | [immich.json](/install-scripts/immich.json) | 1.6 KB | 2026-05-15 | | `jellyfin` | [jellyfin.json](/install-scripts/jellyfin.json) | 2.3 KB | 2026-05-15 | +| `kimai` | [kimai.json](/install-scripts/kimai.json) | 2.2 KB | 2026-05-18 | | `lidarr` | [lidarr.json](/install-scripts/lidarr.json) | 1.4 KB | 2026-05-15 | | `nextcloud` | [nextcloud.json](/install-scripts/nextcloud.json) | 3.4 KB | 2026-05-15 | | `peanut` | [peanut.json](/install-scripts/peanut.json) | 911 B | 2026-05-15 | diff --git a/docs/public/install-scripts/kimai.json b/docs/public/install-scripts/kimai.json new file mode 100644 index 0000000..6ed9334 --- /dev/null +++ b/docs/public/install-scripts/kimai.json @@ -0,0 +1,71 @@ +{ + "version": 4, + "script": { + "version": "1.0.0", + "changeLog": "Initial" + }, + "installation_questions": [ + { + "question": "What is the email address for the admin user?", + "description": "Only takes effect if the admin user is not yet created.", + "type": "text", + "key": "admin_mail", + "required": true, + "default": "" + }, + { + "question": "Create a password for the admin user", + "description": "Only takes effect if the admin user is not yet created. Minimum length of 8 characters.", + "type": "text", + "key": "admin_password", + "required": true, + "default": "" + } + ], + "requirements": { + "locations": ["ApplicationsPerformance"], + "specifications": ["2CORE", "256MB"], + "permissions": ["READ_WRITE_LOCATIONS"], + "ports": [30237] + }, + "ensure_directories_exists": [ + { + "path": "$LOCATION(ApplicationsPerformance)", + "network_share": true + }, + { + "path": "$LOCATION(Documents)", + "network_share": true + }, + { "path": "$LOCATION(ApplicationsPerformance)/kimai/plugins", "owner": { "user": "apps" }, "snapshot": { "id": "data" } }, + { "path": "$LOCATION(ApplicationsPerformance)/kimai/data", "owner": { "user": "apps" }, "snapshot": { "id": "data" } }, + { "path": "$LOCATION(ApplicationsPerformance)/kimai/database", "owner": { "user": "apps" }, "snapshot": { "id": "db" } } + ], + "app_values": { + "kimai": { + "db_password": "$RANDOM_STRING(7)", + "db_root_password": "$RANDOM_STRING(7)", + "admin_mail": "$QUESTION(admin_mail)", + "admin_password": "$QUESTION(admin_password)", + "app_secret": "$RANDOM_STRING(32)", + "additional_envs": [] + }, + "network": { + "web_port": { + "bind_mode": "published", + "port_number": 30237 + } + }, + "storage": { + "data": "$HOST_PATH($LOCATION(ApplicationsPerformance)/kimai/data)", + "plugins": "$HOST_PATH($LOCATION(ApplicationsPerformance)/kimai/plugins)", + "mariadb_data": "$HOST_PATH($LOCATION(ApplicationsPerformance)/kimai/database)" + }, + "resources": { + "limits": { + "cpus": 2, + "memory": "$MEMORY(10%, 4096)" + } + } + } +} \ No newline at end of file