Commit Graph

447 Commits

Author SHA1 Message Date
Lantao Liu
437131299b Merge pull request #230 from miaoyq/ensure-mount-shared-slave
Ensure the mount point is propagated
2017-09-19 00:56:27 -07:00
Yanqiang Miao
49eb38a5d4 Ensure the mount point is propagated
mount with `rshared`, the host path should be shared.
mount with `rslave`, the host pash should be shared or slave.

Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
2017-09-19 14:21:21 +08:00
Lantao Liu
7d25e7a832 Merge pull request #258 from Random-Liu/gcr-private-registry
Gcr private registry and node e2e fix
2017-09-18 12:47:09 -07:00
Lantao Liu
7f8f563019 Enable gcr private registry node e2e test
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-18 18:19:26 +00:00
Lantao Liu
91ca178275 Update containerd to include the gcr private registry fix
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-18 18:19:26 +00:00
Lantao Liu
a8d4940285 Merge pull request #227 from yanxuean/tomldefault
Add a default config file
2017-09-17 22:38:40 -07:00
Lantao Liu
06a305d7ea Merge pull request #255 from Random-Liu/use-config-in-service
Use config in service.
2017-09-17 22:37:06 -07:00
yanxuean
c24a5db242 Add a default config file
fix #226

Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
2017-09-18 08:57:10 +08:00
Lantao Liu
c61757986e Merge pull request #253 from Random-Liu/format-code-a-bit
Format the code a bit.
2017-09-17 12:23:57 -07:00
Lantao Liu
8a03d551da Merge pull request #252 from abhinandanpb/rshared
Setting rootfs mount propagation if the mount type is rshared/shared
2017-09-17 12:23:39 -07:00
Abhinandan Prativadi
abba4e22f6 Setting rootfspropagation if the mount type shared or slave
This is needed by runc to mount volume for containers that expect
biderectional file updates or host to container updates.

Signed-off-by: Abhinandan Prativadi <abhi@docker.com>
2017-09-17 09:59:45 -07:00
Lantao Liu
71b0d0a043 Use config in service.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-17 06:46:40 +00:00
Lantao Liu
3f305e2cf4 Format the code a bit.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-17 03:22:21 +00:00
Lantao Liu
da31647ef8 Merge pull request #247 from ijc/volumes-support
Add image volume support.
2017-09-15 14:33:27 -07:00
Lantao Liu
cd27050425 Add image volume support.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-15 11:25:55 +01:00
Ian Campbell
e0079125d2 Move resolveSymbolicLink to OS package and stub out for tests
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-09-15 11:25:45 +01:00
Ian Campbell
56539bd3a4 Require generateContainerSpec passes during tests and abort if not
This is achieved by switching `assert.NoError` to `require.NoError` in several
places.

Otherwise the test code will continue and dereference a nil spec, leading to a
panic which obscures the real failure.

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-09-15 11:06:25 +01:00
Lantao Liu
3ac019fa36 Merge pull request #244 from mikebrow/containerd-update-9-13
update vendor for containerd, cri-tools, and runc
2017-09-14 13:59:45 -07:00
Mike Brown
8310fb4bfd update vendor
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2017-09-14 12:24:00 -05:00
Lantao Liu
5b44da76e8 Merge pull request #242 from Random-Liu/follow-symlink-for-mount
Follow symlink for mount host path.
2017-09-12 11:17:31 -07:00
Lantao Liu
1fadb5e573 Follow symlink for mount host path.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-12 07:12:03 +00:00
Lantao Liu
4ee0f964ee Merge pull request #237 from Random-Liu/create-host-path
Create host path is mount source does not exist.
2017-09-11 22:29:21 -07:00
Lantao Liu
7429953386 Fix install.deps
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-12 04:47:36 +00:00
Lantao Liu
6cd0f77c4e Create host path is mount source does not exist.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-12 00:58:34 +00:00
Lantao Liu
9558ff2001 Merge pull request #233 from Random-Liu/remove-run-mount
Remove `/run` mount for backward compatibility with docker.
2017-09-09 13:55:33 -07:00
Mike Brown
8253b329e0 Merge pull request #229 from Random-Liu/deploy-release
Deploy release for each branch update.
2017-09-09 12:59:04 -05:00
Lantao Liu
0bfcdd39ab Remove /run mount for backward compatibility with docker.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-09 07:34:00 +00:00
Lantao Liu
b074388460 Update containerd to v1.0.0-beta.0
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-09 04:46:02 +00:00
Lantao Liu
c3d71e32c8 Deploy release for each branch update.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-09 04:46:02 +00:00
Lantao Liu
159fa903cf Merge pull request #232 from Random-Liu/fix-rootfs
Use `WithNewSnapshot` for sandbox container.
2017-09-08 21:45:23 -07:00
Lantao Liu
c4846745d6 Use WithNewSnapshot for sandbox container.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-09 03:59:58 +00:00
Lantao Liu
a86526a90c Merge pull request #228 from Random-Liu/node-e2e-on-branch-update
Run node e2e for both cron and branch update
2017-09-08 16:26:56 -07:00
Lantao Liu
09ecd7865b Merge pull request #231 from Random-Liu/add-systemd-units
Add systemd unit files for containerd and cri-containerd.
2017-09-08 13:33:27 -07:00
Lantao Liu
8c6d5e0ca2 Add systemd unit files for containerd and cri-containerd.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-08 17:44:29 +00:00
Lantao Liu
062abad648 Run node e2e for both cron and branch update
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-07 18:00:11 +00:00
Lantao Liu
777f001432 Merge pull request #200 from yanxuean/tomlconfig
Add config file for cri-containerd
2017-09-07 10:36:32 -07:00
yason
e1a8968f5a add config file for cri-containerd
fix #182

Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
2017-09-07 15:07:47 +08:00
Lantao Liu
7a75a91578 Merge pull request #225 from Random-Liu/update-ocicni
Update ocicni to 73f1309d6bc5c3eac78c1382408921cd771ff22e
2017-09-06 21:04:45 -07:00
Lantao Liu
3e4b4234c6 Merge pull request #218 from miaoyq/fixes-185
Update kubernetes version and support mount propagation
2017-09-06 21:03:56 -07:00
Yanqiang Miao
9da460ec0a Support mount propagation
fixex #185

Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
2017-09-07 08:58:20 +08:00
Lantao Liu
f36ef46b35 Use new ocicni.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-07 00:14:12 +00:00
Lantao Liu
1c0385a650 Update ocicni to 73f1309d6bc5c3eac78c1382408921cd771ff22e
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-07 00:14:01 +00:00
Lantao Liu
a316d1557f Merge pull request #223 from Random-Liu/remove-unused-todo
Remove an addressed TODO.
2017-09-06 17:11:36 -07:00
Lantao Liu
8bc991b545 Merge pull request #211 from Random-Liu/upload-log-to-gcs
Upload node e2e test log to gcs
2017-09-06 16:36:04 -07:00
Lantao Liu
2b6302d91d Remove an addressed TODO.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-06 23:29:27 +00:00
Lantao Liu
49bcfb3665 Upload node e2e test log to gcs
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-06 23:09:50 +00:00
Lantao Liu
34319e025f Merge pull request #221 from ijc/writeable-rootfs-snapshot
Always use a writeable snapshot as the rootfs.
2017-09-06 15:10:28 -07:00
Ian Campbell
0161764ef5 Always use a writeable snapshot as the rootfs.
This will be made readonly by runc based on spec.Root.Readonly (which we
already set correctly) but defering until then gives runc the chance to make
any missing mount points as it processes the spec.Mount array.

This is necessary because many container images lack mount points for things
like the /etc/hosts which we want to overbind. This is not noticed with e.g.
Docker because it automatically creates an additional layer containing those.
This is something we may want to do here as well eventually but for now using a
writeable snapshot is both necessary and sufficient.

The same does not apply to the sandbox since we never modify its rootfs or want
to mount anything in it etc, add a comment to clarify.

Fixes #220.

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-09-06 22:20:14 +01:00
Lantao Liu
e06c2c59e0 Merge pull request #179 from Random-Liu/checkpoint-container-status
Checkpoint container status onto disk.
2017-09-06 13:51:38 -07:00
Lantao Liu
8569fa366e Merge pull request #215 from Random-Liu/add-capability-all
Add "ALL" capabilities support.
2017-09-05 18:14:36 -07:00