woveon / wovtools

Tools used to maintain kubernetes clusters. Created and used by Woveon.
https://www.woveon.com
Mozilla Public License 2.0
1 stars 0 forks source link

Continuous Code to Container Delivery #44

Open cwingrav opened 5 years ago

cwingrav commented 5 years ago

I've been beating around the edges with 'vh' and pods in cluster. It would be fairly trivial to automate sending of files to a running stage as the user develops. It wouldn't be interactive (though you could log into container as well), but with nodemon instead of node, it would sync locally saved changes to the container in the cluster. Like nodemon locally. Nodemon in container would then restart the container.

ex. wov-mirror CONTAINER <- and it runs continuously until killed...

cwingrav commented 5 years ago

https://askubuntu.com/questions/339230/how-do-i-trigger-rsync-on-file-modification

https://linux.die.net/man/1/inotifywait

Looks like you could easily get this by: 1) build a container using nodemon instead of node 2) change recipes so they write a file to copy in src and a list of files/directories to monitor 3) use https://linux.die.net/man/1/inotifywait to monitor from the monitor files/dirs and then run the rsync/copy recipe, the use kubernetes copy... nodemon will kick in at that point

cwingrav commented 5 years ago

Similar to https://tilt.dev