tilt-dev / tilt-dev/tilt

Add possibility to select services in docker_compose()

Open
#6,423 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
10.1k
Forks
413
Avg merge
1d 10h
Merged PRs (30d)
6

Description

Describe the Feature You Want

When using the function docker_compose() it would be good to select which services to deploy

Current 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 using docker-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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the docker_compose() implementation and trace how the compose file's services are selected and deployed. Compare this with the documented docker-compose up service-selection behavior described in the issue. Done means callers can select specific services while the existing all-services behavior remains available.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker-compose, go
Domain
devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.