Loading README.md +3 −4 Original line number Diff line number Diff line Loading @@ -26,21 +26,20 @@ A Postman collection is also provided, which can be imported directly to the Pos ## Getting started To start the service, follow the steps below Inside the "app" folder ... 1. Copy requirements_template.txt to requirements.txt ``` cp requirements_template.txt requirements.txt cp ./app/requirements_template.txt ./app/requirements.txt ``` 2. Copy app_template.py to app.py ``` cp app_template.py app.py cp ./app/app_template.py ./app/app.py ``` 3. Copy invoker_sdk_config_template.json to invoker_sdk_config.json ``` cp invoker_sdk_config_template.json invoker_sdk_config.json cp ./app/invoker_sdk_config_template.json ./app/invoker_sdk_config.json ``` 4. Add opencapif_sdk in requirements.txt Loading app/app_template.py +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ def onboard(): # with open(OBJ_FILE_INV, 'wb') as f: # pickle.dump(invoker, f) # response_message = "Invoker onboarded with ID: {}".format(d['invoker_id']) # response_message = "Invoker onboarded with ID: {}".format(invoker_id) return response_message Loading stop_invoker.sh +1 −1 Original line number Diff line number Diff line Loading @@ -32,4 +32,4 @@ echo "Stop invoker service for user: $USER_NAME" USER_NAME=$USER_NAME docker compose down sudo rm -R ./app/invoker_info ./app/logs ./app/discoverer.pkl No newline at end of file sudo rm -R ./app/invoker_info ./app/logs ./app/discoverer.pkl ./app/invoker.pkl No newline at end of file Loading
README.md +3 −4 Original line number Diff line number Diff line Loading @@ -26,21 +26,20 @@ A Postman collection is also provided, which can be imported directly to the Pos ## Getting started To start the service, follow the steps below Inside the "app" folder ... 1. Copy requirements_template.txt to requirements.txt ``` cp requirements_template.txt requirements.txt cp ./app/requirements_template.txt ./app/requirements.txt ``` 2. Copy app_template.py to app.py ``` cp app_template.py app.py cp ./app/app_template.py ./app/app.py ``` 3. Copy invoker_sdk_config_template.json to invoker_sdk_config.json ``` cp invoker_sdk_config_template.json invoker_sdk_config.json cp ./app/invoker_sdk_config_template.json ./app/invoker_sdk_config.json ``` 4. Add opencapif_sdk in requirements.txt Loading
app/app_template.py +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ def onboard(): # with open(OBJ_FILE_INV, 'wb') as f: # pickle.dump(invoker, f) # response_message = "Invoker onboarded with ID: {}".format(d['invoker_id']) # response_message = "Invoker onboarded with ID: {}".format(invoker_id) return response_message Loading
stop_invoker.sh +1 −1 Original line number Diff line number Diff line Loading @@ -32,4 +32,4 @@ echo "Stop invoker service for user: $USER_NAME" USER_NAME=$USER_NAME docker compose down sudo rm -R ./app/invoker_info ./app/logs ./app/discoverer.pkl No newline at end of file sudo rm -R ./app/invoker_info ./app/logs ./app/discoverer.pkl ./app/invoker.pkl No newline at end of file