The way the docker image was built was very peculiar... It was pulling the latest version of the loris code then replacing the main webapp.py file with a patched version. Of course very quickly modifications of the function interfaces made it non-functional. So the docker image was not working at all.
Here I just did a quick and dirty fix to make it work again, but I don't consider viable in the long-term. Main points are:
the web server used is a debugging version of the werkzeug run_simple method
the script still pull the latest development version from GitHub which might change
Probably it'd be good if someone more experienced with docker and loris than me (never used any of them before) would have a look into the all project, because
I think considering the relatively complex process of installing a loris server. A docker image would be extremely useful.
The way the docker image was built was very peculiar... It was pulling the latest version of the loris code then replacing the main
webapp.py
file with a patched version. Of course very quickly modifications of the function interfaces made it non-functional. So the docker image was not working at all.Here I just did a quick and dirty fix to make it work again, but I don't consider viable in the long-term. Main points are:
run_simple
methodProbably it'd be good if someone more experienced with docker and loris than me (never used any of them before) would have a look into the all project, because
I think considering the relatively complex process of installing a loris server. A docker image would be extremely useful.