For building a suitable container for hosting the PERMANENS application in local mode follow the steps in order
Copy inside the repositories of:
- permanens
- permanens_api
- permanens_web
You can clone the repositories (recommended) or copy existing ones
Generate the frontend
cd permanens_web\permanens_web
npm instal --force
npm run build
Copy the distribution folder dist inside permanens_api\static
Build the docker image as usual:
docker build -t permanens_local .
docker login
docker tag permanens_local mpastorphi/permanens_local:latest
docker push mpastorphi/permanens_local:latest
The local host must have a /localdata folder with the following structure: /localdata /localdata/models /localdata/consults
The name "/localdata" is only an example, replace with a suitable path, for example "C:\users\myname\localdata" in a Windows system
IMPORTANT: Copy models (*.dill fils, NOT distributed here) and other relevant files typically found within permanens/models within folder /localdata/models
Import the image and run it with the following commands:
docker pull mpastorphi/permanens_production_latest
docker run -d -p 5000:80 -v /localdata:/data mpastorphi/permanens_local:latest
You will be able to use the application using any browser pointing to the address http://localhost:5000
Permanens has been developed for the project Permanens (https://www.permanens.eu/)
The PERMANENS project is supported by Instituto de Salud Carlos III (ISCIII) and by the European Union NextGenerationEU, Mecanismo para la Recuperación y la Resiliencia (AC22/00006; AC22/00045), the Swedish Innovation Agency (no. 2022-00549), the Research Council of Norway (project no. 342386) and the Health Research Board Ireland (ERAPERMED2022) under the frame of ERA PerMed.