Skip to content

Commit

Permalink
register-daemon(#14)
Browse files Browse the repository at this point in the history
Adjustment to CI to today's App Ecosystem update
  • Loading branch information
bigcat88 authored Jul 2, 2023
1 parent c2f1b64 commit a40e350
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/analysis-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,11 @@ jobs:
echo $! > /tmp/_install.pid
cd ..
sleep 5s
php occ app_ecosystem_v2:daemon:register docker-install Docker unix-socket 0 0 \
--net=host --host="127.0.0.1" --expose-to-host=true
php occ app_ecosystem_v2:app:register $app_name $app_version "NcPyApi" \
--host 127.0.0.1 --port 9002 \
--daemon-config-id 1 \
--port 9002 \
--secret $app_secret \
-e --force-scopes --system-app
kill -15 $(cat /tmp/_install.pid)
Expand Down Expand Up @@ -266,8 +269,11 @@ jobs:
echo $! > /tmp/_install.pid
cd ..
sleep 5s
php occ app_ecosystem_v2:daemon:register docker-install Docker unix-socket 0 0 \
--net=host --host="127.0.0.1" --expose-to-host=true
php occ app_ecosystem_v2:app:register $app_name $app_version "NcPyApi" \
--host 127.0.0.1 --port 9002 \
--daemon-config-id 1 \
--port 9002 \
--secret $app_secret \
-e --force-scopes --system-app
kill -15 $(cat /tmp/_install.pid)
Expand Down Expand Up @@ -392,8 +398,11 @@ jobs:
echo $! > /tmp/_install.pid
cd ..
sleep 5s
php occ app_ecosystem_v2:daemon:register docker-install Docker unix-socket 0 0 \
--net=host --host="127.0.0.1" --expose-to-host=true
php occ app_ecosystem_v2:app:register $app_name $app_version "NcPyApi" \
--host 127.0.0.1 --port 9002 \
--daemon-config-id 1 \
--port 9002 \
--secret $app_secret \
-e --force-scopes --system-app
kill -15 $(cat /tmp/_install.pid)
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ start:
stop:
docker container stop to_gif

register_app:
nextcloud_url=http://nextcloud.local/index.php app_name=nc_py_api app_version=1.0.0 \
app_secret=tC6vkwPhcppjMykD1r0n9NlI95uJMBYjs5blpIcA1PAdoPDmc5qoAjaBAkyocZ6E\
X1T8Pi+T5papEolTLxz3fJSPS8ffC4204YmggxPsbJdCkXHWNPHKWS9B+vTj2SIV \
python3 tests/_install.py

remove:
docker rm to_gif

Expand Down

0 comments on commit a40e350

Please sign in to comment.