Coder Social home page Coder Social logo

tomcat7-clickstack's Introduction

Tomcat 7 ClickStack

To use:

bees app:deploy -t tomcat7 -a APP_ID WAR_FILE

Tomcat 7 ClickStack for CloudBees PaaS. Deploy any Servlet2.x/3.x/JSP.

Pre-requisites

  • OpenJDK 6
  • Bash shell
  • Make tools
  • Apache Maven

Build

$ make clean pkg

After successful build tomcat7-plugin.zip is created and can be uploaded to the CloudBees platform location by the CloudBees team.

Local development

Note: You should be familiar with developing ClickStacks using the genapp system first. [see docs]

  • Build the plugin project using make to prepare for use in local app deploys

  • In plugins_home, add a symlink to the tomcat7-clickstack/pkg dir named 'tomcat7'

    $ ln -s tomcat7-clickstack/pkg PLUGINS_HOME/tomcat7

  • In your metadata.json, you can now reference the stack using the name 'tomcat7'

    { "app": { "plugins": ["tomcat7"] } }

Testing the plugin on CloudBees

You can deploy the tomcat7-plugin.zip to S3 using the following command:

$ make publish_repo=dev publish

If you don't have S3 creds or tools setup, follow the instructions in the publish error messages.

Once the plugin is published to a public URL, you can update an app to use it with the CloudBees SDK:

$ bees app:deploy -a APP_ID -t tomcat7 -RPLUGIN.SRC.tomcat7=URL_TO_YOUR_PLUGIN_ZIP PATH_TO_WARFILE

TODOs

  • Add idle/active timeouts
  • Add private app support (perhaps via router instead?)
  • Add cloudbees-web.xml support

tomcat7-clickstack's People

Contributors

cyrille-leclerc avatar swashbuck1r avatar benjaminsavoy avatar bwalding avatar michaelneale avatar stephenc 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.