wget http://mirror.wazo.community/wazo_current.key -O - | apt-key add -
echo 'deb http://mirror.wazo.community/debian/ xivo-dev-tools main' >/etc/apt/sources.list.d/xivo-dev-tools.list
apt-get update
apt-get install xivo-build-tools
To run with docker.
docker build -t xivo-build-tools .
docker run --user builder \
-v YOUR_SSH_DIR/.ssh/:/home/builder/.ssh \
-v YOUR_CONFIG_DIR/mirror:/etc/xivo-build-tools/mirror \
-v XIVO_GPG_DIR/xivo-keys/gpg/builder/:/tmp/gpg \
-v $(readlink -f $SSH_AUTH_SOCK):/ssh-agent \
-e SSH_AUTH_SOCK=/ssh-agent -it xivo-build-tools
By default the uid of the builder user is 1000. Check the right on your machine for the ssh key.
Build source packages
xivo-build-tools -p wazo-agentd -s
Build package from sources
xivo-build-tools -p wazo-agentd -S
Build all packages
xivo-build-tools -a
Build all packages to mirror
xivo-build-tools -a -m mirror2
Build all packages to mirror with distribution
xivo-build-tools -a -m mirror2 -d unstable
Build all packages with force rebuild (add -f)
xivo-build-tools -a -f
Build all wazo packages for distribution
xivo-build-tools -a -d pelican-bullseye
Build for distribution with branch
xivo-build-tools -d my-distribution-to-test -b my-branch-to-test -p wazo-agentd
Same command with force rebuild (add -f)
xivo-build-tools -d my-distribution-to-test -b my-branch-to-test -p wazo-agentd -f
Build wazo-auth package for pelican-bullseye distribution
xivo-build-tools -d pelican-bullseye -p wazo-auth
Build wazo-agentd package for test distribution, force rebuild and force wazo-version
xivo-build-tools -d test -f -v 13.11 -p wazo-agentd
Build all packages for test distribution, force rebuild and force wazo-version
xivo-build-tools -d test -a -f -v 13.11