Vincent Llorens d4c83d9fb8 [packaging] make docker aware of PKG_VERSION
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
2016-12-08 09:03:14 +00:00

660 B

Packaging synergy-scheduler-manager

Using docker

  1. build the image
cd packaging/docker/{ubuntu-14.04,centos7}
docker build -t scheduler-builder-{centos7,ubuntu-14.04} .
  1. 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.