servantes demo project contains the line
dc_resource('fortune', image='fortune_for_dc')
But this command is not documented at https://docs.tilt.dev/api.html#api.k8s_resource
Thanks for the report!
@maiamcc do you remember what this is for and if it still works?
Oh shoot yes this thing! It's the Docker Compose equivalent of k8s_resource -- you use it to configure a Docker Compose resource, but the functionality is currently kind of limited:
image argument is vestigial -- it used to associate an image with your DC resource, but now this is done automatically. (What it _can't_ do that it should be able to to do is override the image named in docker-compose.yml if the image you specify in dc_resource is different...)trigger_mode - configure how the service updates (automatically or manually)In future, you'll be able to set things like port forwards with this function.
Great eye, @kvokka -- I'll update the docs and fix the demo app/required arg behavior sometime this week!