You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to integrate a REST api into my Docker Container that is running pynetdicom. Not sure if that is possible or how to do that since I think I'd have to run it as a child process or use multithreading or something. All new to me.
I think the basic setup for Flask is:
from flask import Flask, json (probably don't need json if I import it for pydicom)
Looks like I can run one server at a time, but not both. The Flask server does work if I start it first, but then the pynetdicom server does not function. Would be convenient to have both run concurrently so I can post some JSON data to the container and fetch and post some data from a mysql database that I also have integrated in the script and Docker Container.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'd like to integrate a REST api into my Docker Container that is running pynetdicom. Not sure if that is possible or how to do that since I think I'd have to run it as a child process or use multithreading or something. All new to me.
I think the basic setup for Flask is:
from flask import Flask, json (probably don't need json if I import it for pydicom)
and then I have this:
Looks like I can run one server at a time, but not both. The Flask server does work if I start it first, but then the pynetdicom server does not function. Would be convenient to have both run concurrently so I can post some JSON data to the container and fetch and post some data from a mysql database that I also have integrated in the script and Docker Container.
Beta Was this translation helpful? Give feedback.
All reactions