Commit Graph

11956 Commits

Author SHA1 Message Date
Derek McGowan
3fb31b5a68 Merge pull request #820 from containerd/add-fossa-badge
Add license scanning badge
2017-05-09 10:08:59 -07:00
Chris Aniszczyk
f240c6d8e3 Add license scanning badge
In CNCF, we are starting to experiment with automated license scanning across our projects to ensure compliance to the CNCF IP Policy. For now, we're experimenting with FOSSA: https://app.fossa.io/reports/50dc07d0-435f-4856-9549-33a5f41bef81

Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
2017-05-09 09:44:24 -05:00
Stephen Day
25a161bf5d Merge pull request #812 from AkihiroSuda/ctr-rootfs
Allow specification of rootfs in ctr
2017-05-08 11:47:07 -07:00
Phil Estes
3e485e4623 Merge pull request #811 from miaoyq/replace-two-Unlock-with-defer-Unlock
User 'defer Unlock' to replace two 'Unlock's
2017-05-08 14:04:33 -04:00
Derek McGowan
b12f18919d Merge pull request #786 from stevvooe/edit-content-command
cmd/dist: add ability to edit content
2017-05-08 10:59:22 -07:00
Daniel, Dao Quang Minh
392dfd656e Merge pull request #792 from coolljt0725/consistent_error
Use consistent errors package
2017-05-08 12:37:36 -05:00
Michael Crosby
eb995311eb Merge pull request #816 from windmilleng/nicks/symlinky
fs: Change CopyDir's utimes call to not follow symlinks
2017-05-08 10:30:05 -07:00
Michael Crosby
e7e60a8a1f Merge pull request #799 from dmcgowan/snapshot-fs-tests
Add test suite for filesystem tests
2017-05-08 10:19:42 -07:00
Nick Santos
e509da9c7d fs: Change CopyDir's utimes call to not follow symlinks
Following symlinks does not look like it was intended behavior here,
and fails if the symlink target has not been copied yet.

Signed-off-by: Nick Santos <nicholas.j.santos@gmail.com>
2017-05-08 13:16:53 -04:00
Michael Crosby
a1d5fc633e Merge pull request #807 from estesp/add-pause-resume
Add pause/resume implementation
2017-05-08 10:15:58 -07:00
Akihiro Suda
825c2ce3cc overlay: abort if backing fs lacks support for d_type
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-05-08 06:54:31 +00:00
Akihiro Suda
6e2457f186 import github.com/moby/moby/pkg/fsutils (v17.05.0-ce) as fs/fsutils
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-05-08 06:46:55 +00:00
Phil Estes
91410874e7
Add pause/unpause implementation
This adds pause and unpause to containerd's execution service and the
same commands to the `ctr` client.

Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
2017-05-06 16:05:37 -04:00
Akihiro Suda
d5707d3ac7 btrfs: auto-detect device
No longer need to set `plugins.snapshot-btrfs.device` manually

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-05-06 17:29:37 +00:00
Justin Cormack
4535198999 Allow specification of rootfs in ctr
carry: justincormack/containerd@ffe684b017

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-05-06 17:26:02 +00:00
Akihiro Suda
e37c337a3b mountinfo: remove unused functions
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-05-06 16:32:46 +00:00
Akihiro Suda
0f21829c2e new package: mountinfo
import github.com/moby/moby/pkg/mount (v17.05.0-ce)

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-05-06 16:29:40 +00:00
Yanqiang Miao
f59c7a87da User 'defer Unlock' to replace two 'Unlock's
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
2017-05-06 14:21:16 +08:00
Stephen Day
73466a200d Merge pull request #810 from crosbymichael/report-may5
Add dev report for may 5
2017-05-05 17:44:33 -07:00
Michael Crosby
284e8bc618 Add dev report for may 5
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-05-05 16:22:36 -07:00
Derek McGowan
aac28c773b Merge pull request #806 from vbatts/allow_no_btrfs
containerd: compile tags to exclude btrfs
2017-05-05 13:51:41 -07:00
Derek McGowan
1d9dcf7b6a Merge pull request #808 from Random-Liu/disable-stdin-in-terminal
Make it possible to disable stdin when terminal is enabled
2017-05-05 13:50:02 -07:00
Random-Liu
f04d74d099 Make it possible to disable stdin when terminal is enabled
Signed-off-by: Random-Liu <lantaol@google.com>
2017-05-05 13:34:29 -07:00
Vincent Batts
55bf3c10f0
containerd: compile tags to exclude btrfs
Leave in btrfs by default, but add go build tags to exclude it.
`go build -tags containerd_no_btrfs` will leave that driver out.
As the current containerd/btrfs code needs link to libbtrfs*.so, but not
all distros provide it.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-05-04 17:30:23 -04:00
Derek McGowan
ae93c236ff Merge pull request #791 from justincormack/unix_build_fixes
Partial port to Darwin and FreeBSD
2017-05-04 10:23:48 -07:00
Justin Cormack
1d27259777 Partial port to Darwin and FreeBSD
This mainly fixes Linux vs generic Unix differences, with some
differences between Darwin and Freebsd (which are close bit not
identical). Should make fixing for other Unix platforms easier.

Note there are not yet `runc` equivalents for these platforms;
my current use case is image manipulation for the `moby` tool.
However there is interest in OCI runtime ports for both platforms.

Current status is that MacOS can build and run `ctr`, `dist`
and `containerd` and some operations are supported. FreeBSD 11
still needs some more fixes to continuity for extended attributes.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-05-04 18:11:53 +01:00
Derek McGowan
98be9f4b4e Merge pull request #800 from stevvooe/revendor-continuity
vendor: move to new continuity import paths
2017-05-04 09:47:25 -07:00
Derek McGowan
566f29c224 Merge pull request #801 from stevvooe/revendor-btrfs
vendor: move to use containerd/btrfs
2017-05-04 09:46:31 -07:00
Phil Estes
c3efbc37bc Merge pull request #798 from sak0/dev
ctr exec: container id must be provided
2017-05-04 12:21:18 -04:00
CuiHaozhi
c88d5b1dc9 ctr exec: container id must be provided
Signed-off-by: CuiHaozhi <cuihz@wise2c.com>
2017-05-04 10:40:33 -04:00
Phil Estes
433f77d3be Merge pull request #804 from krasi-georgiev/ctr-couldnt-exit-when-containerd-is-down
ctr couldn't exit when the grpc containerd server is not running
2017-05-04 10:34:48 -04:00
Krasi Georgiev
0a24b100e3 ctr couldn't exit when the grpc containerd server is not running
Signed-off-by: Krasi Georgiev <krasi.root@gmail.com>
2017-05-04 12:27:01 +03:00
Lantao Liu
4c86ac9d21 Merge pull request #23 from heartlock/fake-execution-service
Add fake execution service
2017-05-03 22:56:58 -07:00
heartlock
e3565bb02c update vendor
Signed-off-by: heartlock <21521209@zju.edu.cn>
2017-05-04 05:00:19 +00:00
heartlock
c6138870e0 Add fake execution service
Signed-off-by: heartlock <21521209@zju.edu.cn>
2017-05-04 05:00:06 +00:00
Stephen J Day
1eb515c038
vendor: move to use containerd/btrfs
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-05-03 18:53:57 -07:00
Stephen J Day
b4c6e5f9d3
vendor: move to new continuity import paths
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-05-03 18:51:41 -07:00
Lantao Liu
0fa4e74e92 Merge pull request #26 from Random-Liu/rename-verify-lint
Rename lint.sh to verify-lint.sh
2017-05-03 17:21:58 -07:00
Lantao Liu
3f0cba9c54 Merge pull request #25 from Random-Liu/add-fake-os
Add OS interface and fake implementation.
2017-05-03 17:06:34 -07:00
Random-Liu
46c788feee Rename lint.sh to verify-lint.sh
Signed-off-by: Random-Liu <lantaol@google.com>
2017-05-03 16:59:49 -07:00
Random-Liu
f61c974faf Add OS interface and fake implementation.
Signed-off-by: Random-Liu <lantaol@google.com>
2017-05-03 16:55:28 -07:00
Michael Crosby
0fe0d8feeb Merge pull request #783 from dmcgowan/resolver-authentication
Pull from all registries
2017-05-03 14:25:52 -07:00
Lantao Liu
1532079c84 Merge pull request #9 from Random-Liu/add-metadata-store
Add the metadata store interface and an in-memory implementation.
2017-05-03 14:18:39 -07:00
Random-Liu
86997f00b2 Add unit test for metadata store
Signed-off-by: Random-Liu <lantaol@google.com>
2017-05-03 14:09:14 -07:00
Random-Liu
0e7fa9de9b Add a sandbox metadata store based on the metadata store
Signed-off-by: Random-Liu <lantaol@google.com>
2017-05-03 14:09:14 -07:00
Random-Liu
36246167d9 Add metadata store
Signed-off-by: Random-Liu <lantaol@google.com>
2017-05-03 14:09:14 -07:00
Derek McGowan
c2c490c66c
Add test suite for filesystem tests
Updates tar tests to use test suite
Add hardlink tests

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-05-03 10:46:46 -07:00
Derek McGowan
57903eacc8
Add Docker resolver tests
Tests resolving, fetching, and using the various authentication
methods supported by the Docker registry protocol.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-05-02 22:01:52 -07:00
Derek McGowan
9d3f452371
Add support for registry authentication
Updates the docker resolver to support authenticating
with registries.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-05-02 22:01:52 -07:00
Stephen J Day
cec8578ff0
cmd/dist: add ability to edit content
This allows one to edit content in the content store with their favorite
editor. It is as simple as this:

```console
$ dist content edit sha256:58e1a1bb75db1b5a24a462dd5e2915277ea06438c3f105138f97eb53149673c4
```

The above will pop up your $EDITOR, where you can make changes to the content.
When you are done, save and the new version will be added to the content store.
The digest of the new content will be printed to stdout:

```console
sha256:247f30ac320db65f3314b63b908a3aeaac5813eade6cabc9198b5883b22807bc
```

We can then retrieve the content quite easily:

```console
$ dist content get sha256:247f30ac320db65f3314b63b908a3aeaac5813eade6cabc9198b5883b22807bc
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
   "config": {
      "mediaType": "application/vnd.docker.container.image.v1+json",
      "size": 1278,
      "digest": "sha256:4a415e3663882fbc554ee830889c68a33b3585503892cc718a4698e91ef2a526"
   },
   "annotations": {},
   "layers": [
      {
         "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
         "size": 1905270,
         "digest": "sha256:627beaf3eaaff1c0bc3311d60fb933c17ad04fe377e1043d9593646d8ae3bfe1"
      }
   ]
}

```

In this case, an annotations field was added to the original manifest.

While this implementation is very simple, we can add all sorts of validation
and tooling to allow one to edit images inline. Coupled with declaring the
mediatype, we could return specific errors that can allow a user to craft
valid, working modifications to images for testing and profit.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-05-02 11:05:14 -07:00