3 ms·
I'm an odd one out -- I actually don't like Compose and it may partly have to do with my dislike for YAML. I often have a hard time finding or understanding the
by toastercat 3y ago
I'm an odd one out -- I actually don't like Compose and it may partly have to do with my dislike for YAML. I often have a hard time finding or understanding the docker-compose equivalent of a docker CLI command or flag.
I've taken to replacing docker compose files with bash scripts for my personal projects. So far, it's been OK.
- zelphirkalt 3y agoI share the same feeling about compose. I used to put things in Makefiles, to also have the dependencies of containers of other containers. But I have not yet found a good way to replace `docker compose up' functionality, in case the containers are already running. It does some magic to only replace the containers that need replacing and keeps things running. If anyone has good ideas, please share!
- paradox460 3y agoCheck out earthfiles and earthly. It's kind of a fusion between dockerfiles and makefiles
- mieubrisse 3y agoYou might be interested in what we're building at Kurtosis: you define your app in a deterministic subset of Python, and then we do the magic to change only what's necessary on subsequent runs (what we call "idempotent runs"). It also supports parameterization. Setting up an N-node Cassandra cluster: https://docs.kurtosis.com/how-to-parameterize-cassandra#instantiate-a-3-node-cassandra-cluster https://docs.kurtosis.com/how-to-parameterize-cassandra#inst... Idempotent runs documentation: https://docs.kurtosis.com/concepts-reference/idempotent-runs https://docs.kurtosis.com/concepts-reference/idempotent-runs
- dugite-code 3y ago> I often have a hard time finding or understanding the docker-compose equivalent of a docker CLI command or flag. This site might help: https://www.composerize.com/ https://www.composerize.com/ Also you can also run that site in docker.
- yownie 3y agothanks for this!
- toastercat 3y agoHoly crap thanks.
- gnulinux 3y ago> I've taken to replacing docker compose files with bash scripts for my personal projects. So far, it's been OK. I'm sorry but this is just incredibly messy for anything that's not trivial. We have tons of docker-compose services, all instantiated N times and each having their own network, secret, volume, env var, target etc configuration. In my mind it doesn't make sense to replace a 100 line YAML with a gargantuan messy shell script only old graybeards understand.
- toastercat 3y ago> I'm sorry but this is just incredibly messy for anything that's not trivial. That's why I said "personal projects".
- nsonha 3y agoWhere do all these people who keep complaining about YAML come from? Sure it's not perfect but don't you have other things to do in your dev job? If your job is to write config all day, and nothing else (which is the only reason I think you'd care that much to dislike docker compose JUST because of yml), maybe the thing you actually dislike is the nature of the job?
- toastercat 3y agoYeah, maybe I just don't like docker.