|
| 1 | +{ |
| 2 | + "version": 3, |
| 3 | + "script": { |
| 4 | + "version": "1.0.0", |
| 5 | + "changeLog": "Initial Script" |
| 6 | + }, |
| 7 | + "requirements": { |
| 8 | + "locations": ["ApplicationsPerformance", "ApplicationsCapacity"], |
| 9 | + "specifications": ["2CORE", "4096MB"], |
| 10 | + "permissions": ["READ_WRITE_LOCATIONS"], |
| 11 | + "ports": [] |
| 12 | + }, |
| 13 | + "installation_questions": [ |
| 14 | + { |
| 15 | + "question": "Disable Anonymous Telemetry", |
| 16 | + "description": "Disable anonymous telemetry for Gramps Web. This will prevent Gramps Web from sending anonymous statistics data to the Gramps project.", |
| 17 | + "type": "boolean", |
| 18 | + "key": "disable_telemetry", |
| 19 | + "required": false, |
| 20 | + "default": false |
| 21 | + } |
| 22 | + ], |
| 23 | + "ensure_directories_exists": [ |
| 24 | + { |
| 25 | + "path": "$LOCATION(ApplicationsPerformance)", |
| 26 | + "network_share": true |
| 27 | + }, |
| 28 | + "$LOCATION(ApplicationsPerformance)/gramps/users", |
| 29 | + "$LOCATION(ApplicationsPerformance)/gramps/index", |
| 30 | + "$LOCATION(ApplicationsPerformance)/gramps/thumbnail_cache", |
| 31 | + "$LOCATION(ApplicationsPerformance)/gramps/cache", |
| 32 | + "$LOCATION(ApplicationsPerformance)/gramps/grampsdb", |
| 33 | + { |
| 34 | + "path": "$LOCATION(ApplicationsCapacity)", |
| 35 | + "network_share": true |
| 36 | + }, |
| 37 | + "$LOCATION(ApplicationsCapacity)/gramps/media" |
| 38 | + ], |
| 39 | + "app_values": { |
| 40 | + "gramps": { |
| 41 | + "redis_password": "$RANDOM_STRING(16)", |
| 42 | + "disable_telemetry": "$DISABLE_TELEMETRY", |
| 43 | + "app_key": "$RANDOM_STRING(32)" |
| 44 | + }, |
| 45 | + "storage": { |
| 46 | + "users": "$HOST_PATH($LOCATION(ApplicationsPerformance)/gramps/users)", |
| 47 | + "index": "$HOST_PATH($LOCATION(ApplicationsPerformance)/gramps/index)", |
| 48 | + "thumbnail_cache": "$HOST_PATH($LOCATION(ApplicationsPerformance)/gramps/thumbnail_cache)", |
| 49 | + "cache": "$HOST_PATH($LOCATION(ApplicationsPerformance)/gramps/cache)", |
| 50 | + "grampsdb": "$HOST_PATH($LOCATION(ApplicationsPerformance)/gramps/grampsdb)", |
| 51 | + "media": "$HOST_PATH($LOCATION(ApplicationsCapacity)/gramps/media)" |
| 52 | + }, |
| 53 | + "network": { |
| 54 | + "web_port": { |
| 55 | + "bind_mode": "published", |
| 56 | + "port_number": 30179 |
| 57 | + } |
| 58 | + }, |
| 59 | + "resources": { |
| 60 | + "limits": { |
| 61 | + "cpus": 2, |
| 62 | + "memory": "$MEMORY(10%, 4096)" |
| 63 | + } |
| 64 | + } |
| 65 | + } |
| 66 | +} |
0 commit comments