github.com/docker/docker-ce@v17.12.1-ce-rc2+incompatible/components/packaging/deb/README.md (about)

     1  # Building your own Docker deb package
     2  
     3  `.deb` packages can be built from this directory with the following syntax
     4  
     5  ```shell
     6  make ENGINE_DIR=/path/to/engine CLI_DIR=/path/to/cli deb
     7  ```
     8  
     9  Artifacts will be located in `debbuild` under the following directory structure:
    10  `debbuild/$distro-$distro_version/`
    11  
    12  ### NOTES:
    13  * `ENGINE_DIR` -> Specifies the directory where the engine code is located, eg: `$GOPATH/src/github.com/docker/docker`
    14  * `CLI_DIR` -> Specifies the directory where the cli code is located, eg: `$GOPATH/src/github.com/docker/cli`
    15  
    16  ## Specifying a specific distro
    17  
    18  ```shell
    19  make ENGINE_DIR=/path/to/engine CLI_DIR=/path/to/cli ubuntu
    20  ```
    21  
    22  ## Specifying a specific distro version
    23  ```shell
    24  make ENGINE_DIR=/path/to/engine CLI_DIR=/path/to/cli ubuntu-xenial
    25  ```
    26  
    27  ## Building the latest docker-ce
    28  
    29  ```shell
    30  git clone https://github.com/docker/docker-ce.git
    31  make ENGINE_DIR=docker-ce/components/engine CLI_DIR=docker-ce/components/cli deb
    32  ```