From f707c51f1b0ffceee5a27f49e51b223492cf59df Mon Sep 17 00:00:00 2001 From: acknologia <64101826+acknologia@users.noreply.github.com> Date: Sun, 14 Jun 2026 01:57:00 -0400 Subject: [PATCH] v4 script for snapotter ix volume needed to for temp location otherwise modifications fail. default username/pw is admin/admin used question to bypass that --- docs/public/install-scripts/snapotter.json | 88 ++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 docs/public/install-scripts/snapotter.json diff --git a/docs/public/install-scripts/snapotter.json b/docs/public/install-scripts/snapotter.json new file mode 100644 index 00000000..8069e73d --- /dev/null +++ b/docs/public/install-scripts/snapotter.json @@ -0,0 +1,88 @@ +{ + "version": 4, + "script": { + "version": "1.0.0", + "changeLog": "Initial Script" + }, + "installation_questions": [ + { + "question": "Choose the Admin Username", + "description": "Only used on installation", + "placeholder": "", + "type": "text", + "key": "DEFAULT_USERNAME", + "required": true, + "default": "" + }, + { + "question": "Choose the Admin Password", + "description": "", + "placeholder": "", + "type": "text", + "key": "DEFAULT_PASSWORD", + "required": true, + "default": "" + } + ], + "requirements": { + "locations": [ + "Documents" + ], + "specifications": [ + "2CORE", + "1024MB" + ], + "permissions": [ + "READ_WRITE_LOCATIONS" + ], + "ports": [30428] + }, + "ensure_directories_exists": [ + { "path": "$LOCATION(Documents)/snapotter", "owner": { "user": "apps" } } + ], + "app_values": { + "storage": { + "additional_storage": [ + { + "ix_volume_config": { + "acl_enable": false, + "dataset_name": "storage_entry" + }, + "mount_path": "/tmp/workspace", + "read_only": false, + "type": "ix_volume" + } + ], + "data": "$HOST_PATH($LOCATION(Documents)/snapotter)" + }, + "snapotter": { + "additional_envs": [ + { + "name": "DEFAULT_USERNAME", + "value": "$QUESTION(DEFAULT_USERNAME)" + }, + { + "name": "DEFAULT_PASSWORD", + "value": "$QUESTION(DEFAULT_PASSWORD)" + }, + { + "name": "SKIP_MUST_CHANGE_PASSWORD", + "value": "true" + } + ], + "network": { + "web_port": { + "bind_mode": "published", + "port_number": 30428 + } + }, + "resources": { + "gpus": "$GPU_CONFIG()", + "limits": { + "cpus": 2, + "memory": "$MEMORY(10%, 2048)" + } + } + } +} +} \ No newline at end of file