Open michbil opened 8 years ago
@michbil please add info to wiki
@AlexeyAnshakov done
@umairadeeb Current state of docker migration: automatic deployment working ok. What need to be done:
Would also be good if following tasks will be performed in the future:
webhooks.wrioos.com
@umairadeeb you may create it
- Make docker demon start upon server reboot
- Make docker-compose up -d run upon server reboot
- Make webhook listener run upon server reboot /etc/init.d/webhooks
- Stop opsworks deamon, cause it not needed right now.
- Cleanup monit scripts, because services now monitored by docker, seems that none of them are needed right now.
- Move webhook listener to SSL, create service domain, for example webhooks.wrioos.com(consult @AlexeyAnshakov ), create ssl certificate for it using cloudflare and make it work using apache reverse proxy, then close current webhook port
Point number 1, 2, 3, and 6 completed. For point # 4 and 5, I think we should create a separate instance and move our server there instead of using OpsWorks designated instance. For now, we can disable opsworks deployment using travis' configuration file.
Let me know what you guys think.
For point # 4 and 5, I think we should create a separate instance and move our server there instead
sounds good if it will speed up instance. @umairadeeb , you may stop instance and create a new one in the same region and type.
The task is to create automated deployment using docker on the server. Docker image builds are made by the docker hub, sample docker hub is https://hub.docker.com/u/michbil/
Deployment workflow:
Link on webhook workflow: Using webhooks and workflow
Server runs docker-compose https://github.com/michbil/Wrio-Docker-Production Webhooks are triggered on server by https://github.com/cpuguy83/dockerhub-webhook-listener
Webhook for titter shoud do approx this to pull latest image from the hub and restart service