github.com/mohanarpit/terraform@v0.6.16-0.20160909104007-291f29853544/builtin/providers/rabbitmq/acceptance_env/deploy.sh (about)

     1  #!/bin/bash
     2  set -e
     3  
     4  cd
     5  echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list
     6  wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
     7  sudo apt-get update
     8  sudo apt-get install -y git make mercurial
     9  sudo apt-get install -y rabbitmq-server
    10  sudo rabbitmq-plugins enable rabbitmq_management
    11  
    12  sudo wget -O /usr/local/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
    13  sudo chmod +x /usr/local/bin/gimme
    14  gimme 1.6 >> .bashrc
    15  
    16  mkdir ~/go
    17  eval "$(/usr/local/bin/gimme 1.6)"
    18  echo 'export GOPATH=$HOME/go' >> .bashrc
    19  export GOPATH=$HOME/go
    20  
    21  export PATH=$PATH:$HOME/terraform:$HOME/go/bin
    22  echo 'export PATH=$PATH:$HOME/terraform:$HOME/go/bin' >> .bashrc
    23  source .bashrc
    24  
    25  go get -u github.com/kardianos/govendor
    26  go get github.com/hashicorp/terraform