Packaging PEtALS

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Packaging PEtALS

cdeneux-4
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

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

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 Wink

$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 --------------------

_______________________________________________
General mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/general
Reply | Threaded
Open this post in threaded view
|

Re: Packaging PEtALS

cdeneux-4
I don’t really understand the name « jbi4petals” .
Petals is already a jbi container, I wonder if this name has to be changed ?




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

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

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

_______________________________________________
General mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/general
Reply | Threaded
Open this post in threaded view
|

Re: Packaging PEtALS

cdeneux-4
In reply to this post by cdeneux-4
This is a distribution type which has been requested by some of our users (and guys from EBM).
As a linux user, I think that it is a cool thing but here are my comments :
- Same as Adrien, I prefer something like 'petalsadm' instead of jbi4petals (even if of course the petals-ant lib it relies on can be used to manage other JBI containers)
- Send us the script used to create the debian package, or commit it on the SVN since you are registered as a OW2-PETALS developer (contact me directly to discuss about where to put this script)

Thanks for this contribution Sebastien !




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

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

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

_______________________________________________
General mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/general
Reply | Threaded
Open this post in threaded view
|

Re: Packaging PEtALS

cdeneux-4
In reply to this post by cdeneux-4
Mmmh, that's right, the name 'jbi4petals' is not clear enough.

At the time I chose this name the script was completely different and I was not clear about what is JBI, afterwards I was focused on functionalities and forgot to uptade the name.

Yes, 'petalsadm', 'petalsadmin' or even a full integretion in the 'petals' script may be more appropriate.




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

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

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

_______________________________________________
General mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/general
Reply | Threaded
Open this post in threaded view
|

Re: Packaging PEtALS

cdeneux-4
In reply to this post by cdeneux-4
And why not, more efficient, merge all. The petals script into /etc/init.d can have more command than "stop" or start", such as install-component, install-sa, list-components and list-sa? One daemon, one update...




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

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

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

_______________________________________________
General mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/general