Commit Graph

8778 Commits

Author SHA1 Message Date
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
Lei Jitang
75b889dd2e Use consistent errors package
Signed-off-by: Lei Jitang <leijitang@huawei.com>
2017-05-02 08:26:06 -04:00
Michael Crosby
92af03f193 Merge pull request #788 from krasi-georgiev/#744-no-shim-crash-with-ctr-list
fixes #744 no-shim will crash containerd with ctr list and ctr info
2017-05-01 11:17:39 -07:00
Krasi Georgiev
0e7e89c0f1 fixes #744 no-shim will crash containerd with ctr list and ctr info
Signed-off-by: Krasi Georgiev <krasi.root@gmail.com>
2017-05-01 18:03:02 +03:00
Stephen Day
19edcb72b5 Merge pull request #784 from crosbymichael/report-aprl28
Add dev report for april 28th
2017-04-28 16:38:06 -05:00
Michael Crosby
317aeea0fd Merge pull request #731 from stevvooe/snapshot-usage
snapshot: add Usage method to Snapshotter
2017-04-28 14:36:34 -07:00
Michael Crosby
ffb6b4ce39 Merge pull request #779 from containerd/update-governance-add-projects
Formalize process for adding new projects
2017-04-28 14:33:11 -07:00
Michael Crosby
96bf630f30 Add dev report for april 28th
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-04-28 14:18:01 -07:00
Derek McGowan
427468c626
Update console vendor
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-04-28 14:17:47 -07:00
Derek McGowan
9a798133cf Merge pull request #774 from AkihiroSuda/fix-err-checking
execution: properly check container.Exec return value
2017-04-28 09:57:04 -07:00
Akihiro Suda
d6f35cb0c8 execution: properly check container.Exec return value
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-04-28 07:14:17 +00:00
Chris Aniszczyk
0be389436e Improve language around adding sub projects
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
2017-04-27 17:20:46 -05:00
Chris Aniszczyk
e9d8bcf77c Formalize process for adding new projects
There should be a lightweight process to add sub projects to
the containerd github organization. Closes #773

Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
2017-04-27 15:52:03 -05:00
Phil Estes
b3640fdc8c Merge pull request #771 from justincormack/appease-vndr
Appease the vndr God
2017-04-27 12:15:00 -04:00
Justin Cormack
299203ade4 Appease the vndr God
Adjust paths that were not canonical.

Add nested vendors that are required.

Now no errors with latest `vndr`.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-04-27 16:51:45 +01:00
Michael Crosby
c4556fcea9 Merge pull request #777 from estesp/travis-update
Ignore `./vendor` content in travis git-validation
2017-04-27 08:36:58 -07:00
Phil Estes
99486b22a8
Ignore ./vendor content in travis git-validation
Ignores vendor content for `make dco` use of git-validation tool.

Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
2017-04-27 10:51:29 -04:00
Phil Estes
f3c5811c35 Merge pull request #765 from dmcgowan/grpc-socket-permissions
Ensure grpc socket is group writable
2017-04-27 10:00:50 -04:00
Stephen J Day
66c504d1bb
snapshot: add Usage method to Snapshotter
To allow the querying of usage for snapshots, we define a new method on
the snapshotter to query the resources in use by a single snapshot.
Conversely, it can be said that if the snapshot was deleted, the
reported amount of usage would be recovered.

There are few problems with this model in the implementation of btrfs
that need to be worked out. In btrfs, it is hard to resolve the amount
of data usage with the use of quotas but these may report valuables that
are incompatible with the model.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-04-26 17:13:52 -07:00
Stephen Day
12d65ceb50 Merge pull request #674 from dmcgowan/fs-hardlink-unmodified
Fix hardlinks in tars for unmodified files
2017-04-26 18:50:12 -05:00
Derek McGowan
4cb0839e41 Ensure grpc socket is group writable
Updates the filemode on the grpc socket to have group write
permission which is needed to perform GRPC. Additionally, ensure
the run directory has the specified group ownership and has group
read and enter permission.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-04-26 14:40:36 -07:00
Stephen Day
d0c7f13e39 Merge pull request #755 from miaoyq/avoid-creating-snapshots-repeatedly
Avoid creating snapshots repeatedly
2017-04-26 15:02:14 -05:00
Lantao Liu
409b946be1 Merge pull request #18 from mikebrow/enable-unit-test
Enables unit tests for Travis build; address nits in Makefile; increase lint timeout to 5min
2017-04-25 11:01:44 -07:00
Michael Crosby
f5adc0e019 Merge pull request #769 from vbatts/doc-correction
snapshot: the examples need context
2017-04-25 10:15:43 -07:00
Phil Estes
3fde908cbf Merge pull request #766 from miaoyq/add-an-alias-for-ctr-list
Add an alias for ctr list
2017-04-25 12:29:21 -04:00
Vincent Batts
7d018f2306
snapshot: the examples need context
the api for these functions have since added `context.Context`

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-04-25 12:18:03 -04:00
Mike Brown
9957ccf958 address lint timeout issue
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2017-04-25 08:38:43 -05:00
Mike Brown
f5d5286ec2 minor cleanup for tabs and comments
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2017-04-25 08:34:45 -05:00
Mike Brown
242cbd4dee Enables unit tests for Travis build
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2017-04-25 07:53:47 -05:00