Developer Advocate / Software Engineer / Technology Evangelist
Seasoned pragmatic software engineer and technologist with a passion for all things developer advocacy. Over 20 years experience in building teams, products and communities ranging from tech companies to healthcare with a varying range of technologies from cloud to highly secure On-premises environments.
The problem is that when you try to install the flask app you get the screenshot (1st) that says it cannot find a WSGI runtime (like flask or django).
The answer is, for a container, you need to install the flask runtime in the OS level not the virtual environment level.
Example would be like this (In the Dockerfile) to install the flask runtime during a container build. This will install the runtime correctly and you will not get the WSGI message when trying to create an application.
RUN apt install -y python3-flask
RUN apt install -y python3-django
@Summer Myerson Thanks for the info. Does the container versions of iris also contain those? I looked at the durable volume and didnt see them.
So here is answer is anybody is interested and running Iris for Health in a container and front ended by the nginx webgateway container.
First - What ever url name you use in the web application configuration you will need to add to the nginx config file. See below
Next - when access the url be sure to add the trailing slash (/) otherwise you will get a "url not found on this server message. I'm not sure why this happens as both URLs *should* work?
Hope this helps.
Example:
.png)
URL Name: /csp/flask
You will need to add it to the CSP.conf file for the nginx config like the following
location /csp/flask { CSP ON; CSPNSD_pass 127.0.0.1:7038; CSPNSD_response_headers_maxsize 8k; CSPNSD_connect_timeout 300s; CSPNSD_send_timeout 300s; CSPNSD_read_timeout 300s; }