
When packaging, we can now pass a PKG_VERSION environment variable to docker to force which version is being packaged. If this variable is not passed to docker, then the version is the latest git tag. Change-Id: Id24a076794006ba7675ff5cc320115108b60dee2
660 B
660 B
Packaging synergy-scheduler-manager
Using docker
- build the image
cd packaging/docker/{ubuntu-14.04,centos7}
docker build -t scheduler-builder-{centos7,ubuntu-14.04} .
- run the image
Docker run -i -v /path/to/synergy-scheduler-manager:/tmp/python-synergy-scheduler-manager scheduler-builder-{centos7,ubuntu-14.04}
the deb/rpm will be output in path/to/synergy-scheduler-manager/build
You can override the package version that will be set during the packaging
process by adding -e "PKG_VERSION=x.y.z"
to the above command line.
Otherwise, the package version will be set to the latest git tag.