mirror of
https://github.com/YunoHost-Apps/photoprism_ynh.git
synced 2024-09-03 19:56:41 +02:00
tests
This commit is contained in:
parent
6b2688e6cb
commit
77942fd90e
2 changed files with 18 additions and 15 deletions
|
@ -17,25 +17,23 @@ admindoc = "https://docs.photoprism.app/developer-guide/"
|
||||||
userdoc = "https://docs.photoprism.app/user-guide/"
|
userdoc = "https://docs.photoprism.app/user-guide/"
|
||||||
code = "https://github.com/photoprism/photoprism"
|
code = "https://github.com/photoprism/photoprism"
|
||||||
cpe = "???" # FIXME: optional but recommended if relevant, this is meant to contain the Common Platform Enumeration, which is sort of a standard id for applications defined by the NIST. In particular, Yunohost may use this is in the future to easily track CVE (=security reports) related to apps. The CPE may be obtained by searching here: https://nvd.nist.gov/products/cpe/search. For example, for Nextcloud, the CPE is 'cpe:2.3:a:nextcloud:nextcloud' (no need to include the version number)
|
cpe = "???" # FIXME: optional but recommended if relevant, this is meant to contain the Common Platform Enumeration, which is sort of a standard id for applications defined by the NIST. In particular, Yunohost may use this is in the future to easily track CVE (=security reports) related to apps. The CPE may be obtained by searching here: https://nvd.nist.gov/products/cpe/search. For example, for Nextcloud, the CPE is 'cpe:2.3:a:nextcloud:nextcloud' (no need to include the version number)
|
||||||
fund = "???" # FIXME: optional but recommended (or remove if irrelevant / not applicable). This is meant to be an URL where people can financially support this app, especially when its development is based on volunteers and/or financed by its community. YunoHost may later advertise it in the webadmin.
|
fund = "https://www.photoprism.app/membership"
|
||||||
|
|
||||||
[integration]
|
[integration]
|
||||||
yunohost = ">= 11.0.9.11"
|
yunohost = ">= 11.1.15"
|
||||||
architectures = "all" # FIXME: can be replaced by a list of supported archs using the dpkg --print-architecture nomenclature (amd64/i386/armhf/arm64), for example: ["amd64", "i386"]
|
architectures = ["amd64", "arm64" "armhf"]
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
ldap = "?" # FIXME: replace with true, false, or "not_relevant". Not to confuse with the "sso" key : the "ldap" key corresponds to wether or not a user *can* login on the app using its YunoHost credentials.
|
ldap = false
|
||||||
sso = "?" # FIXME: replace with true, false, or "not_relevant". Not to confuse with the "ldap" key : the "sso" key corresponds to wether or not a user is *automatically logged-in* on the app when logged-in on the YunoHost portal.
|
sso = false
|
||||||
disk = "50M" # FIXME: replace with an **estimate** minimum disk requirement. e.g. 20M, 400M, 1G, ...
|
disk = "50M" # FIXME: replace with an **estimate** minimum disk requirement. e.g. 20M, 400M, 1G, ...
|
||||||
ram.build = "50M" # FIXME: replace with an **estimate** minimum ram requirement. e.g. 50M, 400M, 1G, ...
|
ram.build = "50M" # FIXME: replace with an **estimate** minimum ram requirement. e.g. 50M, 400M, 1G, ...
|
||||||
ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requirement. e.g. 50M, 400M, 1G, ...
|
ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requirement. e.g. 50M, 400M, 1G, ...
|
||||||
|
|
||||||
[install]
|
[install]
|
||||||
[install.domain]
|
[install.domain]
|
||||||
# this is a generic question - ask strings are automatically handled by Yunohost's core
|
|
||||||
type = "domain"
|
type = "domain"
|
||||||
|
|
||||||
[install.path]
|
[install.path]
|
||||||
# this is a generic question - ask strings are automatically handled by Yunohost's core
|
|
||||||
type = "path"
|
type = "path"
|
||||||
default = "/example"
|
default = "/example"
|
||||||
|
|
||||||
|
@ -53,16 +51,21 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen
|
||||||
default = "fr"
|
default = "fr"
|
||||||
|
|
||||||
[install.password]
|
[install.password]
|
||||||
# this is a generic question - ask strings are automatically handled by Yunohost's core
|
|
||||||
help.en = "Photoprism currently supports only one user : admin. Choose a password here."
|
help.en = "Photoprism currently supports only one user : admin. Choose a password here."
|
||||||
help.fr = "Photoprism ne permet qu'un seul utilisateur pour le moment. Choisissez un mot de passe ici."
|
help.fr = "Photoprism ne permet qu'un seul utilisateur pour le moment. Choisissez un mot de passe ici."
|
||||||
type = "password"
|
type = "password"
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
[resources.sources]
|
[resources.sources]
|
||||||
[resources.sources.docker-image-extract]
|
url = "photoprism/photoprism"
|
||||||
url = "https://codeload.github.com/jjlin/docker-image-extract/tar.gz/a9e455e44bbbfba897bf3342d9661b182cee67a9"
|
format = docker
|
||||||
sha256 = "9eb0c734e83a3fd7102fc7209af4977024ec467fbc819782491af47295675f67"
|
platform = linux/amd64
|
||||||
|
amd64.sha256 = "sha256:3381d40181ecdf62932e9530c6b81e6e0f8828a3d373d8dedf662aab96dafba4"
|
||||||
|
platform = linux/arm64
|
||||||
|
arm64.sha256 = "sha256:3dcffda0a2b58c91479c883205025edee4ea799fc35be419f9bec708ccb54b7f"
|
||||||
|
platform = linux/armhf
|
||||||
|
armhf.sha256 = "sha256:a74f4d0a220af9a5291307bfba36f662d97c4df143f04d951e3c30111916317e"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
|
@ -114,10 +114,10 @@ ynh_add_nginx_config
|
||||||
ynh_script_progression --message="Making install..."
|
ynh_script_progression --message="Making install..."
|
||||||
|
|
||||||
# Install photoprism
|
# Install photoprism
|
||||||
pushd $install_dir/build
|
# pushd $install_dir/build
|
||||||
detect_arch
|
# detect_arch
|
||||||
./docker-image-extract photoprism/photoprism:$PHOTOPRISM_VERSION
|
# ./docker-image-extract photoprism/photoprism:$PHOTOPRISM_VERSION
|
||||||
popd
|
#popd
|
||||||
mkdir -p "$install_dir/live/"
|
mkdir -p "$install_dir/live/"
|
||||||
rsync -a "$install_dir/build/output/opt/photoprism/" "$install_dir/live/"
|
rsync -a "$install_dir/build/output/opt/photoprism/" "$install_dir/live/"
|
||||||
#REMOVEME? ynh_secure_remove --file="$install_dir/build"
|
#REMOVEME? ynh_secure_remove --file="$install_dir/build"
|
||||||
|
|
Loading…
Add table
Reference in a new issue