Post BARINX39RvEbmVOLY0 by mo@mastodon.ml
(DIR) More posts by mo@mastodon.ml
(DIR) Post #BARDL4OEXI06XnG8GG by drq@mastodon.ml
0 likes, 0 repeats
YAML sucks.
(DIR) Post #BARDSo0PKu9M2tnslU by ZySoua@mastodon.ml
0 likes, 0 repeats
@drq after now having some interactions with it in last week - yes, it does
(DIR) Post #BARDh9QMV08gWpmf8y by drq@mastodon.ml
0 likes, 0 repeats
Docker, I want only one dependency container to have a condition so the service could start, not every one of them.
(DIR) Post #BARFJumKz6ZkM16vCK by drq@mastodon.ml
0 likes, 0 repeats
@redume Because it's YAML's implicit syntax problem.That's what I actually hate the most about it: it's implicit to Hell and back. Yes, on a glance, the file looks lightweight, there's few words in there, but you have to just somehow "know" a lot of random stuff just to correct an attribute in it.
(DIR) Post #BARGLh3P5FcmJxVNke by drq@mastodon.ml
0 likes, 0 repeats
@redume I have one service dependant on the other two.One has to quit before launching said service, the other should start before launching the service (which is the default behaviour).So, I can't just put a colon on one of them and have it have a "service_completed_successfully" condition. So this:``` depends_on: backendb launcher: condition: service_completed_successfully```doesn't work. It reports a YAML error without much of a further explanation. Turns out (after googling and a cheeky little ChatGPT query), that I _have_ to have a condition on both of them, or neither:``` depends_on: backendb: condition: service_started launcher: condition: service_completed_successfully```
(DIR) Post #BARHplF8AmbBxGtLV2 by snakequake@mastodon.ml
0 likes, 0 repeats
@drq YAML is a strict superset of JSON, a valid JSON file is also valid YAML
(DIR) Post #BARHt1kJGvZ20T268u by drq@mastodon.ml
0 likes, 0 repeats
@snakequake > strictYeah, right.
(DIR) Post #BARINX39RvEbmVOLY0 by mo@mastodon.ml
0 likes, 0 repeats
@drq so the problem is still docker, which doesn't support mixing declaration formats@redume
(DIR) Post #BARJBaSd2eMWq6B0Yy by mittorn@masturbated.one
0 likes, 0 repeats
@drq @snakequake какой ужас...
(DIR) Post #BARv5iibDwHUyEHBnU by dside@mastodon.ml
0 likes, 0 repeats
@drq the absolute madman among data languages, merely needs a straightjacket to cease to be a menace to society and to itself. :blobcatgooglydynamite:And by straightjacket I mean a linter with a restrictive style guide. Though I've never seen anyone actually deploy something like this.