Packaging karaf with native debian packaging tools

Note! This is an improvement over the packaging in  Installing apache karaf on debian stretch, this package is packaged using native debian packaging tools instead of fpm, and is built from the karaf source tarball instead of the karaf binary tarball.

Apache karaf is an OSGi container and application server that is provisioned from maven, and has an ssh server. Basically it is possible to start an empty karaf, ssh in and give some commands to install an application using maven.

There still isn’t a native .deb package on maven (see  the RFP (Request For Packaging) bug for karaf in the debian bug tracker), but this package can be installed from my own maven repository.

The packacing projecct can be found on github: https://github.com/steinarb/karaf-debian

Procedure to build the package

  1. Install the required build tools[code language=”bash”]apt-get update
    apt-get install openjdk-sdk git maven-debian-helper devscripts[/code]
  2. Clone the karaf package repository[code language=”bash”]mkdir -p ~/git
    cd ~/git/
    git clone https://github.com/steinarb/karaf-debian.git%5B/code%5D
  3. Build the package[code language=”bash”]cd ~/git/karaf-debian/
    dpkg-buildpackage[/code]

After this, there will be a karaf-*.deb package in the directory above the karaf-debian directory.


Comments

2 responses to “Packaging karaf with native debian packaging tools”

  1. […] Until the RFP (Request For Packaging) bug for karaf in the debian bug tracker is resolved, here is an APT archive with a karaf package for debian (architecture “all”).  The package is created using native debian packaging tools, and built from a source tarball. […]

  2. […] on debian without building it yourself, the package installed is not the one described here, but the new and improved package built from source with native debian packaging tools, that can be found […]

Leave a Reply