GithubHelp home page GithubHelp logo

storm-deb-packaging's Introduction

Storm Debian Packaging

Build scripts / sample configuration for building a Storm .deb with FPM

Requirements

To make it as pain free as possible, I have used FPM to build the debian packaging. You can install it by via rubygems (gem install -r fpm). The build_storm.sh script will setup a target directory with the format required for FPM to turn a directory into a .deb package. As a bonus, if you want to change the structure of the package, just change the script to modify the target directory. Then issue the FPM build command, and you are good to go.

I have supplied some default Upstart scripts for use with the packaging. They assume your primary interface is ETH0, so you may want to change that if it's not the case. Since there is no way to update-rc.d an upstart script, there is an option for 'ENABLE=yes' in /etc/default/storm-process. I am currently using Monit, so chose not to have Upstart 'respawn' on process failure. If you would like Upstart to provide this feature, you can add 'respawn' to the scripts and upstart should take care of this for you. So using your favorite configuration management engine, you can change this to 'yes' to start the daemon on reboot. The build scripts provided compile the dependencies listed in https://github.com/nathanmarz/storm/wiki/Installing-native-dependencies.

Usage

Included are three scripts to build the debian packages for a storm installation.

  • build_storm.sh - Storm
  • build_libzmq0.sh - ZeroMQ libraries
  • build_jzmq0.sh - Java bindings for ZeroMQ

Just run the build scripts, and debian artifacts will be created.

Here is a sample of the layout of the package structures.

Storm Package

drwxr-xr-x root/root         0 2012-08-02 18:10 ./
drwxr-xr-x root/root         0 2012-08-02 18:10 ./opt/
drwxr-xr-x root/root         0 2012-08-02 18:10 ./opt/storm/
-rw-r--r-- root/root     12653 2012-08-02 18:10 ./opt/storm/CHANGELOG.md
drwxr-xr-x root/root         0 2012-08-02 18:10 ./opt/storm/lib/
drwxr-xr-x root/root         0 2012-08-02 18:10 ./opt/storm/public/
drwxr-xr-x root/root         0 2012-08-02 18:10 ./opt/storm/public/css/
drwxr-xr-x root/root         0 2012-08-02 18:10 ./opt/storm/public/js/
-rw-r--r-- root/root      2794 2012-08-02 18:10 ./opt/storm/README.markdown
-rw-r--r-- root/root     12710 2012-08-02 18:10 ./opt/storm/LICENSE.html
drwxr-xr-x root/root         0 2012-08-02 18:10 ./opt/storm/bin/
-rw-r--r-- root/root   3896683 2012-08-02 18:10 ./opt/storm/storm-0.7.4.jar
-rw-r--r-- root/root         6 2012-08-02 18:10 ./opt/storm/RELEASE
drwxr-xr-x root/root         0 2012-08-02 18:10 ./etc/
drwxr-xr-x root/root         0 2012-08-02 18:10 ./etc/default/
-rw-r--r-- root/root       387 2012-08-02 18:10 ./etc/default/storm
-rw-r--r-- root/root       166 2012-08-02 18:10 ./etc/default/storm-nimbus
-rw-r--r-- root/root       184 2012-08-02 18:10 ./etc/default/storm-supervisor
-rw-r--r-- root/root       160 2012-08-02 18:10 ./etc/default/storm-drpc
-rw-r--r-- root/root       150 2012-08-02 18:10 ./etc/default/storm-ui
drwxr-xr-x root/root         0 2012-08-02 18:10 ./etc/storm/
drwxr-xr-x root/root         0 2012-08-02 18:10 ./etc/storm/conf.d/
-rw-r--r-- root/root       364 2012-08-02 18:10 ./etc/storm/storm.log.properties
-rw-r--r-- root/root       445 2012-08-02 18:10 ./etc/storm/storm.yaml
drwxr-xr-x root/root         0 2012-08-02 18:10 ./etc/init/
-rw-r--r-- root/root       774 2012-08-02 18:10 ./etc/init/storm-drpc.conf
-rw-r--r-- root/root       757 2012-08-02 18:10 ./etc/init/storm-ui.conf
-rw-r--r-- root/root       816 2012-08-02 18:10 ./etc/init/storm-supervisor.conf
-rw-r--r-- root/root       788 2012-08-02 18:10 ./etc/init/storm-nimbus.conf
drwxr-xr-x root/root         0 2012-08-02 18:10 ./var/
drwxr-xr-x root/root         0 2012-08-02 18:10 ./var/lib/
drwxr-xr-x root/root         0 2012-08-02 18:10 ./var/lib/storm/
drwxr-xr-x root/root         0 2012-08-02 18:10 ./var/log/
drwxr-xr-x root/root         0 2012-08-02 18:10 ./var/log/storm/

storm-deb-packaging's People

Contributors

mbautin avatar phobos182 avatar tomdz avatar vnivargi avatar

Watchers

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