github.com/cvmfs/docker-graphdriver@v0.0.0-20181206110523-155ec6df0521/plugins/README.md (about)

     1  In order to build the plugins is necessary to install the dependencies of this project and also the one of docker.
     2  
     3  I have used [`dep`](https://golang.github.io/dep/) to install the dependencies of this project, simply running `dep ensure` on the root.
     4  
     5  It will populate the `vendor/` dir.
     6  
     7  The it is necessary to install the dependencies of docker.
     8  
     9  So we move inside `vendor/github.com/docker/docker/` and there should be a file called `vendor.conf` which tracks each dependencies along with their commit hash.
    10  
    11  To install them I believe there are several tool but I simply used the first one from google: [`trash`](https://github.com/rancher/trash).
    12  
    13  To recap.
    14  
    15  From the root of the project:
    16  
    17  ```
    18  dep ensure
    19  cd vendor/github.com/docker/docker/
    20  trash
    21  ```
    22  
    23  And now it should be possible to build the two plugins.
    24  
    25  Again from the project root
    26  
    27  ```
    28  cd plugins/overlay2_cvmfs
    29  go build
    30  cd ../aufs_cvmfs
    31  go build
    32  ```