Replies: 1 comment 5 replies
-
I'm not sure you will be able to replace You should be able use the tooling layer API to do this, and inject a You might also be able to create a "compose" like tool within CUEs tooling layer. cc: @shykes @aluzzardi @samalba who have a tool called dagger that might be of interest As far as printing possible concrete configurations from an incomplete value, that sounds like a complex problem with possibly infinite solutions. You might see more desirable output if you remove the concreteness requirement during cue eval, but I suspect it will not reach your desired sophistication. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to wrap my head around how I can use Cue to replace a YAML structure that has
depends_on
, such asdocker-compose.yml
.Something simple might be a Rails API that depends on a Postgres database. Here is an example compose file I have.
When you
docker-compose up
, compose will spin updb
first and thenapi
second. I want to translate this sort of behavior to Cue. My very rough sketch for this where I'm only focusing on the name of the service and the depends on looks something likeNow the part I'm running into a mental block with how to get the full output from
myCompose
.cue eval -c
fails because there is incomplete data,db.success
is has not been defined. In this contrived example I could input that value, but in a more complex branching structure where there are many levels of depends on, I'm struggling to understand how I could paint a full picture of all the possibilities.Imagine wanting to generate a graph showing the different paths / outcomes to a user based on the definition of their Cue file or translating the
services
into database objects with proper relations on what to run next if something is successful.Beta Was this translation helpful? Give feedback.
All reactions