|
9 | 9 | @echo " " |
10 | 10 | @echo " build-push build image and upload to ghcr.io" |
11 | 11 | @echo " " |
12 | | - @echo " deploy28 deploy example to registered 'docker_dev' for Nextcloud 28" |
| 12 | + @echo " deploy deploy example to registered 'docker_dev' for Nextcloud Last" |
13 | 13 | @echo " deploy27 deploy example to registered 'docker_dev' for Nextcloud 27" |
14 | 14 | @echo " " |
15 | | - @echo " run28 install UpScaler for Nextcloud 28" |
| 15 | + @echo " run install UpScaler for Nextcloud Last" |
16 | 16 | @echo " run27 install UpScaler for Nextcloud 27" |
17 | 17 | @echo " " |
18 | 18 | @echo " For development of this example use PyCharm run configurations. Development is always set for last Nextcloud." |
19 | 19 | @echo " First run 'upscaler_example' and then 'make register', after that you can use/debug/develop it and easy test." |
20 | 20 | @echo " " |
21 | | - @echo " register28 perform registration of running 'upscaler_example' into 'manual_install' deploy daemon." |
| 21 | + @echo " register perform registration of running 'upscaler_example' into 'manual_install' deploy daemon." |
22 | 22 | @echo " register27 perform registration of running 'upscaler_example' into 'manual_install' deploy daemon." |
23 | 23 |
|
24 | 24 | .PHONY: build-push |
25 | 25 | build-push: |
26 | 26 | docker login ghcr.io |
27 | | - docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ghcr.io/cloud-py-api/upscaler_example:1.2.0 --tag ghcr.io/cloud-py-api/upscaler_example:latest . |
| 27 | + docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ghcr.io/cloud-py-api/upscaler_example:1.3.0 --tag ghcr.io/cloud-py-api/upscaler_example:latest . |
28 | 28 |
|
29 | | -.PHONY: deploy28 |
30 | | -deploy28: |
| 29 | +.PHONY: deploy |
| 30 | +deploy: |
31 | 31 | docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister upscaler_example --silent || true |
32 | 32 | docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:deploy upscaler_example docker_dev \ |
33 | 33 | --info-xml https://raw.githubusercontent.com/cloud-py-api/upscaler_example/main/appinfo/info.xml |
34 | 34 |
|
35 | | -.PHONY: run28 |
36 | | -run28: |
37 | | - docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister upscaler_example --silent || true |
38 | | - docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register upscaler_example docker_dev \ |
39 | | - --force-scopes \ |
40 | | - --info-xml https://raw.githubusercontent.com/cloud-py-api/upscaler_example/main/appinfo/info.xml |
41 | | - |
42 | 35 | .PHONY: deploy27 |
43 | 36 | deploy27: |
44 | 37 | docker exec master-stable27-1 sudo -u www-data php occ app_api:app:unregister upscaler_example --silent || true |
45 | 38 | docker exec master-stable27-1 sudo -u www-data php occ app_api:app:deploy upscaler_example docker_dev \ |
46 | 39 | --info-xml https://raw.githubusercontent.com/cloud-py-api/upscaler_example/main/appinfo/info.xml |
47 | 40 |
|
| 41 | +.PHONY: run |
| 42 | +run: |
| 43 | + docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister upscaler_example --silent || true |
| 44 | + docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register upscaler_example docker_dev \ |
| 45 | + --force-scopes \ |
| 46 | + --info-xml https://raw.githubusercontent.com/cloud-py-api/upscaler_example/main/appinfo/info.xml |
| 47 | + |
48 | 48 | .PHONY: run27 |
49 | 49 | run27: |
50 | 50 | docker exec master-stable27-1 sudo -u www-data php occ app_api:app:unregister upscaler_example --silent || true |
51 | 51 | docker exec master-stable27-1 sudo -u www-data php occ app_api:app:register upscaler_example docker_dev \ |
52 | 52 | --force-scopes \ |
53 | 53 | --info-xml https://raw.githubusercontent.com/cloud-py-api/upscaler_example/main/appinfo/info.xml |
54 | 54 |
|
55 | | -.PHONY: register28 |
56 | | -register28: |
| 55 | +.PHONY: register |
| 56 | +register: |
57 | 57 | docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister upscaler_example --silent || true |
58 | 58 | docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register upscaler_example manual_install --json-info \ |
59 | 59 | "{\"appid\":\"upscaler_example\",\"name\":\"upscaler_example\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"host\":\"host.docker.internal\",\"port\":10050,\"scopes\":{\"required\":[\"FILES\", \"NOTIFICATIONS\"],\"optional\":[]},\"protocol\":\"http\",\"system_app\":0}" \ |
|
0 commit comments