Commit Graph

3512 Commits

Author SHA1 Message Date
Michael Crosby
45fbc3b3c2
Merge pull request #1975 from dnephin/add-unconvert-linter
Add unconvert linter
2018-01-10 10:54:00 -05:00
Michael Crosby
787e1a2b69
Merge pull request #1970 from dmcgowan/lease-add-on-writer
metadata: add content lease on existing content
2018-01-10 10:49:00 -05:00
Kenfe-Mickaël Laventure
723196b268
Merge pull request #1981 from stevvooe/update-ttrpc-closed
vendor: update ttrpc for shutdown fix
2018-01-09 17:20:31 -08:00
Stephen J Day
87cb12de32
vendor: update ttrpc for shutdown fix
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2018-01-09 16:13:43 -08:00
Phil Estes
29ddd3d5fb
Merge pull request #1931 from dmcgowan/tar-diff-include-parent-dirs
archive: track and include parent directories
2018-01-09 17:38:02 -05:00
Daniel Nephin
184bc25629 Add unconvert linter
This linter checks for unnecessary type convertions.

Some convertions are whitelisted because their type is different
on 32bit platforms

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2018-01-09 17:36:44 -05:00
Derek McGowan
0d8b093361
metadata: add content lease on existing content
When a writer is requested for an object that already
exists, add that object to the provided any lease to prevent
other operations from affecting the current lease's use of
that content.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2018-01-09 14:33:30 -08:00
Michael Crosby
50a6c62492
Merge pull request #1977 from dnephin/add-vendor-validation
Add a vendor check to CI
2018-01-09 11:38:04 -05:00
Daniel Nephin
315084fa15 Add a vendor check to CI
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2018-01-09 11:06:35 -05:00
Michael Crosby
b5204b77cd
Merge pull request #1978 from mlaventure/ctr-no-pivot-root
Add no-pivot flag to ctr
2018-01-09 10:59:42 -05:00
Kenfe-Mickaël Laventure
2fb85c6f01
Merge pull request #1979 from crosbymichael/badge
Add CII badge for containerd
2018-01-09 07:52:53 -08:00
Kenfe-Mickael Laventure
0cc79a6ff6
Add no-pivot flag to ctr
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2018-01-09 07:48:30 -08:00
Michael Crosby
f6f0e258f6 Add CCI badge for containerd
Closes #1539

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2018-01-09 10:14:09 -05:00
Michael Crosby
b509e78578
Merge pull request #1976 from dnephin/move-dco-validation-out-of-makefile
Remove DCO check from makefile
2018-01-09 09:27:44 -05:00
Daniel Nephin
ebbcececa1 Remove DCO check from makefile, move to .travis.yml
The DCO check is primarily only relevant as part of CI, so it
doesn't need to be in the Makefile. A contributor looking to
validate their commits can run script/validate/dco.

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2018-01-08 18:35:15 -05:00
Michael Crosby
1df6287150
Merge pull request #1968 from dmcgowan/mount-temp-dir-error-cleanup
mount: clean up error logs and messages in temp mount
2018-01-08 10:39:57 -05:00
Phil Estes
aa68494541
Merge pull request #1972 from weekface/master
Fix some wrong links
2018-01-08 10:09:00 -05:00
weekface
284860d9e3 Fix some wrong links
Signed-off-by: weekface <weekface@gmail.com>
2018-01-08 10:40:09 +08:00
Derek McGowan
dfd7ee122f
Clean up error logs and messages in temp mount
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2018-01-05 15:37:11 -08:00
Stephen Day
632f78a530
Merge pull request #1967 from crosbymichael/grpc-timing
Enable grpc timing histograms
2018-01-05 15:26:49 -08:00
Derek McGowan
89fa154efd
Update metadata image store to be initialized once
The boltdb image store now manages its own transactions when
one is not provided, but allows the caller to pass in a
transaction through the context. This makes the image store
more similar to the content and snapshot stores. Additionally,
use the reference to the metadata database to mark the content
store as dirty after an image has been deleted. The deletion
of an image means a reference to a piece of content is gone
and therefore garbage collection should be run to check if
any resources can be cleaned up as a result.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2018-01-05 13:38:45 -08:00
Derek McGowan
5a54862ae5
Update namespace empty check to use buckets
Directly get and check whether a bucket is empty.
This prevents unnecessarily loading all records of
the buckets into memory just to check existence.
Also added checks for content and snapshots.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2018-01-05 13:38:45 -08:00
Michael Crosby
fd29dbe4c8 Enable grpc timing histograms
This enables the grpc timing histograms via a config option as they are
metrics of high cardinality.

This is useful for perf testing and debugging but should not be the
default on production systems unless needed.

```toml
[metrics]
	grpc_histogram = true

```

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2018-01-05 15:03:15 -05:00
Derek McGowan
002c0e2901
Merge pull request #1887 from yanxuean/unmount-remove
solve some bug for unmount and improve
2018-01-05 11:05:01 -08:00
Phil Estes
e892671e39
Merge pull request #1965 from crosbymichael/hold-state-lock
Hold shim lock during state
2018-01-05 12:16:40 -05:00
yanxuean
cb58bb885a solve incorrect unmount
1. add WithTempMount for better unmount and remove
2. solve incorrect unmount for
   diff.DiffMounts,
   diff.Apply,
   oci.WithUsername,
   oci.WithUserID,
   remapRootFS

Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
2018-01-06 00:28:16 +08:00
Michael Crosby
2b29a92a64 Hold shim lock during state
Helps with #1935

This hold the shim lock during the state call to make sure that the task
does not get deleted during a state call.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2018-01-05 11:13:47 -05:00
Phil Estes
8b6909f22f
Merge pull request #1964 from stevvooe/remove-silly-makefile-stuff
Makefile: no need to calculate GOOS
2018-01-05 10:41:38 -05:00
Phil Estes
7688af6f5b
Merge pull request #1963 from crosbymichael/cri-maintainers
Add cri-containerd maintainers and reviewers
2018-01-05 10:38:22 -05:00
Stephen J Day
1c8911b1f1
Makefile: no need to calculate GOOS
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2018-01-04 17:30:01 -08:00
Phil Estes
ab7150f0ff
Merge pull request #1959 from containerd/netlify-config
Add build config for jekyll + netlify
2018-01-04 12:02:22 -05:00
Chris Aniszczyk
b12e5794b1 Force ruby version for docs build
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
2018-01-04 10:49:50 -06:00
Phil Estes
c09086464e
Merge pull request #1958 from crosbymichael/roadmap
Update roadmap.md with issue labels and milestones
2018-01-04 10:55:59 -05:00
Michael Crosby
88685b0475 Update roadmap.md with issue labels and milestones
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2018-01-04 10:47:06 -05:00
Michael Crosby
121a0861cb Add cri-containerd reviewers
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2018-01-04 10:06:13 -05:00
Michael Crosby
18ed54e548 Add cri-containerd maintainers
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2018-01-04 10:01:03 -05:00
Daniel, Dao Quang Minh
5b931ca703
Merge pull request #1941 from crosbymichael/reviewers
Add concept of reviews and 2 new reviewers
2018-01-04 11:53:56 +00:00
Chris Aniszczyk
fea2c381b1 Add build config for jekyll + netlify
https://www.netlify.com/blog/2017/05/11/migrating-your-jekyll-site-to-netlify/

Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
2018-01-03 16:22:22 -06:00
Chris Aniszczyk
eeb5ea8cd4 Create CNAME 2018-01-03 14:40:48 -06:00
Michael Crosby
1a0c7ee8a0
Merge pull request #1955 from containerd/fix-website
Fix website rendering via gh-pages
2018-01-03 15:32:42 -05:00
Chris Aniszczyk
00ad7fe408
Fix website rendering via gh-pages
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2018-01-03 12:07:11 -08:00
Stephen Day
a85b1f85b7
Merge pull request #1956 from dnephin/use-clockwork-for-testing-gc
Small refactor of gc/scheduler to remove import of metadata
2018-01-03 11:56:17 -08:00
Daniel Nephin
06edd193ef Small refactor of gc/scheduler to remove import of metadata
Replace metadata.GCStats with an interface for exposing elapsed time

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2018-01-03 14:36:11 -05:00
Michael Crosby
4e755ad383
Merge pull request #1947 from jessvalarezo/ctr-snapshot-diff
ctr: snapshots diff command
2018-01-03 11:34:29 -05:00
Michael Crosby
556c46d0a9
Merge pull request #1953 from jessvalarezo/diff-key-bug
rootfs: remove upper snapshot after use
2018-01-03 11:23:24 -05:00
Phil Estes
1d896a82c2
Merge pull request #1575 from Weichen81/arm-multi-arch
Fix pull-multi-arch images for Arm
2018-01-03 09:54:24 -05:00
Jess Valarezo
5bc0c43c73 rootfs: remove upper snapshot after use
Signed-off-by: Jess Valarezo <valarezo.jessica@gmail.com>
2018-01-02 21:23:35 -05:00
Jess Valarezo
625eb5e661 ctr: snapshots diff command
Signed-off-by: Jess Valarezo <valarezo.jessica@gmail.com>
2018-01-02 21:18:12 -05:00
Derek McGowan
fdc9840e63
Revert "Emit unmodified change events for directories"
This reverts commit ba10e497b9.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2018-01-02 16:01:31 -08:00
Derek McGowan
c9dd974c27
Add parent directories to tar
Alternate solution which better accounts for hard links.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2018-01-02 16:01:31 -08:00