Giter Site home page Giter Site logo

postgres-smoke-tests-boshrelease's Introduction

postgres-smoke-tests BOSH release

License

MIT, see LICENSE file.

Usage: Configuration & Delpoyment

We will walk through an example of using with Cloud Foundry.

Be sure to first target your BOSH Director:

bosh target $BOSH_HOST

If you are using bosh-lite you target like so:

bosh target 192.168.50.4 lite

Now clone this release and cd into the directory:

git clone https://.../postgres-smoke-tests-boshrelease.git
cd postgres-smoke-tests-boshrelease

If you intend on using a final release upload it like so:

bosh upload release releases/postgres-smoke-tests-1.yml

Next download your manifest file for the deployment targeted so we can edit it and add the release.

mkdir -p ~/workspace/manifests
bosh download manifest postgres-smoke-tests-development ~/workspace/manifests/postgres-smoke-tests.yml
bosh deployment ~/workspace/manifests/postgres-smoke-tests.yml

Alternatively, you can make your manifest. For example to prepare a manifest for bosh-lite (warden) using the 'centos' stemcell we would do the following:

STEMCELL_OS=centos ./postgres-smoke-tests-dev manifest warden

Edit the manifest file you downloaded (~/workspace/manifests/postgres-smoke-tests.yml) and add settings as follows.

Add to the list of known releases:

releases:
#...
- name: postgres-smoke-tests
  version: latest

For consistency also add to the releases: section under meta:

meta:
  environment: postgres-smoke-tests-development
  releases:
  - name: cf
    version: latest
  - name: postgres-smoke-tests
    version: latest

Add properties such as tags.

properties:
# ... lots of properties ... at bottom put vv
  postgres-smoke-tests:

Now, for every instances: entry you wish to collocate this release with under jobs: add the following in the templates: section:

  - name: postgres-smoke-tests
    release: postgres-smoke-tests

Now you can deploy,

bosh -n deploy

Note that for each job you create in your release that you want to run on a Job VM you must add a templates: entry with the name: of the template and the release: from which it comes.

Deployments Blobs

The script ./postgres-smoke-tests-dev blobs is used to prepare the blobs/ directory runs each package's prepare script from within the blobs/ directory. This will run each package's prepare script, if it exists, which should download and prepare that package's required blobs (source tarballs, etc...) into the {package}/ directory.

Development

Download your manifest file for the deployment targeted.

Target your BOSH Director as explained above, if you already have a deploy be sure to also download your manifest as per above.

If this is your first time cloning the release repository for develompent first prepare all of the things:

./postgres-smoke-tests-dev prepare warden

This is equivalent to:

./postgres-smoke-tests-dev blobs
./postgres-smoke-tests-dev release
./postgres-smoke-tests-dev stemcell warden
./postgres-smoke-tests-dev manifest warden

Once these steps have all been completed

bosh -n deploy

Debugging & QA

See docs/notes.md for more information.

In order to gain access to one of the VMs, from a terminal bosh ssh postgres-smoke-tests {VM Index}, for example to ssh to the first node:

bosh ssh postgres-smoke-tests 0 # Hop on and have a look around...

If you want to destroy and recreate on specific node, say postgres-smoke-tests/0, you do the following:

bosh -n recreate postgres-smoke-tests 0 --force

See docs/postgres-smoke-tests.md for release specific information.

postgres-smoke-tests-boshrelease's People

Watchers

Wayne E Seguin avatar Bill Chapman avatar Matt Reider avatar David Laing avatar David Ehringer avatar Ruben Koster avatar Mevan Samaratunga avatar Alex Heneveld avatar Colin Humphreys avatar James Cloos avatar Jared Wray avatar Johannes Hiemer avatar Cornelia Davis avatar Van Nguyen avatar Ronak Banka avatar  avatar Takeshi Morikawa avatar DJ avatar Chanda Dharap avatar Guillaume Berche avatar Fermin Ordaz avatar  avatar clarence avatar  avatar Pierre Oblin avatar Arthur Halet avatar Weian Deng avatar Balajee Nagarajan avatar Jian Huang avatar Mo Mo avatar  avatar Piotr Milewski avatar Chris McGowan avatar  avatar  avatar  avatar

Forkers

skibum55

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.