Derek McGowan
098ff94b24
Add snapshot and diff service
...
Remove rootfs service in place of snapshot service. Adds
diff service for extracting and creating diffs. Diff
creation is not yet implemented. This service allows
pulling or creating images without needing root access to
mount. Additionally in the future this will allow containerd
to ensure extractions happen safely in a chroot if needed.
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-05-15 16:50:16 -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
Phil Estes
a12b20ebc4
Merge pull request #748 from miaoyq/del-tmpdir
...
Delete the temporary diractory at the end of the function "ApplyLayer"
2017-04-20 00:10:35 -05:00
Yanqiang Miao
df8ece5a41
Avoid creating snapshots repeatedly
...
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
2017-04-20 12:59:33 +08:00
Yanqiang Miao
c5c6f36e83
Delete the temporary diractory at the end of the function
...
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
2017-04-19 09:52:44 +08:00
Yanqiang Miao
d95e98d049
Remove the redundant type conversion
...
The type of ocispec.Descriptor.Digest is digest.Digest now,
so the type conversion is redundant.
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
2017-04-18 16:55:19 +08:00
Michael Crosby
4f2b443a27
Rewrite imports for new github org
...
This rewrites the Go imports after switching to the new github org.
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-04-03 14:05:44 -07:00
Stephen Day
bb3fbded9c
Merge pull request #632 from dmcgowan/rootfs-fixes
...
Fix rootfs digest computation
2017-03-16 12:04:49 -07:00
Akihiro Suda
6089c1525b
new package: compression (ported from docker/pkg/archive)
...
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-03-16 05:29:27 +00:00
Derek McGowan
4492a2cee3
Fix rootfs digest computation
...
Compute digest from uncompressed archive.
Properly propagate error on unpack.
Rename dist cmd commands to match command name.
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2017-03-15 17:17:25 -07:00
Derek McGowan
b1bc82726f
Rename prepare to unpack and init to prepare
...
Unpack and prepare better map to the actions done by rootfs.
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2017-03-15 16:32:21 -07:00
Derek McGowan
ead425f426
Add rootfs service
...
Add rootfs service to allow creation of rootfs from layer array
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2017-03-15 16:32:21 -07:00
Samuel Karp
b471a84885
rootfs: Add context to Prepare
...
Signed-off-by: Samuel Karp <skarp@amazon.com>
2017-02-26 23:53:29 -08:00
Samuel Karp
4382d553ea
snapshot: Add context to Snapshotter interface
...
Signed-off-by: Samuel Karp <skarp@amazon.com>
2017-02-24 15:23:23 -08:00
Derek McGowan
6443891a7d
Update log lines to use containerd log package
...
Removed unused requires root test function and updated
tar requires function to use lookup method.
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2017-02-17 11:50:49 -08:00
Derek McGowan
f0a43e72cd
Update layer apply to use containerd archive
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2017-02-17 11:50:49 -08:00
Derek McGowan
b399634320
Update rootfs to use snapshot interface
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2017-02-16 12:12:41 -08:00
Akihiro Suda
7fed38881d
rootfs: fix compilation error
...
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-01-23 08:54:57 +00:00
Aaron.L.Xu
08bcbddb32
fix typo I found in this repo
...
Signed-off-by: Aaron.L.Xu <likexu@harmonycloud.cn>
2017-01-20 01:18:26 +08:00
Stephen J Day
460314d667
rootfs: pseudo-implementation of rootfs unpacking
...
This defines a new package for assembling rootfs with layers and
snapshots. We define some base types and operations that represent the
boiled down process of the unpacking a rootfs.
This code is untested but provides a base to work towards a full
implementation of rootfs unpacking.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-01-17 17:05:28 -08:00