tilt-dev / tilt-dev/tilt

tilt can't inject into image builds specified in docker-compose.yml

Open
#2,925 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Create a project with:

  1. A base image specified by docker_build
  2. An app image that builds FROM the base image
  3. A docker_compose.yml that specifies how to build the app image

Expected:
Tilt should be able to build the base image and inject it into the app image

Actual:
Tilt can't find the base image in the app image.

Snapshot: https://cloud.tilt.dev/snapshot/AeqgjuQL-OYCH2ppTQo=
Repro code: https://github.com/windmilleng/nodejs-express-k8s/blob/nicks/dc-base-image/Tiltfile

I think there's a more general bug here that 'build' specified in a docker_compose file and a docker_build in a Tiltfile are implemented very differently, and have lots of gotchas when you try to use them interchangeably

reported by tmc in the tilt k8s channel

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 with the linked reproduction Tiltfile and its docker_compose.yml, then reproduce the base-image and app-image build sequence described in the issue. Compare how docker_build and the Compose build are handled; done means the base image is found and injected when building the app image.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker-compose
Domain
build-system, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.