ForkbombEu / signroom

Document and data signing platform
6 stars 0 forks source link

Update microservice download #719

Closed matteo-cristino closed 1 month ago

matteo-cristino commented 1 month ago

Since the new version of DIDRoom_microservices to have easier deploy the following is needed:

puria commented 1 month ago

with .zip files AFAIK permissions are lost. .tar.gz can keep them. But .zip is better for cross-os interoperability (the day that ncr will run under windows, shell scripts should work under WSL I guess). Anyhow maybe also .tar.gz is already supported in WSL, no?

All this to say that... yes just put it exlpicit in the makefile ;p

matteo-cristino commented 1 month ago

file permission handling is now done from DIDRoom_microservices Makefile.

MS_NAME and MS_URL are set as empty in the .env.example at this moment. Moreover a check over there value is done and if empty throw to the user the error:

Set MS_NAME and MS_URL in .env respectively to the name of this folder and the url of the service

So that until signroom will handle this correctly the user is told what he needs to do.

bbtgnn commented 1 month ago

Are there any are the updates on this? What do I have to do?

puria commented 1 month ago

Involve @andrea-dintino on suggestions on how to insert the variables from the frontend if missing. If nothing is needed, from his perspective. Then nothing has to be done ;*

andrea-dintino commented 1 month ago

Ok, @puria and myself talked about the issue, we think:

1) Port:

2) Add a warning when the user wants to save/modify the name OR the endpoint of any microservice, saying:

**Are you sure?** 
The name, the enpoint and the port, define the identity of the microservice and have effect on the the deployment and the update. Once a microservice is deployed and initialized, we recommend not change name, endpoint or port

3) after this is done, for each microservice then, the dashboard should create a .env file for each microservice and place it in the microservice folder, the file should look like:

# Don't change, never ever!
FILES_DIR=.     

# Don't change, unless you have something else running on port 8000
ANN_PORT=8000  

# The microservice will run on this port 
UP_PORT= {port_from_dashboard}

# This is the microservice folder, populated by the DIDroom dashboard, from the microservice name 
MS_NAME= {name from dashboard slugify } 

# This is the microservice endpoiny, populated by by the DIDroom dashboard
MS_URL= {endpoiny from dashboard  }