Skip to content

Instantly share code, notes, and snippets.

@giavac
Last active August 29, 2015 14:09
Show Gist options
  • Save giavac/93e391b0e576da43ab60 to your computer and use it in GitHub Desktop.
Save giavac/93e391b0e576da43ab60 to your computer and use it in GitHub Desktop.
How to test a Pull Request for trulabs-asterisk on a docker container
# one of:
docker run -i -t debian:wheezy /bin/bash
docker run -i -t ubuntu:precise /bin/bash
docker run -i -t ubuntu:trusty /bin/bash
apt-get update
apt-get install -y git && apt-get install -y puppet && apt-get install -y vim
mkdir -p git/trulabs && cd git/trulabs && git clone https://github.com/trulabs/puppet-asterisk.git && cd puppet-asterisk
git checkout -b runswithd6s-config-updates master
# Choose the right branch here (github tells you in the PR section)
git pull https://github.com/runswithd6s/puppet-asterisk.git config-updates
# if needed
git config --global user.email "[email protected]" && git config --global user.name "Giacomo Vacca"
puppet module build .
# Choose the right version here
puppet module install pkg/trulabs-asterisk-0.0.5.tar.gz --ignore-dependencies
puppet module install puppetlabs-concat
# Choose the right tests/ manifest
puppet apply -v tests/init.pp --modulepath modules/:/etc/puppet/modules --show_diff --noop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment