-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add possibility to select services in docker_compose() #6423
Comments
i just tried this and it worked like i expected?
What am i missing? Here are the docs: https://docs.tilt.dev/disable_resources |
Following my previous example, I was thinking about something like the following, in the Tiltfile: docker_compose('./docker-compose.yml', services=['svcs2','svcs3'])
yamlDeploy = helm(
'./path/to/svcs1-helm-chart',
name='svcs1',
values=['./path/to/svcs1-helm-values.yaml']
)
k8s_yaml(yamlDeploy) So, when I run I understand that this could be solved by removing Let me know if I got something wrong. |
i think you can do this with something like:
|
it doesn't look like a feasible solution, because to disable a couple of resources I need to rename them (which could be fine), but then I need to enable everything else, that, in some cases I am working on, it could go up to 15 resources or more, that are not coming from the docker-compose file. It is true that the same holds for I wonder whether it exists a |
i guess you could also use docker-compose overrides to accomplish this: Tiltfile:
docker-compose.override.yaml
|
Good, I guess the solutions you provided will satisfy most of the people out there 💪. I'll leave it to you whether you want to close this or not. |
Describe the Feature You Want
When using the function
docker_compose()
it would be good to select which services to deployCurrent Behavior
doker_compose('docker-compose.yml')
deploys all the services defined in the docker-compose.yaml file and there is no easy way to select which service to deploy. However, if I am using only docker-compose, without Tilt, assuming the docker-compose.yml contains 3 services (svcs1
,svcs2
,svc3
), I can easily select which one to spin up usingdocker-compose up svcs2 svcs3
.Why Do You Want This?
The docker-compose file may contain some services that are not needed in Tilt, moreover it feels like Tilt should expose this docker-compose feature.
Sometimes docker-compose and Tilt are used together even though they overlap a bit on their scope. That's why in the docker-compose file you may have services that you may not want in Tilt.
The text was updated successfully, but these errors were encountered: