Giter VIP home page Giter VIP logo

cf-rabbitmq-release's Introduction

Cloud Foundry RabbitMQ Service

This repository contains the release for RabbitMQ for Cloud Foundry. It is deployable by BOSH in the usual way.

Updating

Clone the repository and run ./scripts/update-release.

Updating the RabbitMQ Package

Here's an example of upgrading the rabbitmq-server package to version 3.6.3. Assuming you have downloaded the new rabbitmq-server-generic-unix and rabbitmq_clusterer packages to this repositories directory.

bosh add blob rabbitmq-server-generic-unix-3.6.3.tar.xz rabbitmq-server
bosh add blob rabbitmq_clusterer-3.6.3.ez rabbitmq-server
cp config/private.yml{.example,}
# fill in the values in config/private.yml using the instructions in the file header
bosh upload blobs

The above command will modify your config/blobs.yml file. Then update the following files (could replace with a sed script):

  • jobs/rabbitmq-server/templates/setup.sh.erb look for RMQ_VERSION
  • packages/rabbitmq-server/packaging look for RMQ_VERSION
  • packages/rabbitmq-server/spec update the files that were added in bosh add blob
  • the following are v215 specific
  • src/rabbitmq-broker/src/clojure/io/pivotal/pcf/rabbitmq/config.clj
  • src/rabbitmq-broker/test/io/pivotal/pcf/rabbitmq/integration_test.clj

Deploying

Run the scripts/deploy-release script. Examples as follows:

# Deploying locally to BOSH lite
export BOSH_MANIFEST=../london-ci-tools/manifests/rabbitmq/develop/development/bosh-lite.yml
./scripts/deploy-release lite

# Deploying to a different BOSH director
export BOSH_MANIFEST=/path/to/manifest.yml
./scripts/deploy-release my-bosh-alias

Note that the argument is a BOSH alias, which you must have configured prior to running the script. E.G.

bosh target https://192.168.50.4:25555 lite

Testing

Unit Tests

To run the unit tests locally, just run: bundle exec rake spec:unit.

Integration Tests

bundle exec rake spec:integration

You can run tests on BOSH lite. You just need BOSH_MANIFEST environment variable and do deployment.

If you want to run tests on custom BOSH you need to set following environment variables:

export CF_DOMAIN='bosh-lite.com'
export CF_USERNAME='admin'
export CF_PASSWORD='admin'
export CF_API='api.bosh-lite.com'
export BOSH_TARGET='bosh-lite.com'
export BOSH_USERNAME='admin'
export BOSH_PASSWORD='admin'

Documentation

cf-rabbitmq-release's People

Watchers

 avatar  avatar

Forkers

soutenniza

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.