3 ms·
We have 100 Go services (with redpanda) and a few databases in docker-compose on dev laptops. It works well when and we buy the biggest memory MacBooks availabl
by adamdecaf 2y ago
We have 100 Go services (with redpanda) and a few databases in docker-compose on dev laptops. It works well when and we buy the biggest memory MacBooks available.
https://moov.io/blog/education/moovs-approach-to-setup-and-testing/ https://moov.io/blog/education/moovs-approach-to-setup-and-t...
- JasonSage 2y agoYour success with this strategy correlates more strongly with ‘Go’ than ‘100 services’ so it’s more anecdotal than generally-acceptable that you can run 100 services locally without issues. Of course you can. Buying the biggest MacBook available as a baseline criteria for being able to run a stack locally with Docker Compose does not exactly inspire confidence. At my last company we switched our dev environment from Docker Compose to Nix on those same MacBooks and CPU usage when from 300% to <10% overnight.
- ikety 2y agoHave any details on how you've implemented Nix? For my personal projects I use nix without docker and the results are great. However I was always fearful that nix alone wouldn't quite scale as well as nix + docker for complicated environments. I've used the FROM SCRATCH strat with nix: https://mitchellh.com/writing/nix-with-dockerfiles https://mitchellh.com/writing/nix-with-dockerfiles Is that how you implemented it?
- adamdecaf 2y agoBuying the biggest Mac’s also lets developers run an electron app or three (Slack, IDE, Spotify, browser, etc) while running the docker-compose stack.
- JasonSage 2y agoYou're right. My coworkers remarked that they could run Slack and do screensharing while running the apps locally when we removed docker-compose.
- stealthybox 2y agoThat's a huge win -- has your team written about or spoke on this anywhere?
- JasonSage 2y agoNo but I'd be happy to (I maintained the docker-compose stack, our CLI, and did the transition to Nix).
- adamdecaf 2y agoI’d like to learn more about switching compose to nix. We will hit a wall with compose at some point.
- stealthybox 2y agoI'm curious about the # of svc's / stack / company / team size -- if you have your own blog -- would love to read it when you publish could be a cool lightning talk (or part of something longer) maybe it's a good piece for https://nixinthewild.com/ https://nixinthewild.com/ ? I'm @capileigh on twitter and hachyderm.io if you wanna reach out separately -- here is good tho too
- JasonSage 2y agoHey, I plan to reach out when I get some time :) I can see there’s interest in the topic.
- stealthybox 2y agosounds good! it's a cool anecdote :)
- codethief 2y agoHi Jason! Like many others here I'm looking forward to that blog post! :-) For now, could you elaborate on what exactly you mean by transitioning from docker-compose to Nix? Did you start using systemd to orchestrate services? Were you still using Docker containers? If so, did you build the images with Nix? Etc.