add option to use Docker instead of VM #16
Why not use docker-compose to set up the networks, volumes, etc? Also, why not start ceod automatically in docker, but to use sleep infinity and attach? That seems like bunch of manual steps that can be automated.
We could use docker-compose - I just felt like writing a shell script (feel free to modify).
As for why we
sleep infinity, it's because you're going to need to manually restart ceod if you change the source code. If ceod was the foreground process, this would require killing and re-creating the container. I figured it would be easier to just manually start ceod so that we can Ctrl-C and restart it.
I updated the VM so that we can use the same ceod_dev.ini file in both:
Maybe we can have a simple superviser that restarts ceod on signal? Normally ceod restarts by itself anyways so manual restart would only be needed occasionally (using docker kill -sighup or similiar). Main thing is that I feel having to attach to each individual manually is too much manual work especially when docker can start services by itself.
I can make a pr to this branch with docker-compose and the superviser thing if you want, although I don't want to install docker on my computer right now. Doe any csc machines have docker installed?
I can make a pr to this branch with docker-compose and the superviser thing if you want
Sure, that'd be great.
Doe any csc machines have docker installed?
Unfortunately none of the general-use machines have Docker installed - we haven't figured out a way to do that securely.
Use docker-compose to manage the containers, and start ceod automatically. The service can be restarted with SIGHUP sent by docker/docker-compose. Co-authored-by: Rio6 <email@example.com> Reviewed-on: #19 Co-authored-by: Rio <r345liu@localhost> Co-committed-by: Rio <r345liu@localhost>
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?