4 ms·
That's just the tip of the iceberg. My problem is that YAML is not a turing complete language (and dev environments are usually messy by their nature).
by kh_hk 4y ago
That's just the tip of the iceberg. My problem is that YAML is not a turing complete language (and dev environments are usually messy by their nature).
- terseus 4y agoGiven that YAML it's a configuration language I'd say that not being turing complete it's a feature, not a bug nor a limitation; I always want my language files to be declarative to not suffer the perils of logic. Edit: Also, I don't see the need for a turing complete language for something like docker compose, if you need something really complex you can always script a docker-compose.yml generator with all the logic and complexity you need.
- benji-york 4y agoYou might find Cog (https://nedbatchelder.com/code/cog https://nedbatchelder.com/code/cog) helpful for generating YAML on the fly.
- SirSavary 4y agoWhen I need a Turing-complete Compose file, I use Pulumi to spin up the Docker containers and wire things together: https://www.pulumi.com/blog/pulumi-and-docker-development-to-production https://www.pulumi.com/blog/pulumi-and-docker-development-to...