Coder Social home page Coder Social logo

json-recipe-converter's Introduction

json-recipe-converter

JSON recipe converter has to be used with privateEc2 driver.

The converter is a REST API that parse and deploy recipes from CloudFormation like JSON template.

Requirements

  • Cloudify 2.7.0 with a bootstrapped manager with privateEc2 driver.
  • Apache Tomcat 7.x.
    • set CATALINA_HOME in the variable environment.
  • Maven 3.x

Quick Testing

  • Download the project.
  • Package the project with maven: mvn package
  • Run cargo to deploy the war: mvn cargo:run -Dcloudify.url=http://cloudify_manager_host:8100
  • Test that application has been successfully deployed: curl http://localhost:8080/json-recipe-converter-1.0-SNAPSHOT/test
  • You have sample DSLs in ./src/test/resources/samples. I suggest you upload the templateUrlApplication.zip in some apache server and use it to install application.
  • To install application : curl "http://localhost:8080/json-recipe-converter-1.0-SNAPSHOT/createStack?stackName=myApplication&templateURL=http://url_path_to/templateUrlApplication.zip"
  • Get an application description: curl http://localhost:8080/json-recipe-converter-1.0-SNAPSHOT/describeStack
  • Delete application : curl http://localhost:8080/json-recipe-converter-1.0-SNAPSHOT/deleteStack?stackName=myApplication

You can also use the from page to create stack: http://localhost:8080/json-recipe-converter-1.0-SNAPSHOT/create

The API

createStack

Description:

Install an application using JSON templates.

HTTP Method:

/createStack

Parameters:

  • stackName: Application's name.
  • templateURL*: URL to the DSL files.
  • templateBody*: DSL content.
  • timeoutInMinutes: Timeout in minutes (optional).

(*) use templateURL or templateBody but not both in the same time.


deleteStack

Description:

Uninstall an application.

HTTP Method:

/deleteStack

Parameters:

  • stackName: Application's name.

describeStack

Description:

Get application(s) description.

HTTP Method:

/describeStack

Parameters:

  • stackName: Application's name (optional).

json-recipe-converter's People

Contributors

barakm avatar

Watchers

Mathias Kluba avatar James Cloos avatar Mathias Kluba avatar  avatar  avatar Cyril Martin avatar Victor Keophila 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.