|
1 | 1 | .DEFAULT_GOAL := help
|
2 | 2 |
|
| 3 | +APP_ID := skeleton |
| 4 | +APP_NAME := SkeletonApp |
| 5 | +APP_VERSION := 2.0.0 |
| 6 | +JSON_INFO := "{\"id\":\"$(APP_ID)\",\"name\":\"$(APP_NAME)\",\"daemon_config_name\":\"manual_install\",\"version\":\"$(APP_VERSION)\",\"secret\":\"12345\",\"port\":9030}" |
| 7 | + |
| 8 | + |
3 | 9 | .PHONY: help
|
4 | 10 | help:
|
5 | 11 | @echo "Welcome to Skeleton example. Please use \`make <target>\` where <target> is one of"
|
|
9 | 15 | @echo " "
|
10 | 16 | @echo " build-push build image and upload to ghcr.io"
|
11 | 17 | @echo " "
|
12 |
| - @echo " run28 install Skeleton for Nextcloud 28" |
13 | 18 | @echo " run29 install Skeleton for Nextcloud 29"
|
14 | 19 | @echo " run30 install Skeleton for Nextcloud 30"
|
15 | 20 | @echo " run install Skeleton for Nextcloud Last"
|
16 | 21 | @echo " "
|
17 | 22 | @echo " For development of this example use PyCharm run configurations. Development is always set for last Nextcloud."
|
18 | 23 | @echo " First run 'Skeleton' and then 'make registerXX', after that you can use/debug/develop it and easy test."
|
19 | 24 | @echo " "
|
20 |
| - @echo " register28 perform registration of running Skeleton into the 'manual_install' deploy daemon." |
21 | 25 | @echo " register29 perform registration of running Skeleton into the 'manual_install' deploy daemon."
|
22 | 26 | @echo " register30 perform registration of running Skeleton into the 'manual_install' deploy daemon."
|
23 | 27 | @echo " register perform registration of running Skeleton into the 'manual_install' deploy daemon."
|
24 | 28 |
|
25 | 29 | .PHONY: build-push
|
26 | 30 | build-push:
|
27 | 31 | docker login ghcr.io
|
28 |
| - docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ghcr.io/cloud-py-api/skeleton:latest . |
29 |
| - |
30 |
| -.PHONY: run28 |
31 |
| -run28: |
32 |
| - docker exec master-stable28-1 sudo -u www-data php occ app_api:app:unregister skeleton --silent --force || true |
33 |
| - docker exec master-stable28-1 sudo -u www-data php occ app_api:app:register skeleton --force-scopes \ |
34 |
| - --info-xml https://raw.githubusercontent.com/cloud-py-api/app-skeleton-python/main/appinfo/info.xml |
| 32 | + docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ghcr.io/nextcloud/skeleton:latest . |
35 | 33 |
|
36 | 34 | .PHONY: run29
|
37 | 35 | run29:
|
38 |
| - docker exec master-stable29-1 sudo -u www-data php occ app_api:app:unregister skeleton --silent --force || true |
39 |
| - docker exec master-stable29-1 sudo -u www-data php occ app_api:app:register skeleton --force-scopes \ |
40 |
| - --info-xml https://raw.githubusercontent.com/cloud-py-api/app-skeleton-python/main/appinfo/info.xml |
| 36 | + docker exec master-stable29-1 sudo -u www-data php occ app_api:app:unregister $(APP_ID) --silent --force || true |
| 37 | + docker exec master-stable29-1 sudo -u www-data php occ app_api:app:register $(APP_ID) \ |
| 38 | + --info-xml https://raw.githubusercontent.com/nextcloud/$(APP_ID)/main/appinfo/info.xml |
41 | 39 |
|
42 | 40 | .PHONY: run30
|
43 | 41 | run30:
|
44 |
| - docker exec master-stable30-1 sudo -u www-data php occ app_api:app:unregister skeleton --silent --force || true |
45 |
| - docker exec master-stable30-1 sudo -u www-data php occ app_api:app:register skeleton --force-scopes \ |
46 |
| - --info-xml https://raw.githubusercontent.com/cloud-py-api/app-skeleton-python/main/appinfo/info.xml |
| 42 | + docker exec master-stable30-1 sudo -u www-data php occ app_api:app:unregister $(APP_ID) --silent --force || true |
| 43 | + docker exec master-stable30-1 sudo -u www-data php occ app_api:app:register $(APP_ID) \ |
| 44 | + --info-xml https://raw.githubusercontent.com/nextcloud/$(APP_ID)/main/appinfo/info.xml |
47 | 45 |
|
48 | 46 | .PHONY: run
|
49 | 47 | run:
|
50 |
| - docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister skeleton --silent --force || true |
51 |
| - docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register skeleton --force-scopes \ |
52 |
| - --info-xml https://raw.githubusercontent.com/cloud-py-api/app-skeleton-python/main/appinfo/info.xml |
53 |
| - |
54 |
| -.PHONY: register28 |
55 |
| -register28: |
56 |
| - docker exec master-stable28-1 sudo -u www-data php occ app_api:app:unregister skeleton --silent --force || true |
57 |
| - docker exec master-stable28-1 sudo -u www-data php occ app_api:app:register skeleton manual_install --json-info \ |
58 |
| - "{\"id\":\"skeleton\",\"name\":\"App Skeleton\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"port\":9030,\"scopes\":[]}" \ |
59 |
| - --force-scopes --wait-finish |
| 48 | + docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister $(APP_ID) --silent --force || true |
| 49 | + docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register $(APP_ID) \ |
| 50 | + --info-xml https://raw.githubusercontent.com/nextcloud/$(APP_ID)/main/appinfo/info.xml |
60 | 51 |
|
61 | 52 | .PHONY: register29
|
62 | 53 | register29:
|
63 |
| - docker exec master-stable29-1 sudo -u www-data php occ app_api:app:unregister skeleton --silent --force || true |
64 |
| - docker exec master-stable29-1 sudo -u www-data php occ app_api:app:register skeleton manual_install --json-info \ |
65 |
| - "{\"id\":\"skeleton\",\"name\":\"App Skeleton\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"port\":9030,\"scopes\":[]}" \ |
66 |
| - --force-scopes --wait-finish |
| 54 | + docker exec master-stable29-1 sudo -u www-data php occ app_api:app:unregister $(APP_ID) --silent --force || true |
| 55 | + docker exec master-stable29-1 sudo -u www-data php occ app_api:app:register $(APP_ID) manual_install --json-info $(JSON_INFO) --wait-finish |
67 | 56 |
|
68 | 57 | .PHONY: register30
|
69 | 58 | register30:
|
70 |
| - docker exec master-stable30-1 sudo -u www-data php occ app_api:app:unregister skeleton --silent --force || true |
71 |
| - docker exec master-stable30-1 sudo -u www-data php occ app_api:app:register skeleton manual_install --json-info \ |
72 |
| - "{\"id\":\"skeleton\",\"name\":\"App Skeleton\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"port\":9030,\"scopes\":[]}" \ |
73 |
| - --force-scopes --wait-finish |
| 59 | + docker exec master-stable30-1 sudo -u www-data php occ app_api:app:unregister $(APP_ID) --silent --force || true |
| 60 | + docker exec master-stable30-1 sudo -u www-data php occ app_api:app:register $(APP_ID) manual_install --json-info $(JSON_INFO) --wait-finish |
74 | 61 |
|
75 | 62 | .PHONY: register
|
76 | 63 | register:
|
77 |
| - docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister skeleton --silent --force || true |
78 |
| - docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register skeleton manual_install --json-info \ |
79 |
| - "{\"id\":\"skeleton\",\"name\":\"App Skeleton\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"port\":9030,\"scopes\":[]}" \ |
80 |
| - --force-scopes --wait-finish |
| 64 | + docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister $(APP_ID) --silent --force || true |
| 65 | + docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register $(APP_ID) manual_install --json-info $(JSON_INFO) --wait-finish |
0 commit comments