From 239863d417452e0df94d30f5b0fccbe7e867a17d Mon Sep 17 00:00:00 2001 From: Joe Topjian Date: Wed, 20 Jul 2016 20:20:59 +0000 Subject: [PATCH] provider/rabbitmq: script to build acceptance test environment --- .../rabbitmq/acceptance_env/deploy.sh | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 builtin/providers/rabbitmq/acceptance_env/deploy.sh diff --git a/builtin/providers/rabbitmq/acceptance_env/deploy.sh b/builtin/providers/rabbitmq/acceptance_env/deploy.sh new file mode 100644 index 000000000..037750866 --- /dev/null +++ b/builtin/providers/rabbitmq/acceptance_env/deploy.sh @@ -0,0 +1,26 @@ +#!/bin/bash +set -e + +cd +echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list +wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add - +sudo apt-get update +sudo apt-get install -y git make mercurial +sudo apt-get install -y rabbitmq-server +sudo rabbitmq-plugins enable rabbitmq_management + +sudo wget -O /usr/local/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme +sudo chmod +x /usr/local/bin/gimme +gimme 1.6 >> .bashrc + +mkdir ~/go +eval "$(/usr/local/bin/gimme 1.6)" +echo 'export GOPATH=$HOME/go' >> .bashrc +export GOPATH=$HOME/go + +export PATH=$PATH:$HOME/terraform:$HOME/go/bin +echo 'export PATH=$PATH:$HOME/terraform:$HOME/go/bin' >> .bashrc +source .bashrc + +go get -u github.com/kardianos/govendor +go get github.com/hashicorp/terraform