When running the image I get the following output.
$ docker run -p 8080:8080 tapi_server
Traceback (most recent call last):
File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/src/app/tapi_server/__main__.py", line 24, in <module>
main()
File "/usr/src/app/tapi_server/__main__.py", line 19, in main
database.context = TapiContext.from_dict(data)
File "/usr/src/app/tapi_server/models/tapi_context.py", line 95, in from_dict
return util.deserialize_model(dikt, cls)
File "/usr/src/app/tapi_server/util.py", line 111, in deserialize_model
setattr(instance, attr, _deserialize(value, attr_type))
File "/usr/src/app/tapi_server/util.py", line 26, in _deserialize
elif type(klass) == typing.GenericMeta:
AttributeError: module 'typing' has no attribute 'GenericMeta'
The container doesn't start.
$ docker --version
Docker version 18.06.1-ce, build e68fc7a
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.12.6
BuildVersion: 16G1618
Following the Docker instructions from here
https://github.com/OpenNetworkingFoundation/TAPI/tree/develop/TAPI_RI/flask_server
I built the image with no issues, see below.
When running the image I get the following output.
The container doesn't start.