Child pages
  • Building RPMs using Docker
Skip to end of metadata
Go to start of metadata

Starting with sipXcom 15.10 it is possible to build RPMs using Docker.  This allows you to build RPMs from any Linux distribution (Windows and Mac don't seem to be working yet).

Step-by-step guide

 

Make sure docker is installed and started:

yum install docker
service docker start

Get the build image:

docker pull dizzy/docker-dev-rpm

Clone the sipXcom git repository to a local directory:

git clone https://github.com/sipXcom/sipxecs.git

Check out the branch you are going to build:

cd sipxecs
git checkout -b release-15.10 origin/release-15.10

Set up the build process (make sure you use the correct path):

./build_docker_rpm.sh --source-dir=/usr/local/src/sipxecs --version=15.10 --project=init

Build the RPM you want (again, make sure path is correct):

./build_docker_rpm.sh --source-dir=/usr/local/src/sipxecs --version=15.10 --project=sipXbridge

or build the entire project:

./build_docker_rpm.sh --source-dir=/usr/local/src/sipxecs --version=15.10 --project=sipx

 

After the build is complete, the RPMs will be in 

./build/repo/CentOS_6/x86_64

 

If you want to test specific RPMs, you can replace an individual RPM on your test server by copying the RPM over, and then running:

rpm -iv --replacepkgs --replacefiles sipxbridge-15.10-7870.21f47.x86_64.rpm