tilt-dev / tilt-dev/tilt

tools for debugging the docker build context

Open
#3,324 0 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

A common complaint about Tilt is that people have trouble figuring out what files are in their Docker context, or how those files map into the container.

For example,

  • recognizing that Tilt is ignoring .git (https://github.com/windmilleng/tilt/issues/2169)
  • You added a .dockerignore or .tiltignore or only= or ignore=, but forgot
  • You want to know (in advance) how changes to a docker_build invocation would change the docker context

A simple first step might be to have a command like:

tilt dump context fe

that dumps all the files in the docker build context for image fe, and creates a tarball you can look through

A more advanced step might be to have a command like:

tilt why path/to/file

(similar to yarn why) that can tell you to how Tilt applies rules for including or excluding a file.

An even more advanced step might be having a web UI over these two commands

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 by reviewing the proposed tilt dump context fe command and the examples involving .dockerignore, .tiltignore, only=, and ignore=. The first step is to narrow the issue to one command and define its output; done should mean the selected Docker context and the rules affecting it are inspectable.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
build-system, cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.