github.com/docker/docker-ce@v17.12.1-ce-rc2+incompatible/components/packaging/rpm/README.md (about) 1 # Building your own Docker rpm package 2 3 `.rpm` 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 rpm 7 ``` 8 9 Artifacts will be located in `rpmbuild` under the following directory structure: 10 `rpmbuild/$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 fedora 20 ``` 21 22 ## Specifying a specific distro version 23 ```shell 24 make ENGINE_DIR=/path/to/engine CLI_DIR=/path/to/cli fedora-25 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 rpm 32 ```