[General] Packaging PEtALS

sandre petals-features at ebmwebsourcing.com
Wed Mar 16 10:20:19 CET 2011


The first PEtALS binary package for Debian has been released!!

Well, it's a pre-alpha version which can be downloaded from PEtALS Debian package on Mega Upload (http://www.megaupload.com/fr/?d=9RT662C6)

I've made two modifications that change the default behavior of PEtALS:
* A new logger.properties that dumps everything into a unique petals.log relying on logrotate to take care of files rotations.
* Former scripts bin/*.sh have been replaced by two new commands 'petals' and 'jbi4petals' to perform administrative tasks.
It would be really nice to get feedbacks about the 'petals' and 'jbi4petals' commands as well as issues that may be encountered during the install or the uninstall of the package.
So, let me explain in three steps how it works:

First, you have to download the package on your ubuntu or debian machine
                   PEtALS Debian package on Mega Upload (http://www.megaupload.com/fr/?d=9RT662C6)

When it's done, log as root and execute the following commands to start the install:

# apt-get install logrotate sun-java5-bin ant
.........
# dpkg -i petals_2.2.1_i386.deb
Selecting previously deselected package petals.
(Reading database ... 102611 files and directories currently installed.)
Unpacking petals (from petals_2.2.1_i386.deb) ...
Adding system user `petals' (UID 113) ...
Adding new group `petals' (GID 124) ...
Adding new user `petals' (UID 113) with group `petals' ...
Not creating home directory `/usr/lib/esb/petals' ...
Setting up petals (2.2.1) ...


To start the ESB, you have to be the petals user:

# su - petals
$  petals version
PEtALS ESB version 2.2.1
java version "1.5.0_15"

An example of what you can do now:

    $petals start
    PEtALS ESB is starting ...      OK

It starts the server in the background, it will be still running even if you log out, but not if you turn off your computer ;)

    $jbi4petals install component petals-se-xslt-2.3-SNAPSHOT.zip
    $ jbi4petals list service engines

    #######################################################
    #                    Service Engines                  #
    #######################################################
    Name        : petals-se-xslt
    State       : Shutdown
    Description :


About jbi4petals

    jbi4petals is a script which converts shell commands into ant tasks according to those defined in the petals-ant.jar. It aims to be a basic JBI interface with PEtALS and to save hours of boring ant scripting. It also has the advantage to be "batcheable" and to work in a production environment, I mean, on a machine        - without graphical interface
        - not even one compiler installed
        - a 80 (not 400) characters width black and white screen
        - a US qwerty keyboard
        - probably without tab's completion
        - and maybe down in a dark room where the temperature is almost zero  [Shocked]  ha ha ha
This script could easily be improved and there are probably better ways to perform the same tasks, please share your ideas and don't forget to post any missing dependency or bug   [Rolling Eyes] 

Enjoy~~




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=344#344

-------------------- m2f --------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/general/attachments/20110316/c01528a1/attachment.htm>


More information about the General mailing list