Commit Graph

4032 Commits

Author SHA1 Message Date
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
Michael Crosby
e479165a38
Merge pull request #1903 from darrenstahlmsft/ArchiveOpts
Implement Archive.apply on Windows
2018-01-02 16:08:36 -05:00
Stephen Day
d8cf1f5120
Merge pull request #1945 from dmcgowan/nanosecond-time-and
fs: update nanosecond diff comparison
2018-01-02 11:06:54 -08:00
Kenfe-Mickaël Laventure
3fa104f843
Merge pull request #1930 from crosbymichael/proc-exists
Check that process exists before it is returned
2017-12-27 13:05:47 -08:00
Derek McGowan
88d59d37fa
Update nanosecond diff comparison
Only check content of files if both files have zero nanosecond times.
A zero nanosecond time is considered ambiguous as to whether or
not the timestamp has been truncated by tar. Previously the diff
algorithm was attempting to account for comparisons from a source
to a directory with an applied tar. This condition is no longer
relevant since there is no support for recreating tars directories
which have had a tar extracted. In the case where the older directory
has a truncated timestamp and the newer one does not, this may always
be considered a change. In the case where both are zero, treat the
timestamp as ambiguous and compare content.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-12-26 14:17:03 -08:00
Michael Crosby
ab30079e1b Add @dnephin and @jessvalarezo as reviewers
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-12-21 13:57:54 -05:00
Michael Crosby
33bc250920 Add concept of a review to containerd
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-12-21 13:40:49 -05:00
Michael Crosby
c6b8e57bad Only lock on map get for process state
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-12-21 13:03:51 -05:00
Michael Crosby
8e598fcb21 Check that process exists before it is returned
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-12-21 13:03:51 -05:00
Michael Crosby
c07ede497d
Merge pull request #1940 from schomatis/fix-io-testnewattach-race
Fix race condition in IO test (TestNewAttach)
2017-12-21 13:00:45 -05:00
Phil Estes
634a0e8008
Merge pull request #1939 from schomatis/update-getting-started-stdio
Update getting-started guide with the new IO implementation
2017-12-21 12:58:44 -05:00
Lucas Molas
eda50b1fa6 Fix race condition in IO test (TestNewAttach)
Signed-off-by: Lucas Molas <lmolas@fundacionsadosky.org.ar>
2017-12-21 13:54:22 -03:00
Lucas Molas
f61f60e01e Update getting-started guide with the new stdio implementation
Signed-off-by: Lucas Molas <lmolas@fundacionsadosky.org.ar>
2017-12-21 13:15:53 -03:00
Phil Estes
3affaff67b
Merge pull request #1937 from schomatis/add-native-build-i-option
Add go build option '-i' only for native builds
2017-12-20 23:40:18 -05:00
Lucas Molas
55b5e356de Added go build option '-i' only for native builds
Signed-off-by: Lucas Molas <lmolas@fundacionsadosky.org.ar>
2017-12-20 17:00:47 -03:00
Kenfe-Mickaël Laventure
cd05decbe2
Merge pull request #1936 from kolyshkin/netgo
BUILDING.md: add netgo for static build
2017-12-20 08:46:07 -08:00
Wei Chen
cbc33018b3 ctr: Add a test file to test cpu getCpuVariant
Change-Id: Id9558de2e41b08c41cf7d4b458774e99e24515a0
Signed-off-by: Wei Chen <Wei.Chen@arm.com>
Signed-off-by: Penny Zheng <Penny.Zheng@arm.com>
2017-12-20 14:50:20 +08:00
Wei Chen
2517e13a5e ctr: Add Variant field to default test expected result
This test case should cover the variant field now, as we have
add Variant to default value of spec.platform.

Change-Id: I8359007d40a4b8f6a072510fff2ba604a062afa1
Signed-off-by: Wei Chen <Wei.Chen@arm.com>
Signed-off-by: Penny Zheng <Penny.Zheng@arm.com>
2017-12-20 14:50:01 +08:00
Wei Chen
3192b36ab9 ctr: Add variant to ARM's DefaultSpec string
The variant is required for platform match while pulling images
for ARM platforms. Currently, the cpuVariant only would be assigned
on linux/arm|arm64 platforms. Other platforms this variable would
be empty. So we can use this cpuVariant to initialize the Variant
field.

Change-Id: Ic065be9b502f1e662445daa61a0973bf56385b37
Signed-off-by: Wei Chen <Wei.Chen@arm.com>
Signed-off-by: Penny Zheng <Penny.Zheng@arm.com>
2017-12-20 14:49:56 +08:00
Wei Chen
a047abb1f6 ctr: Identify the platform.variant for ARM platforms
In the commit "26329b2b8d7fd4e290b2b0f0163547f2d79bb817",
dmcgowan/fix-pull-multi-arch, PR#1535. The containerd has enabled the pull
multi-arch image support. But the platform.variant field of OCI for ARM
hadn't been ready at that time, so all ARM images could not pull successfully.

"
docker.io/library/hello-world:latest:
resolved       |++++++++++++++++++++++++++++++++++++++|
index-sha256:3644c0788e3d3823f9e97f757f01d2ddc6eb5458df9d801:
done           |++++++++++++++++++++++++++++++++++++++|
elapsed: 5.1 s
total:  2.7 Ki (533.0 B/s)
unpacking sha256:3d3823f9e97f757f01d2ddc6eb5458df9d801...
ctr: : manifest not found: not found
"

In this patch we'll detect the ARM variants from /proc/cpuinfo. Because Linux
kernel has already detected the ABI, ISA and Features for us. We don't need to
parse them from registers again.

Change-Id: I479b34bf3f52df9f7a6b3c77718b7d316dbf7f69
Signed-off-by: Wei Chen <Wei.Chen@arm.com>
Signed-off-by: Penny Zheng <Penny.Zheng@arm.com>
2017-12-20 14:49:51 +08:00
Wei Chen
4355ba2f83 ctr: Add helpers to database to check Linux and ARM arch
On ARM platforms, we have to prepare the variant for spec.platform.
Currently, this action would only work on Linux/ARM system. We
introduce these two helpers to check running system's OS and Arch.

Change-Id: Iff14087699219413779dd6caf1bf9524db1cc19e
Signed-off-by: Wei Chen <Wei.Chen@arm.com>
2017-12-20 14:49:45 +08:00
Kir Kolyshkin
efc5df5773 BUILDING.md: add netgo for static build
When compiling containerd binaries statically, linker rightfully
complains:

```
+ make BUILDTAGS=static_build 'EXTRA_FLAGS=-buildmode pie'
'EXTRA_LDFLAGS=-extldflags "-fno-PIC -static"'
🇩 bin/ctr
/tmp/go-link-343047789/000000.o: In function
`_cgo_b0c710f30cfd_C2func_getaddrinfo':
/tmp/go-build/net/_obj/cgo-gcc-prolog:46: warning: Using 'getaddrinfo'
in statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
```

The same error appears for ctr, containerd, and containerd-stress
binaries.

The fix is to use Go's own DNS resolver functions, rather than
glibc's getaddrinfo() -- this option is turned on by `netgo` build
tag.

See https://golang.org/pkg/net/ (look for "Name Resolution") for
more details.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2017-12-19 18:16:45 -08:00
Michael Crosby
1a560540b9
Merge pull request #1811 from dnephin/trim-makefile
Move install of dev tools from Makefile to a script
2017-12-18 16:56:29 -05:00
Daniel Nephin
cc9216c1dd Remove go install from Makefile
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-12-18 11:17:24 -05:00
Kenfe-Mickaël Laventure
a921fb65ad
Merge pull request #1904 from dnephin/less-verbose-ci
Less verbose CI output
2017-12-15 16:13:57 -08:00
Derek McGowan
984824d489
Merge pull request #1926 from crosbymichael/ctr-help
Change ctr help for mount from dest to dst
2017-12-15 14:38:20 -08:00
Michael Crosby
9bb2a6f769
Merge pull request #1900 from yanxuean/filter
add and refactor testcase for exchange
2017-12-15 17:35:13 -05:00
Daniel Nephin
274ce69f93 Less verbose build output
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-12-15 16:41:28 -05:00
Michael Crosby
399e3c57c3 Change ctr help for mount from dest to dst
dest is not valid, only destination and dst

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-12-15 16:40:25 -05:00
Phil Estes
71d1e55ca3
Merge pull request #1925 from dmcgowan/parent-directory-inclusion
Fix parent directories not included in tar
2017-12-15 15:51:29 -05:00
Derek McGowan
d4317a1b0d
Fix parent directories not included in tar
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-12-15 12:04:47 -08:00