2018-07-07 00:02:09 +03:00
|
|
|
# containerd-packaging
|
|
|
|
|
|
|
|
# Usage:
|
|
|
|
|
2020-03-27 01:48:58 +03:00
|
|
|
To build a distro-specific package (rpm or deb):
|
2018-07-07 00:02:09 +03:00
|
|
|
|
2020-03-27 01:48:58 +03:00
|
|
|
```bash
|
|
|
|
make clean
|
|
|
|
make docker.io/library/<distro>:<version> [docker.io/library/<distro>:<version> ...]
|
2018-07-07 00:02:09 +03:00
|
|
|
|
2020-03-27 01:48:58 +03:00
|
|
|
# for example:
|
|
|
|
# make docker.io/library/centos:7
|
|
|
|
# make docker.io/library/ubuntu:bionic
|
|
|
|
```
|
|
|
|
|
|
|
|
After build completes, packages can be found in the `build` directory.
|
|
|
|
|
|
|
|
## Building a package from a local source directory
|
|
|
|
|
|
|
|
Specify the path to the local source directory using `CONTAINERD_DIR` and/or
|
|
|
|
`RUNC_DIR`:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make REF=<git reference> CONTAINERD_DIR=<path to repository> docker.io/library/<distro>:<version>
|
|
|
|
```
|
|
|
|
|
|
|
|
For example:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make clean
|
|
|
|
make REF=HEAD CONTAINERD_DIR=/home/me/go/src/github.com/containerd/containerd docker.io/library/ubuntu:bionic
|
2018-07-07 00:02:09 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
## For package maintainers:
|
|
|
|
|
|
|
|
* [deb package maintainers guide](debian/README.md)
|
|
|
|
* [rpm package maintainers guide](rpm/README.md)
|