github.com/cookieai-jar/moby@v17.12.1-ce-rc2+incompatible/reports/builder/2017-07-10.md (about) 1 # Development Report for July 10, 2017 2 3 4 ### BuildKit 5 6 [Repo](https://github.com/moby/buildkit) 7 [Proposal](https://github.com/moby/moby/issues/32925) 8 9 Many new features have been added since the last report. 10 11 The build definition solver was updated to detect the identical parts of the graph sent by different clients and synchronize their processing. This is important when multiple targets of the same project are built at the same time and removes any duplication of work. 12 13 Running build jobs now has support for graceful canceling and clear error reporting in case some build steps fail or are canceled. Bugs that may have left state dir in an inconsistent state of server shutdown were fixed. 14 15 `buildctl du` command now shows all the information about allocated and in-use snapshots. It also shows the total space used and total reclaimable space. All snapshots are now persistent, and state is not lost with server restarts. 16 17 New metadata package was implemented that other packages can use to add persistent and searchable metadata to individual snapshots. First users of that feature are the content blobs mapping on pull, size cache for `du` and instruction cache. There is also a new debug command `buildctl debug dump-metadata` to inspect what data is being stored. 18 19 The first version of instruction cache was implemented. This caching scheme has many benefits compared to the current `docker build` caching as it doesn't require all data to be locally available to determine the cache match. The interface for the cache implementation is much simpler and could be implemented remotely as it only needs to store the cache keys and doesn't need to understand or compare their values. Content-based caching will be implemented on top of this work later. 20 21 Separate source implementation for git repositories is currently in review. Using this source for accessing source code in git repositories has many performance and caching advantages. All the build jobs using the same git remote will use a shared local repository where updates will be pulled. All the nodes based on a git source will be cached using the commit ID of the current checkout. 22 23 Next areas to be worked on will be implementing first exporters for getting access to the build artifacts and porting over the client session/incremental-send feature from `17.07-ce`. 24 25 ### Typed Dockerfile parsing 26 27 [PR](https://github.com/moby/moby/pull/33492) 28 29 The PR is in code review and waiting for feedback. Hopefully ready to be merged this week. 30 31 ### Quality: Dependency interface switch 32 33 No updates for this week. Metadata commands need to be updated but it is probably easier to do it after https://github.com/moby/moby/pull/33492 has been merged. 34 35 ### Proposals for new Dockerfile features that need design feedback: 36 37 [Add IMPORT/EXPORT commands to Dockerfile](https://github.com/moby/moby/issues/32100) 38 39 [Add `DOCKEROS/DOCKERARCH` default ARG to Dockerfile](https://github.com/moby/moby/issues/32487) 40 41 [Add support for `RUN --mount`](https://github.com/moby/moby/issues/32507) 42 43 [DAG image builder](https://github.com/moby/moby/issues/32550) 44 45 [Option to export the hash of the build context](https://github.com/moby/moby/issues/32963) (new) 46 47 [Allow --cache-from=*](https://github.com/moby/moby/issues/33002#issuecomment-299041162) (new) 48 49 [Provide advanced .dockeringore use-cases](https://github.com/moby/moby/issues/12886) [2](https://github.com/moby/moby/issues/12886#issuecomment-306247989) 50 51 New: [RFC: Distributed BuildKit](https://github.com/moby/buildkit/issues/62) 52 53 If you are interested in implementing any of them, leave a comment on the specific issues. 54 55 ### Other builder PRs merged last week 56 57 [build: fix add from remote url](https://github.com/moby/moby/pull/33851) 58 59 ### Builder features currently in code-review: 60 61 [Fix shallow git clone in docker-build](https://github.com/moby/moby/pull/33704) 62 63 ### Backlog 64 65 [Build secrets](https://github.com/moby/moby/issues/33343) has not got much traction. If you want this feature to become a reality, please make yourself heard.