Tilt: no documentation for dc_resource method

Created on 18 Sep 2019  路  2Comments  路  Source: tilt-dev/tilt

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

bug docs request

All 2 comments

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jazzdan picture jazzdan  路  3Comments

damoon picture damoon  路  3Comments

qibinlou picture qibinlou  路  4Comments

DblK picture DblK  路  5Comments

dolsem picture dolsem  路  3Comments