feat(container): config in-container host,port and configfile by env #47
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat(container): config in-container host,port and configfile by environment variables && improve entrypoint.sh
这里有一个未使用的环境变量 DEBUG 我没有动, 看原来entrypoint 的逻辑是服务器停了之后进入python。
也就是只能 docker run -it 启动,^C 中断服务器,然后才进入python 。
全文搜索了一下 好像并没有用到。有build_docker_and_test.sh使用DEBUG环境变量, 但是实际没用到后面执行python。
这里修改任何CMD进程都为pid1了,停了之后容器就退出了,没有后续了。目前将‘DEBUG=true 运行 python’ 放到运行服务器前。
目前有了 exec $* 这个功能可能用途不大了。