Commit Graph

598 Commits (e8af448b3a8cee715b8fe545f373973219a4a000)

Author SHA1 Message Date
Tonis Tiigi e8af448b3a solver: add boltdb cache store and test suite
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-26 17:42:10 -08:00
Tõnis Tiigi cd6e788437
Merge pull request #296 from ijc/support-schema1-manifest
Swallow a NotFound error when deleting content, to support schema 1 m…
2018-02-26 11:31:58 -08:00
Ian Campbell 92101de156 Swallow a NotFound error when deleting content, to support schema 1 manifests
The behaviour of `github.com/containerd/containerd/remotes/docker/schema1` is
such that the manifest is not actually in the content store, so attempting to
delete it fails with `NotFound`, which with the `gateway.v0` frontend results
in:

    time="2018-02-26T17:01:15Z" level=error msg="fatal error: rpc error: code = Unknown desc = content digest sha256:178598e51a26abbc958b8a2e48825c90bc22e641de3d31e18aaf55f3258ba93b: not found"
    panic: rpc error: code = Unknown desc = content digest sha256:178598e51a26abbc958b8a2e48825c90bc22e641de3d31e18aaf55f3258ba93b: not found

It seems safe to just ignore these errors, since `NotFound` is what we wanted
after delete anyway.

This allows support for e.g. `llb.Image("docker.io/docker/whalesay:latest")`

Signed-off-by: Ian Campbell <ijc@docker.com>
2018-02-26 17:08:52 +00:00
Tõnis Tiigi 96ad291c82
Merge pull request #295 from AkihiroSuda/reusable-docker-exporter-
exporter/oci: split reusable dockerexporter
2018-02-26 08:20:11 -08:00
Tõnis Tiigi 9ee3800a08
Merge pull request #290 from tonistiigi/session-prefix
session: clear prefix on lookup
2018-02-26 07:47:58 -08:00
Tõnis Tiigi aa58489e10
Merge pull request #294 from AkihiroSuda/runc-split-snapshotter
worker/oci: allow specifying arbitrary snapshotter factory
2018-02-26 07:33:06 -08:00
Akihiro Suda de73349f01 worker/oci: allow specifying arbitrary snapshotter factory
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2018-02-26 18:15:10 +09:00
Akihiro Suda e008553762 exporter/oci: split reusable dockerexporter
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2018-02-26 18:02:58 +09:00
Akihiro Suda d99b929a64
Merge pull request #292 from tonistiigi/cache-storage
solver: separate cache metadata storage interface
2018-02-26 14:00:46 +09:00
Tonis Tiigi ff7d75def0 solver: separate cache metadata storage interface
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-23 17:44:56 -08:00
Tonis Tiigi b7424f41fd session: clear prefix on lookup
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-23 10:52:55 -08:00
Akihiro Suda 47af144c29
Merge pull request #288 from tonistiigi/implicit-from
dockerfile: fix copy from implicit stage
2018-02-22 13:19:28 +09:00
Tonis Tiigi cd110f6b10 dockerfile: fix copy from implicit stage
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-21 18:17:30 -08:00
Vincent Demeester 40212c5fcd
Merge pull request #286 from AkihiroSuda/oci-worker-overlay-false
worker/oci: allow using naive snapshotter
2018-02-20 14:38:47 +01:00
Akihiro Suda 622d4a442a worker/oci: allow using naive snapshotter
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2018-02-20 12:13:18 +09:00
Akihiro Suda f1d48b453a
Merge pull request #285 from tonistiigi/cache-export
solver: add cache export support
2018-02-20 09:36:13 +09:00
Tonis Tiigi fcacfc8152 solver: add cache export support
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-16 11:30:40 -08:00
Akihiro Suda 481371a99d
Merge pull request #284 from tonistiigi/cache-selector
solver: implement selector for cachemap
2018-02-14 11:35:39 +09:00
Akihiro Suda 794d61c1e6
Merge pull request #280 from tonistiigi/update-containerd
vendor: update containerd to v1.0.2
2018-02-14 11:34:55 +09:00
Tonis Tiigi 23ec7e0239 client: add test for duplicate whiteouts
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-13 16:00:26 -08:00
Tonis Tiigi c71799dff4 client: add test for whiteout parent dirs
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-13 16:00:26 -08:00
Tonis Tiigi 7906fb3085 vendor: update containerd to v1.0.2
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-13 16:00:09 -08:00
Tonis Tiigi 0197a6eaea solver: add tests with selector cache
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-13 09:59:53 -08:00
Tonis Tiigi 71774ae35f solver: add selector support to cache
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-13 09:59:48 -08:00
Tõnis Tiigi c2920e66b4
Merge pull request #283 from tonistiigi/subbuild
solver: add tests for subbuild
2018-02-12 17:38:52 -08:00
Tonis Tiigi 61e81153e7 solver: add tests for subbuild
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-12 11:52:56 -08:00
Akihiro Suda 32cd102781
Merge pull request #281 from tonistiigi/duplicates-test
client: test duplicate entries in result tarballs
2018-02-10 18:33:05 +09:00
Vincent Demeester 5676c633a3
Merge pull request #282 from tonistiigi/test-usage
buildctl: add test for usage
2018-02-10 10:02:00 +01:00
Tonis Tiigi a0d98d3e6b buildctl: add test for usage
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-09 17:16:00 -08:00
Tonis Tiigi d295a16169 client: test duplicate entries in result tarballs
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-09 11:47:07 -08:00
Akihiro Suda 787af956e3
Merge pull request #279 from tonistiigi/ignore-cache
solver: add ignore-cache vertex options
2018-02-09 13:19:30 +09:00
Akihiro Suda da21a0d1ee
Merge pull request #277 from tonistiigi/copy-fix
dockerfile: fix issues with duplicate copy instructions
2018-02-09 11:18:35 +09:00
Tonis Tiigi 40316d68d2 solver: add ignore-cache vertex options
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-08 16:58:20 -08:00
Tonis Tiigi ad6ab8aba2 dockerfile: new tests for copy
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-05 14:33:48 -05:00
Tõnis Tiigi 829cc97607
Merge pull request #271 from tonistiigi/multiple-cache
solver: multiple cache source support
2018-02-04 20:19:12 -08:00
Tonis Tiigi 8ba5564733 solver: allow setting cache source on llb load
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-02 10:44:48 -08:00
Tonis Tiigi cbca88c10b solver: add time/priority order to cache records
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-02 10:44:48 -08:00
Tonis Tiigi 1511e3f1d5 solver: add test for multiple cache sources
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-02 10:44:40 -08:00
Tonis Tiigi 0e902c3ee3 solver: multiple cache sources support
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-02-02 10:44:35 -08:00
Akihiro Suda 994c1a63af
Merge pull request #275 from vdemeester/add-linter-deadcode
Add deadcode to the linter
2018-02-02 11:13:29 +09:00
Tõnis Tiigi 6d2595c6fe
Merge pull request #274 from vdemeester/remove-shell-parser
Remove shell parser for dockerfile2llb, using moby upstream package
2018-02-01 18:03:33 -08:00
Vincent Demeester 79e346f59a
Add deadcode to the linter
it tends to help keeping uneeded code out O:)

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2018-02-01 17:59:04 -08:00
Vincent Demeester 2f162c1138
Remove shell parser for dockerfile2llb, using moby upstream package
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2018-02-01 17:46:51 -08:00
Tõnis Tiigi 55f9b044e2
Merge pull request #273 from vdemeester/bump-docker-docker-remove-fork-need
Bump docker/docker and remove fork
2018-02-01 17:41:20 -08:00
Vincent Demeester 709de9e462
Bump docker/docker and remove fork
The commits buildkit depends on from docker/docker are now merged in
docker/docker so there is no need for using a fork.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2018-02-01 16:50:19 -08:00
Tõnis Tiigi 875d1b4f4f
Merge pull request #270 from vdemeester/clean-some-docker-pkg-deps
Clean some small dependencies on docker/docker package
2018-02-01 16:18:46 -08:00
Vincent Demeester 08373f2381
Clean some small dependencies on docker/docker package
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2018-02-01 16:05:24 -08:00
Tõnis Tiigi fd44e0b067
Merge pull request #269 from AkihiroSuda/c8d-v102rc0
update containerd (binary: v1.0.2-rc.0, library: Feb 1, 2018)
2018-02-01 10:11:53 -08:00
Akihiro Suda e2f4777103 update containerd (binary: v1.0.2-rc.0, library: Feb 1, 2018)
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2018-02-01 18:38:32 +09:00
Tõnis Tiigi 3a8430df6e
Merge pull request #268 from tonistiigi/solver2-updates
solver: new implementation, follow-up #267
2018-01-31 22:50:17 -08:00