-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43801/
-----------------------------------------------------------

Review request for mesos, Gilbert Song and Timothy Chen.


Bugs: MESOS-4499
    https://issues.apache.org/jira/browse/MESOS-4499


Repository: mesos


Description
-------

This is the first step of cleaning up the docker registry puller/client code 
base. I did the following simplications:

1) Simplify the paths functions. The getImageArchiveXXX functions are redundant.
2) Simplify the Puller::pull interface. We just need to return layer ids and no 
need to return path.
3) Used untar from command utils, and kill the same function in puller.cpp.
4) A lot of consistency fixes, including using the same type and name.
5) A lot of style fixes.

The next step will be to cleanup and refactor registry_puller to use uri 
Fetcher (docker plugin) to download manifest and blobs (and kill registry 
client).


Diffs
-----

  src/slave/containerizer/mesos/provisioner/docker/local_puller.hpp 
811c24b43f7aec9db406dd521770c6cd82097c92 
  src/slave/containerizer/mesos/provisioner/docker/local_puller.cpp 
f3e7c042f2c9980f6274c8185ee8bb89a8b02002 
  src/slave/containerizer/mesos/provisioner/docker/paths.hpp 
d2b0cf95e5ed7664071484a27a2a1f9bafff70d6 
  src/slave/containerizer/mesos/provisioner/docker/paths.cpp 
82d92a2a9cce181eb283395a32e93cbb1586703b 
  src/slave/containerizer/mesos/provisioner/docker/puller.hpp 
5b2d72c22fcbcc379b4901607cf3eb682de66206 
  src/slave/containerizer/mesos/provisioner/docker/puller.cpp 
a239b97557ad20353c67050dbc89ef16da898330 
  src/slave/containerizer/mesos/provisioner/docker/registry_puller.hpp 
bccbac11113357cf942446604e6cf5d16c3d594b 
  src/slave/containerizer/mesos/provisioner/docker/registry_puller.cpp 
3fcf1471a035e35a2cac22442655ad65a84a9793 
  src/slave/containerizer/mesos/provisioner/docker/store.hpp 
880e216e33dd178d0baa47d3958c84cda4d9e25e 
  src/slave/containerizer/mesos/provisioner/docker/store.cpp 
2f1d3e002140f34c646aab445a419c9c3d712f99 
  src/tests/containerizer/provisioner_docker_tests.cpp 
4db6793a21abbb7ea4de0d0fca0431237d38d013 

Diff: https://reviews.apache.org/r/43801/diff/


Testing
-------

make check


Thanks,

Jie Yu

Reply via email to