Giter VIP home page Giter VIP logo

heroku-buildpack-paxrunner's Introduction

UNDER CONSTRUCTION

Heroku buildpack: OSGi (with Pax Runner)

This is a Heroku buildpack for OSGi apps. It uses Pax Runner 1.7.6 start the OSGi framework of choice and uses OpenJDK 1.6.0_20 to run it.

Usage

Example usage:

$ ls
paxrunner

$ heroku create --stack cedar --buildpack http://github.com/dennisg/heroku-buildpack-paxrunner.git

$ git push heroku master
...
-----> Heroku receiving push
-----> Fetching custom buildpack... done
-----> Java (using Pax Runner 1.7.6) app detected
-----> Installing Pax Runner 1.7.6.....done!
-----> Discovering process types
Procfile declares types -> web
-----> Compiled slug size is 5.6MB
-----> Launching... done, v5
http://<your-app-name>.herokuapp.com deployed to Heroku

The buildpack will detect your app as OSGi (using Pax Runner) if it has the file 'paxrunner' in the root. The file can be totally empty, it is just a marker file.

The Pax Runner distribution is unpacked inside your slug directory in '.buildpack'. A Procfile is not required, because the buildpack supplies a (I think) reasonable default.

Default Procfile:

web: pax-run.sh --platform=${OSGI_FW} --version=${OSGI_VER} --console=false --vmo="-Dorg.osgi.service.http.port=$PORT" $PROVISIONING_URL

where OSGI_FW=felix, OSGI_VER=4.0.2, PORT supplied by Heroku and PROVISIONING_URL=scan-dir:bundles. This means that the default setup will start up an OSGi framework based on Felix, version 4.0.2 starting all bundles in 'bundles'.

Modifying the default OSGi framework is as simple as this:

heroku config:add OSGI_FW=equinox
heroku config:add OSGI_VER=3.7.0

Provisioning URL

You can also simply change the provisioning url that is required for your slug

heroku config:add PROVISIONING_URL=scan-dir:data (or any other valid provisioning url)

For more info on the various forms of provisioning urls: Pax Runner Docs

Example Custom Procfile:

web: pax-run.sh --platform=equinox --console=false --vmo="-Dorg.osgi.service.http.port=$PORT" $PROVISIONING_URL

Hacking

To use a modification of this buildpack, fork it on Github. Push up changes to your fork, then create a test app with --buildpack <your-github-url> and push to it too.

heroku-buildpack-paxrunner's People

Contributors

dennisg avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.