Live data from Hacker News

Docker Compose Isn't Enough

blog.tealok.tech

31–40 of 208 posts

Re: Docker Compose Isn't Enough

#32
post #20

people dramatically overestimate how difficult it is to write a program that controls docker for you. This is one of those things where you can write like two pages of Python and ignore... all this: > Tealok is a runtime we’re building for running containers. If you have one machine and docker-compose is falling short, really, just write a Python script with the official docker Python package, you'll be fine.

> If you have one machine and docker-compose is falling short, really, just write a Python script with the official docker Python package, you'll be fine.

… aand there is even Ansible playbook for that! Maybe overkill.

Re: Docker Compose Isn't Enough

#33
You know you can run multiple processes inside a single container, right?

The solution to the complexity of applications that are distributed as collections of interdependent containers is to put all of the different pieces inside a single container. This is equivalent to what people did before docker existed, and it's still perfectly viable today.

There's no need to over-complicate things.

Re: Docker Compose Isn't Enough

#34
post #20

people dramatically overestimate how difficult it is to write a program that controls docker for you. This is one of those things where you can write like two pages of Python and ignore... all this: > Tealok is a runtime we’re building for running containers. If you have one machine and docker-compose is falling short, really, just write a Python script with the official docker Python package, you'll be fine.

It's more than just a runtime for running containers, from the main landing page it looks like they're really specifically targeting self-hosting for the barely-technical [0]. In that context this article makes some degree of sense: their target audience will probably be legitimately overwhelmed by that pihole example and wouldn't know how to write a Python script to save their life.

If they can pull it off more power to them, but I'm skeptical that what the non-technical self-hoster needs is a TOML DSL that abstracts away ports, volumes, and even database implementations behind a magic text file. At some point you just have to bite the bullet and admit that your audience needs a GUI (like Sandstorm [1]).

[0] https://tealok.tech/

[1] https://sandstorm.io/

Re: Docker Compose Isn't Enough

#35

Comparing oneself to docker compose is a straw man, when docker’s production option is docker swarm.

Not sure why comments aren't jumping on this more. Swarm is for production. compose is for development. That's always been the case. And Swarm is barely more complicated than compose anyway. Don't know why people who are claiming they use compose in production just don't learn the few extra steps to do what Docker recommends.

I thought Swarm had been deprecated?

I just took a quick look into it and (classic) Swarm was deprecated and ... replaced by Swarm (mode).

Re: Docker Compose Isn't Enough

#36

Definitely burying the lede that Tealok is building an alternative to docker compose. Interesting

More interesting is that there are tons of tools that convert docker-compose files to Kubernetes on the fly. Minikube and friends are pretty good and solves all the problems, in a more battle-tested way.

So what is the real business opportunity here?

Re: Docker Compose Isn't Enough

#37
post #7

Shameless plug: I’m building https://canine.sh as a way of turning any managed kubernetes cluster into something as easy to use as Heroku. It’s been super frustrating in the past to be stuck on expensive PaaS vendors, but then rolling a deployment solution from scratch ended up with us trying to stitch together GitHub actions. Been just using canine for my own projects and I’ve been able to host 4 rails & 1 Rust app…

Is canine.sh hosted on Canine?

Re: Docker Compose Isn't Enough

#38
I know this is content marketing fluff for their own product, but complaining that Docker Compose isn't a full-fledged web application platform is idiotic. Use something like Dokku if you need such a solution.

Re: Docker Compose Isn't Enough

#40
This is a fun problem to see on here (for me) - because I solved a lot of these problems at my last company when I built them a dev enviroment that ran over 30 services, and growing.

It was written as a makefile that wrapped docker compose commands, but that's just because it was the easiest to mvp.

I considered it a "framework for running a large collection of containers locally".

I solved the ports issue by using env vars like a switchboard, with an iPortService= and oPortService=

Then i used two directories, one for a data layer that ran datastores, and one for app, for apps. You controlled the layers as groups.

You could operate the layers separately, initialize the dbs, and also reset their storage state definitely.

Then I had to solve the "docker ps" output problem, since its unreadable. So, i just split it to 3 commands: state,ports, & running. It outputs what you expect.

I should re-write it into better code and open source it. It was fun to build.

Post reply on HN