Giter Club home page Giter Club logo

cp_oraclecloud's Introduction

CP_OracleCloud

Cloud Portal plugin to support the Oracle Cloud Platform.

Usage

This is included by default in the Cloud Portal project. It relies on that project and will not work stand-alone.

Installation

Add this line to your application's Gemfile:

gem 'cp_oraclecloud'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cp_oraclecloud

Configuration options need to be added to an initliazer in your app. Eg: in config/initializers/cp_oraclecloud.rb

CpOraclecloud.setup do |config|
  config.username = <username>
  config.password = <password>
  config.domain = <domain>
  config.region = <region, remove if using US data centres>
  config.compute_api = <compute url>
  config.storage_api = <storage url>
  config.active_components = ['Database', 'Java', 'SOA']
  config.rate_card = YAML.load_file(File.expand_path "<path to rate card yml file", __FILE__)[Rails.env].symbolize_keys!

end

The active_components option configures which components can be created in the cloud. Supported options are 'Database', 'Java' and 'SOA'. Remove any services you aren't subscribed to.

The rate_card option points to where the rate card YML file is located. Add the following to /config/oraclecloud_rate_card.yml to use the default US pricing for the Oracle Cloud (modify to suit your rate card)

---
defaults: &defaults
  compute:
    hourly: 0.1
  java:
    general:
      standard: 
        monthly: 450
        hourly: 0.75
      enterprise: 
        monthly: 1200
        hourly: 2.02
      suite: 
        monthly: 2800
        hourly: 4.7
    high:
      standard: 
        monthly: 550
        hourly: 0.924
      enterprise: 
        monthly: 1300
        hourly: 2.184
      suite: 
        monthly: 2900
        hourly: 4.872
  soa:
    full: 5500
    api: 3500
    mft: 4500
  database:
    general:
      standard: 
        monthly: 600
        hourly: 1.08
      enterprise: 
        monthly: 3000
        hourly: 5.04
      hp: 
        monthly: 4000
        hourly: 6.72
      xp:
        monthly: 5000
        hourly: 8.401
    high:
      standard: 
        monthly: 700
        hourly: 1.176
      enterprise: 
        monthly: 3100
        hourly: 5.208
      hp: 
        monthly: 4100
        hourly: 6.888
      xp:
        monthly: 5100
        hourly: 8.569

development:
  <<: *defaults

test:
  <<: *defaults

production:
  <<: *defaults

Contributing

  1. Fork it ( https://github.com/Joelith/cp_oraclecloud )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

The gem is available as open source under the terms of the MIT License.

cp_oraclecloud's People

Contributors

joelith avatar

Watchers

Hassan Ajan avatar James Cloos avatar  avatar

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.