Commit Graph

3927 Commits

Author SHA1 Message Date
Michael Crosby
901b2ea2a7
Merge pull request #2595 from fuweid/bugfix_avoid_re_calculate_blob_state
bugfix: avoid to re-calculate blob state for schema1
2018-09-06 10:01:05 -04:00
Wei Fu
9db21deb5d bugfix: avoid to re-calculate blob state for schema1
Use containerd.io/uncompressed label to avoid to re-calculate blob
diffID.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2018-09-06 09:14:56 +08:00
Phil Estes
96986c04db
Merge pull request #2609 from Callisto13/pr-fix-typos
Fix teeny tiny typos
2018-09-05 10:26:07 -04:00
Claudia Beresford
32e6aa742b Fix teeny tiny typos
Signed-off-by: Claudia Beresford <cberesford@pivotal.io>
2018-09-05 14:44:44 +01:00
Phil Estes
87a9d6e22a
Merge pull request #2607 from yanxuean/useless-para
remove useless parameter from newTask
2018-09-04 10:28:28 -05:00
yanxuean
517930187e remove useless parameter from newTask
Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
2018-09-04 10:59:00 +08:00
Akihiro Suda
acced5d58f
Merge pull request #2603 from crosbymichael/test-wait
Wait before start with runtime root test
2018-08-31 14:39:26 -07:00
Michael Crosby
a3d3055d75 Wait before start with runtime root test
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2018-08-31 12:30:03 -04:00
Michael Crosby
d5aebde04c
Merge pull request #2580 from HusterWan/zr/fix-read-empty-timestamp
bugfix: updatedAt timestamp file may be empty
2018-08-31 11:44:28 -04:00
Phil Estes
a09bad557f
Merge pull request #2598 from Random-Liu/fix-state-error-handling
Fix `runc state` error handling.
2018-08-31 08:06:04 -07:00
Phil Estes
399dba5e63
Merge pull request #2599 from jterry75/windows_task_opt
Merge WithResources for Linux/Windows TaskOpts
2018-08-31 08:04:42 -07:00
Phil Estes
ccebed214c
Merge pull request #2601 from crosbymichael/unit
Update unit file for resources and task max
2018-08-31 08:02:57 -07:00
Michael Crosby
4972e3fae6 Update unit file for resources and task max
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2018-08-31 09:35:35 -04:00
Justin Terry (VM)
c48f8dec1f Merge WithResources for Linux/Windows TaskOpts
Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
2018-08-30 12:53:42 -07:00
Phil Estes
777cc50c72
Merge pull request #2592 from jterry75/specs_with_platform
Merges the oci package for Linux and Windows
2018-08-30 11:34:49 -07:00
Lantao Liu
7a4e0806c2 Fix runc state error handling.
Signed-off-by: Lantao Liu <lantaol@google.com>
2018-08-30 10:47:04 -07:00
Justin Terry (VM)
c818a6b13d Merges the oci package for Linux and Windows
On Windows we need to be able to create both Linux and Windows OCI spec
files by default to support WCOW and LCOW scenarios. This merges the
compile time differences into runtime differences between the two based
on the spec and platform the user sets.

It maintains the old behavior with Default specs resulting in the
platform default the binary is compiled for.

Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
2018-08-30 09:46:04 -07:00
Phil Estes
7e66292555
Merge pull request #2597 from masters-of-cats/kill-all-on-host-ns
Do not KillAll on task delete by default
2018-08-30 09:41:29 -07:00
Tom Godkin
b5ccc66c2c Do not kill all on task delete by default
- Still KillAll if the task uses the hosts pid namespace
 - Test for both host pid namespace and normal cases

Co-authored-by: Oliver Stenbom <ostenbom@pivotal.io>
Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
Signed-off-by: Oliver Stenbom <ostenbom@pivotal.io>
2018-08-30 15:58:33 +01:00
Michael Crosby
0649e38c57
Merge pull request #2589 from crosbymichael/shim-robo
Shim locking improvements and context cancel
2018-08-30 10:18:53 -04:00
Michael Wan
92243ff72a bugfix: updatedAt timestamp file may be empty
Signed-off-by: Michael Wan <zirenwan@gmail.com>
2018-08-29 21:49:40 -04:00
Michael Crosby
7cb847b870
Merge pull request #2593 from jterry75/add_win_build
Add Windows build status
2018-08-29 20:33:51 -04:00
Justin Terry (VM)
85eb2c3c83 Add Windows build status
Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
2018-08-29 15:43:07 -07:00
Michael Crosby
2205e8d67a Improve shim locking
Only lock around shim state and not on actions

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2018-08-29 11:22:02 -04:00
Michael Crosby
d50e25360c Add context cancel for epoll
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2018-08-29 10:44:47 -04:00
Michael Crosby
d89ba5ee08
Merge pull request #2591 from dmcgowan/update-release-script
Update release script
2018-08-29 08:26:41 -04:00
Michael Wan
93d3f065ac vendor: update vendor containerd/aufs to commit ffa3997
Signed-off-by: Michael Wan <zirenwan@gmail.com>
2018-08-29 07:30:31 -04:00
Michael Wan
55842b1713 vendor: update github.com/containerd/continuity commit to f44b615
Signed-off-by: Michael Wan <zirenwan@gmail.com>
2018-08-29 05:43:13 -04:00
Derek McGowan
69e7c77e6a
Add option to add links to changelog
Allows creating links in changelog, similar to what Github does
for markdown but works for dependencies as well.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2018-08-28 17:59:40 -07:00
Derek McGowan
f76a5ec83a
Update template
Fix spacing on releases.
Add tag prefix line

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2018-08-28 16:12:56 -07:00
Derek McGowan
ac88082399
Update mailmap file
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2018-08-28 16:12:23 -07:00
Derek McGowan
29eab28b8e
Merge pull request #2583 from jterry75/snapshotter_lcow
Introduce the Windows lcow diff/snaphotter
2018-08-28 15:20:31 -07:00
Justin Terry (VM)
0110b3c0bc Introduce the Windows lcow diff/snaphotter
Implements the Windows lcow differ/snapshotter responsible for managing
the creation and lifetime of lcow containers on Windows.

Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
2018-08-28 13:51:04 -07:00
Derek McGowan
ce243288e2
Merge pull request #2587 from dmcgowan/release-1.2.0-beta.2
Add 1.2.0 beta 2 release notes
2018-08-28 11:51:26 -07:00
Derek McGowan
b30d032a6a
Add 1.2.0 beta 2 release notes
Combine all 1.2 beta release notes

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2018-08-28 11:20:57 -07:00
Derek McGowan
ce1161f806
Merge pull request #2551 from crosbymichael/stdin-block
Don't block on STDIN open
2018-08-28 10:24:05 -07:00
Michael Crosby
68979c923a
Merge pull request #2586 from dmcgowan/platform-filter-limit
Add a manifest filter limiting the number of matches
2018-08-28 10:24:05 -04:00
Derek McGowan
3d1082e06d
Add a manifest filter limiting the number of matches
Adds a manifest filter for pulling which ensures only one
manifest from a manifest list is pulled even when multiple matches.
Removes unused filter platform list.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2018-08-27 17:03:55 -07:00
Derek McGowan
be42d777ff
Merge pull request #2575 from crosbymichael/workdir
Remove and create workdir if state dir does not exist
2018-08-27 16:19:25 -07:00
Derek McGowan
8a58195aae
Merge pull request #2585 from crosbymichael/low-ports
Add WithAmbientCapabilities opt
2018-08-27 15:45:18 -07:00
Michael Crosby
ac78a5b615 Remove and create workdir if state dir does not exist
This is the case where the work dir could still exist if a machine
reboots, reseting the state dir.  On container creation, we should just
clear out the work dir.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2018-08-27 18:18:50 -04:00
Michael Crosby
4b9b3e8fc9 Add WithAmbientCapabilities opt
Closes #2516

This can be used for non-root users binding to low ports.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2018-08-27 17:16:44 -04:00
Michael Crosby
0a3f87ec2e
Merge pull request #2584 from jterry75/windows_r2_exec_fix
Fix incorrect ID usage in Windows runtime v2
2018-08-27 15:06:18 -04:00
Justin Terry (VM)
e88ec1f1a6 Fix incorrect ID usage in Windows runtime v2
Sometimes the wrong ID was being used because its not correct to assume
that ExecID is always set. The assumption was that for API's where it is
not an exec ID == ExecID but thats not true. ExecID == "" if it is not
an exec. This uses the correct ID in all cases.

Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
2018-08-27 11:08:12 -07:00
Michael Crosby
bc1ff51411 Don't block on STDIN open
This was found testing other runtime shims that are faster than runc(no
containerization).  This is a race that can cause the shim to block
forever.  It's not an issue for out/err because we open both sides of
the pipe, but for stdin, it expects the client to have it opened.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2018-08-27 10:44:53 -04:00
Michael Crosby
6b00aaaf20
Merge pull request #2573 from lifubang/relativepathforrootfs
support relative rootfs path in ctr
2018-08-27 10:25:25 -04:00
Phil Estes
68a5db67ad
Merge pull request #2582 from lifubang/startd
add -detach flag for 'ctr t start'
2018-08-27 22:23:31 +08:00
Michael Crosby
838c1e2acd
Merge pull request #2581 from dmcgowan/platform-matching
Add platform match comparer interface
2018-08-27 10:22:11 -04:00
Lifubang
66f6dd8b3b add -detach flag for 'ctr t start'
Signed-off-by: Lifubang <lifubang@aliyun.com>
2018-08-27 18:43:56 +08:00
Derek McGowan
9edcfcc1cb
Add platform match comparer interface
Adds a new platform interface for matching and comparing platforms.
This new interface allows both filtering and ordering of platforms
to support running multiple platform and choosing the best platform.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2018-08-27 00:11:46 -07:00