Commit Graph

9017 Commits

Author SHA1 Message Date
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
Lantao Liu
bd1acdf6cd
Merge pull request #511 from miaoyq/update-CONTRIBUTING.md
Update CONTRIBUTING.md
2017-12-19 18:36:56 -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
Yanqiang Miao
aeceef7636 update CONTRIBUTING.md
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
2017-12-19 16:34:29 +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
Lantao Liu
b883157072
Merge pull request #508 from Random-Liu/update-kubernetes
Update kubernetes to v1.9.0.
2017-12-15 17:01:58 -08:00
Lantao Liu
b701b0e496 Add our own DeepCopy.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-12-16 00:23:14 +00:00
Lantao Liu
93519cd85c
Merge pull request #505 from Random-Liu/update-containerd
Update containerd to 6c7abf7c76c1973d4fb4b0bad51691de84869a51.
2017-12-15 16:14:42 -08: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
Lantao Liu
498562022d Update kubernetes to v1.9.0.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-12-15 23:44:23 +00: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
Lantao Liu
9dc6e25498
Merge pull request #507 from Random-Liu/use-sha256
Use sha256 instead of sha1.
2017-12-15 13:32:45 -08: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
Lantao Liu
ea6abcc1d7 Use sha256 instead of sha1.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-12-15 20:12:46 +00: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
Lantao Liu
282e906b5c Update containerd to 6c7abf7c76c1973d4fb4b0bad51691de84869a51.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-12-15 19:51:02 +00:00
Phil Estes
afbbe43745
Merge pull request #1895 from dnephin/refactor-cio
Refactor cio package
2017-12-15 14:44:44 -05:00
Phil Estes
f33f49e30f
Merge pull request #1924 from crosbymichael/fix-gauge
Fix gauge constant
2017-12-15 14:36:20 -05:00
Darren Stahl
c195ebb3e2 Implement archive.Apply on Windows
Signed-off-by: Darren Stahl <darst@microsoft.com>
2017-12-15 11:33:03 -08:00
Lantao Liu
04333d0532
Merge pull request #502 from miaoyq/part-of-385
Compare vendor with hack/versions and update hack/versions
2017-12-15 11:24:11 -08:00
Michael Crosby
0b318b476a Fix gauge constant
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-12-15 14:20:34 -05:00
Phil Estes
5956e152d5
Merge pull request #1923 from crosbymichael/stress-size
Add binary sizes to stress test metrics
2017-12-15 13:19:20 -05:00
Michael Crosby
0725b60402 Add binary sizes to stress test metrics
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-12-15 12:49:59 -05:00
Phil Estes
00bc24fcea
Merge pull request #1917 from dnephin/less-verbose-tests
Less verbose test suite
2017-12-15 12:23:49 -05:00
Phil Estes
7c37625af4
Merge pull request #1914 from stevvooe/stabilize-snapshot-tree-output
cmd/ctr: stablize output of snapshot tree
2017-12-15 12:22:26 -05:00
Kenfe-Mickaël Laventure
05537b0d82
Merge pull request #1922 from crosbymichael/bump-runc
Update runc to 7f24b40cc5423969b4554ef04ba0b00e2
2017-12-15 08:59:33 -08:00
Michael Crosby
a0f7bbb103 Update runc to 7f24b40cc5423969b4554ef04ba0b00e2
This includes fixes for file joining and apparmor without cgo.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-12-15 11:30:22 -05:00
Akihiro Suda
fad72b6ae4
Merge pull request #1910 from crosbymichael/stress-json
Add metrics endpoint to stress test tool
2017-12-15 19:00:17 +09:00
Yanqiang Miao
0520ebc67a Compare vendor with hack/versions and update hack/versions
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
2017-12-15 12:11:07 +08:00
Lantao Liu
072ed48fdf
Merge pull request #503 from Random-Liu/update-crictl
Update cri-tools to v1.0.0-alpha.0.
2017-12-14 13:55:04 -08:00
Lantao Liu
372a9fb643
Merge pull request #500 from Random-Liu/add-kube-up-doc
Add document for kube-up.sh
2017-12-14 12:03:36 -08:00
Phil Estes
5971d369e0
Merge pull request #1916 from dnephin/fix-pull-after-failure
Fix image pull after a failure
2017-12-14 14:54:04 -05:00
Michael Crosby
10ef7f37c7
Merge pull request #1912 from clnperez/threshold-test
check for threshold, not range
2017-12-14 14:53:45 -05:00
Lantao Liu
4396f1d666 Update cri-tools to v1.0.0-alpha.0.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-12-14 19:33:45 +00:00
Lantao Liu
0db64ecf99
Merge pull request #501 from Random-Liu/add-architecture-graph
Add architecture graph for cri-containerd.
2017-12-14 11:21:53 -08:00
Lantao Liu
7c8df861cc Add document for kube-up.sh
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-12-14 19:19:10 +00:00
Lantao Liu
944fdbf0b4 Add architecture graph for cri-containerd.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-12-14 18:44:00 +00:00
Daniel Nephin
49fffe8ec7 Less verbose tests
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-12-14 11:00:40 -05:00