5 ms·
Works remotely on kubernetes, for us the game changer was running inotify_wait on cygwin for our windows users, changes are up in about 600ms. 1. Configure a s
by pastage 5y ago
Works remotely on kubernetes, for us the game changer was running inotify_wait on cygwin for our windows users, changes are up in about 600ms.
1. Configure a service
2. Use start command sleep infinity
3. Install inotify_wait on windows
4. Do a loop like this
Look for changes, Rsync changes to pod, Pkill java, Run start.sh
We do a grep on changed files and only kill java if jar/classes and other deps has changed, that makes it possible to edit html in pod and get fast updates.
- orlovs 5y agoI have never understood kubernetes development in local development workflow unless kubernetes functionality being developed or some yaml magic. It’s super overhead IMHO. If needed to test api’s as unit test you can always port-forward traffic of desired enpoint or use something like telepresence. Less kubernetes is always better
- erulabs 5y agoIt’s cpu/memory overhead yes, but between matching prod and dev, extremely simple config (redis is always located at “redis:6379”), zero setup instructions (skaffold dev), remote/local hybrid development, and fostering prod-ready skills for developers (still working on that devops koolaid), I find it -extremely- worthwhile. I’ve yet to meet someone who doesn’t hate it to start (because kubernetes) and winds up loving it and swearing by it. It’s essentially a vastly superior “vagrant up” on anabolic steroids
- orlovs 5y agoI agree, for e2e/integration testing, excellent
- mehphp 5y agoHave you seen https://skaffold.dev/ https://skaffold.dev/ ?
- emj 5y agoWhen you have a team that already know the out and ins of Kubernetes it's easier to just use something that has all the integrations you need locally, certs, end points, firewall. Especially when you are not allowed to install things on your local machine.
- eysi 5y agoGarden[1] is a tool we built (yes, I'm affiliated :)) that has a lot of this functionality built-in. Might fit your use case. We recently re-wrote the hot reload functionality to use Mutagen[2] under the hood and it's insanely fast (<200ms anecdotally). It also does two way sync which can be useful. The old implementation used rsync but a lot of our Windows users struggled with that. So I figured I'd share in case that sounds familiar. What happens after a sync event depends on the stack, but we've had pretty good success with Entr[3]. We often have it watch a single file so that multiple watchers in a shared dev cluster don't eat up all the node's resources. 1: https://github.com/garden-io/garden https://github.com/garden-io/garden 2: https://mutagen.io/ https://mutagen.io/ 3: http://eradman.com/entrproject/ http://eradman.com/entrproject/