Add what apps replace, their phone apps and size choices (#39)
Three optional cottage.yml fields for plainer app pages and setup steps: - replaces: well-known services an app stands in for (77 apps) - mobile: the phone app's store links and server field (17 apps, links checked against the project's own pages and the stores) - sizes: named size choices for apps people size by what they keep (Immich, PhotoPrism, Nextcloud, Paperless-ngx, Audiobookshelf) Eight READMEs gain "Add people" and "Bring your data" sections for the setup checklist. CI now checks every cottage.yml against the schema.
This commit is contained in:
1 parent
717c64b43c
commit
6ace960a0b
92 files changed
+521
-30
No files matched your search
+241
-30
@@ -5,49 +5,260 @@
|
||||
"description": "Validates cottage.yml. $defs/parameter describes one entry of template.yml's x-harbor.parameters; CI checks every recipe against it.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["name", "tagline", "category", "description", "upstream", "license", "images"],
|
||||
"required": [
|
||||
"name",
|
||||
"tagline",
|
||||
"category",
|
||||
"description",
|
||||
"upstream",
|
||||
"license",
|
||||
"images"
|
||||
],
|
||||
"properties": {
|
||||
"name": { "type": "string", "minLength": 1, "maxLength": 40 },
|
||||
"tagline": { "type": "string", "minLength": 1, "maxLength": 80, "description": "One sentence, sentence case, no exclamation marks." },
|
||||
"category": { "type": "string", "minLength": 1, "maxLength": 24 },
|
||||
"description": { "type": "string", "minLength": 1, "maxLength": 400 },
|
||||
"upstream": { "type": "string", "pattern": "^https://" },
|
||||
"website": { "type": "string", "pattern": "^https://" },
|
||||
"license": { "type": "string", "description": "SPDX identifier", "minLength": 2 },
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 40
|
||||
},
|
||||
"tagline": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 80,
|
||||
"description": "One sentence, sentence case, no exclamation marks."
|
||||
},
|
||||
"category": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 24
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 400
|
||||
},
|
||||
"upstream": {
|
||||
"type": "string",
|
||||
"pattern": "^https://"
|
||||
},
|
||||
"website": {
|
||||
"type": "string",
|
||||
"pattern": "^https://"
|
||||
},
|
||||
"license": {
|
||||
"type": "string",
|
||||
"description": "SPDX identifier",
|
||||
"minLength": 2
|
||||
},
|
||||
"images": {
|
||||
"type": "array", "minItems": 1,
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "object", "additionalProperties": false, "required": ["ref", "digest"],
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"ref",
|
||||
"digest"
|
||||
],
|
||||
"properties": {
|
||||
"ref": { "type": "string", "pattern": "^[a-z0-9./_-]+:[A-Za-z0-9._-]+$" },
|
||||
"digest": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" }
|
||||
"ref": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z0-9./_-]+:[A-Za-z0-9._-]+$"
|
||||
},
|
||||
"digest": {
|
||||
"type": "string",
|
||||
"pattern": "^sha256:[0-9a-f]{64}$"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"mobile_apps": { "type": "boolean" },
|
||||
"first_visit_claims_admin": { "type": "boolean", "description": "The app's first visitor creates the admin account; the dashboard tells the owner to finish setup at once." }
|
||||
"mobile_apps": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"first_visit_claims_admin": {
|
||||
"type": "boolean",
|
||||
"description": "The app's first visitor creates the admin account; the dashboard tells the owner to finish setup at once."
|
||||
},
|
||||
"replaces": {
|
||||
"type": "array",
|
||||
"maxItems": 4,
|
||||
"description": "Well-known services this app stands in for, most familiar first (\"Google Photos\"). People search the catalog by what they're leaving.",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 40,
|
||||
"pattern": "^[^!]*$"
|
||||
}
|
||||
},
|
||||
"mobile": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"description": "The phone app people connect to their copy. Only with mobile_apps: true. Links must be the project's own (or its named companion, like Bitwarden for Vaultwarden), checked by hand.",
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"anyOf": [
|
||||
{
|
||||
"required": [
|
||||
"ios"
|
||||
]
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"android"
|
||||
]
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"description": "The phone app's name in the stores."
|
||||
},
|
||||
"ios": {
|
||||
"type": "string",
|
||||
"pattern": "^https://apps\\.apple\\.com/"
|
||||
},
|
||||
"android": {
|
||||
"type": "string",
|
||||
"pattern": "^https://(play\\.google\\.com/store/apps/details\\?id=|f-droid\\.org/)"
|
||||
},
|
||||
"server_field": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"description": "What the phone app calls the field where you enter your app's address, e.g. Server Endpoint URL."
|
||||
}
|
||||
}
|
||||
},
|
||||
"sizes": {
|
||||
"type": "array",
|
||||
"maxItems": 3,
|
||||
"description": "Named size choices beside the default, for apps people size by what they keep. Resources left out mean \"as the default\"; never below min_resources.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"label",
|
||||
"note"
|
||||
],
|
||||
"properties": {
|
||||
"label": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 40,
|
||||
"pattern": "^[^!]*$"
|
||||
},
|
||||
"note": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 160,
|
||||
"pattern": "^[^!]*$"
|
||||
},
|
||||
"cpu_millis": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"memory_mb": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"storage_mb": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"$defs": {
|
||||
"parameter": {
|
||||
"title": "Recipe parameter (one entry of x-harbor.parameters in template.yml)",
|
||||
"type": "object", "additionalProperties": false,
|
||||
"required": ["key", "label", "type"],
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"key",
|
||||
"label",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"key": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]{0,62}$", "description": "Variable name; the HARBOR_ prefix is reserved." },
|
||||
"label": { "type": "string", "minLength": 1, "maxLength": 60 },
|
||||
"type": { "enum": ["string", "int", "bool", "choice"] },
|
||||
"default": { "type": "string", "description": "Always a quoted string, e.g. \"587\"." },
|
||||
"required": { "type": "boolean" },
|
||||
"secret": { "type": "boolean", "description": "Shown masked in the dashboard." },
|
||||
"generate": { "enum": ["random16", "random32", "hex32", "password"] },
|
||||
"choices": { "type": "array", "minItems": 1, "items": { "type": "string", "pattern": "^[a-z0-9_]+$" } },
|
||||
"editable": { "type": "boolean", "description": "The owner may change it after the app exists." },
|
||||
"group": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,31}$", "description": "Groups fields in the dashboard. Outgoing mail settings use \"email\"." },
|
||||
"hint": { "type": "string", "minLength": 1, "maxLength": 160, "pattern": "^[^\\n\\r]*$", "description": "One line of help text shown with the field." },
|
||||
"setup_value": { "type": "string", "minLength": 1, "description": "For apps with first_visit_claims_admin: the value the app runs with while Cottage keeps it to its owner during setup (keep sign-ups open, say). The owner's own choice applies when they finish setup. Editable, non-secret settings only." }
|
||||
"key": {
|
||||
"type": "string",
|
||||
"pattern": "^[A-Z][A-Z0-9_]{0,62}$",
|
||||
"description": "Variable name; the HARBOR_ prefix is reserved."
|
||||
},
|
||||
"label": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 60
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"string",
|
||||
"int",
|
||||
"bool",
|
||||
"choice"
|
||||
]
|
||||
},
|
||||
"default": {
|
||||
"type": "string",
|
||||
"description": "Always a quoted string, e.g. \"587\"."
|
||||
},
|
||||
"required": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"secret": {
|
||||
"type": "boolean",
|
||||
"description": "Shown masked in the dashboard."
|
||||
},
|
||||
"generate": {
|
||||
"enum": [
|
||||
"random16",
|
||||
"random32",
|
||||
"hex32",
|
||||
"password"
|
||||
]
|
||||
},
|
||||
"choices": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z0-9_]+$"
|
||||
}
|
||||
},
|
||||
"editable": {
|
||||
"type": "boolean",
|
||||
"description": "The owner may change it after the app exists."
|
||||
},
|
||||
"group": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9-]{0,31}$",
|
||||
"description": "Groups fields in the dashboard. Outgoing mail settings use \"email\"."
|
||||
},
|
||||
"hint": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 160,
|
||||
"pattern": "^[^\\n\\r]*$",
|
||||
"description": "One line of help text shown with the field."
|
||||
},
|
||||
"setup_value": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"description": "For apps with first_visit_claims_admin: the value the app runs with while Cottage keeps it to its owner during setup (keep sign-ups open, say). The owner's own choice applies when they finish setup. Editable, non-secret settings only."
|
||||
}
|
||||
},
|
||||
"if": { "properties": { "type": { "const": "choice" } } },
|
||||
"then": { "required": ["choices"] }
|
||||
"if": {
|
||||
"properties": {
|
||||
"type": {
|
||||
"const": "choice"
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"required": [
|
||||
"choices"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user