Enhance Travis-CI test to verify that the docker build completes successfully
Closed this issue · 7 comments
ptitzler commented
This test should be performed after flake8 testing.
bdwyer2 commented
@ptitzler I think that if the docker build fails then everything will fail. I will verify this with a test PR
ptitzler commented
In #20 this line
- docker run -it -d -p 5000:5000 max-question-answering-web-app
is incorrect because port 5000 is not exposed:
https://github.com/IBM/MAX-Question-Answering-Web-App/blob/master/Dockerfile#L23
In general I believe it would have been better to run the docker build after flake 8 (in the scripts section). The motivation is that the source code must be syntactically error free before one would attempt to package it. But I guess one that doesn't change the outcome materially.
bdwyer2 commented
We can change add docker ps | grep max-question-answering-web-app
to the script section and move flake8
to the build section