Giter Club home page Giter Club logo

wso2-apim-bosh-release's Introduction

WSO2 API Manager BOSH Release

A BOSH release for deploying WSO2 API Manager 2.1.0 on BOSH Director:

Quick Start Guide

  1. First get configuration files that specify BOSH environment in VirtualBox and run bosh create-env as following:

    $ git clone https://github.com/cloudfoundry/bosh-deployment bosh-deployment
    $ mkdir vbox
    $ bosh create-env bosh-deployment/bosh.yml \
    --state vbox/state.json \
    -o bosh-deployment/virtualbox/cpi.yml \
    -o bosh-deployment/virtualbox/outbound-network.yml \
    -o bosh-deployment/bosh-lite.yml \
    -o bosh-deployment/bosh-lite-runc.yml \
    -o bosh-deployment/jumpbox-user.yml \
    --vars-store vbox/creds.yml \
    -v director_name="Bosh Lite Director" \
    -v internal_ip=192.168.50.6 \
    -v internal_gw=192.168.50.1 \
    -v internal_cidr=192.168.50.0/24 \
    -v outbound_network_name=NatNetwork
  2. Once VM with BOSH Director is running, point your CLI to it, saving the environment with the alias vbox:

    bosh -e 192.168.50.6 alias-env vbox --ca-cert <(bosh int vbox/creds.yml --path /director_ssl/ca)
  3. Obtain generated password to BOSH Director:

    bosh int vbox/creds.yml --path /admin_password
  4. Log in using admin username and generated password:

    bosh -e vbox login
  5. Download Oracle JDK 1.8 from Oracle website and WSO2 API Manager 2.1.0 via WSO2 Update Manager (WUM).

  6. Add above distributions as blobs:

    bosh -e vbox add-blob jdk-8u144-linux-x64.tar.gz oraclejdk/jdk-8u144-linux-x64.tar.gz
    bosh -e vbox add-blob wso2am-2.1.0.zip wso2apim/wso2am-2.1.0.zip
    bosh -e vbox -n upload-blobs
  7. Create the WSO2 API Manager bosh release:

    bosh -e vbox create-release --force
  8. Upload the WSO2 API Manager bosh release to BOSH Director:

    bosh -e vbox upload-release
  9. Download latest bosh-lite warden stemcell from bosh.io and upload it to BOSH Director:

    wget https://s3.amazonaws.com/bosh-core-stemcells/warden/bosh-stemcell-3445.7-warden-boshlite-ubuntu-trusty-go_agent.tgz
    bosh -e vbox upload-stemcell bosh-stemcell-3445.7-warden-boshlite-ubuntu-trusty-go_agent.tgz
  10. Deploy the WSO2 API Manager bosh release manifest in BOSH Director:

    bosh -e vbox -d wso2apim deploy wso2apim-manifest.yml
  11. Add route to VirtualBox network:

    sudo route add -net 10.244.0.0/16 192.168.50.6 # Mac OS X
    sudo route add -net 10.244.0.0/16 gw 192.168.50.6 # Linux
    route add 10.244.0.0/16 192.168.50.6 # Windows
    
  12. Find the VM IP address via the bosh CLI and access the WSO2 API Manager Store via a web browser:

    bosh -e vbox vms
    ...
    
    Deployment 'wso2apim'
    
    Instance                                       Process State  AZ  IPs           VM CID                                VM Type
    wso2apim/08b2075d-c7e6-49f8-b223-12d989b734c2  running        -   10.244.15.21  84cac420-fd02-4884-5821-0fad60e3ce29  wso2apim-resource-pool
    ...
    
    # WSO2 API Manager Store URL: http://10.244.15.21:9763/store/

References

wso2-apim-bosh-release's People

Contributors

imesh avatar

Watchers

 avatar  avatar

Forkers

bhathiya

wso2-apim-bosh-release's Issues

Roadmap

Following are the planned features to be implemented:

  1. Update runtime configuration values in configuration files (hostnames, database configurations, passwords)
  2. Bind to a database service (MySQL) and update database configurations
  3. Implement a membership scheme for Hazelcast cluster discovery
  4. Make API-M instance count 2 and configure point to point AMQP connections
  5. Add API-M Analytics nodes and configure Thrift statistics publishing

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.