uber-archive / makisu

Fast and flexible Docker image building tool, works in unprivileged containerized environments like Mesos and Kubernetes.
Apache License 2.0
2.41k stars 153 forks source link

Add `--target` option to build command #331

Closed Rowern closed 4 years ago

Rowern commented 4 years ago

Maybe this Closes https://github.com/uber/makisu/issues/262

But I saw https://github.com/uber/makisu/issues/280 and don't really know why makisu should implement stages as tree ?

yiranwang52 commented 4 years ago

Tree is better for calculating cache IDs. Currently stages inherit cache ID from last step of previous stage - which is not necessary if no files are copied between them.

Also in theory it's possible to execute some stages without "RUN" in parallel, or ignore those that not parent of target.