因为项目中使用了gateone实现webssh功能,因此研究了一下geteone的部署方式。发现物理机上经常会出现gateone部署失败的情况,因此使用了docker方式实现gateone的部署。
直接使用官方提供的gateone镜像时,因为tornado版本原因,造成无法启动情况,报错如下:
TypeError: __init__() got an unexpected keyword argument 'io_loop'
Exception AttributeError: "'AutoExpireDict' object has no attribute '_key_watcher'" in <bound method AutoExpireDict.__del__ of {}> ignored
因此自己重新制作镜像,注意:python-imaging需要更换为:python-pil,同时更改了启动脚本代码:update_and_run_gateone.py
目录结构:
<