TIP: apache karaf on debian, the easy way

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

TIP: apache karaf on debian, the easy way

Steinar Bang
Here's a HOWTO for how to install apache karaf 4.1.4 on a debian
GNU/linux system:
 https://steinar.bang.priv.no/2018/01/23/installing-apache-karaf-on-debian/

The installed karaf will run as user karaf, group karaf, listening to
the usual default karaf ports, be started with systemd, with KARAF_ETC
in /etc/karaf and KARAF_DATA in /var/lib/karaf/data.

Caveat emptor! I make no guarantees and promises etc. etc.! :-)

But I use this myself and I try to stay on the stable version (ie. it's
4.1.4 right now, and if there is a 4.1.5 I will make an APT upgradable
version for my own sake).

(And if someone wishes to take my debian package and run with it to
create an official debian package I will be very happy.  Here's the
Request For Packaging bug (RFP) for apache karaf in debian:
 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881297
)

Reply | Threaded
Open this post in threaded view
|

Re: TIP: apache karaf on debian, the easy way

jbonofre
Awesome !

Thanks Steinar !

That would be great to have an official package for Karaf (as we are preparing
the official docker images too ;)).

Thanks again, much appreciated !

Regards
JB

On 01/24/2018 05:38 PM, Steinar Bang wrote:

> Here's a HOWTO for how to install apache karaf 4.1.4 on a debian
> GNU/linux system:
>  https://steinar.bang.priv.no/2018/01/23/installing-apache-karaf-on-debian/
>
> The installed karaf will run as user karaf, group karaf, listening to
> the usual default karaf ports, be started with systemd, with KARAF_ETC
> in /etc/karaf and KARAF_DATA in /var/lib/karaf/data.
>
> Caveat emptor! I make no guarantees and promises etc. etc.! :-)
>
> But I use this myself and I try to stay on the stable version (ie. it's
> 4.1.4 right now, and if there is a 4.1.5 I will make an APT upgradable
> version for my own sake).
>
> (And if someone wishes to take my debian package and run with it to
> create an official debian package I will be very happy.  Here's the
> Request For Packaging bug (RFP) for apache karaf in debian:
>  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881297
> )
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: TIP: apache karaf on debian, the easy way

fpapon
Hi Steinar,

Very good news !!

As user and fan of Debian distrib (laptop and server), I will try it
quickly :)

Thanks !

François


Le 24/01/2018 à 20:56, Jean-Baptiste Onofré a écrit :

> Awesome !
>
> Thanks Steinar !
>
> That would be great to have an official package for Karaf (as we are preparing
> the official docker images too ;)).
>
> Thanks again, much appreciated !
>
> Regards
> JB
>
> On 01/24/2018 05:38 PM, Steinar Bang wrote:
>> Here's a HOWTO for how to install apache karaf 4.1.4 on a debian
>> GNU/linux system:
>>  https://steinar.bang.priv.no/2018/01/23/installing-apache-karaf-on-debian/
>>
>> The installed karaf will run as user karaf, group karaf, listening to
>> the usual default karaf ports, be started with systemd, with KARAF_ETC
>> in /etc/karaf and KARAF_DATA in /var/lib/karaf/data.
>>
>> Caveat emptor! I make no guarantees and promises etc. etc.! :-)
>>
>> But I use this myself and I try to stay on the stable version (ie. it's
>> 4.1.4 right now, and if there is a 4.1.5 I will make an APT upgradable
>> version for my own sake).
>>
>> (And if someone wishes to take my debian package and run with it to
>> create an official debian package I will be very happy.  Here's the
>> Request For Packaging bug (RFP) for apache karaf in debian:
>>  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881297
>> )
>>

François Papon
fpapon@apache.org
Yupiik - https://www.yupiik.com
Reply | Threaded
Open this post in threaded view
|

Re: TIP: apache karaf on debian, the easy way

Steinar Bang
>>>>> Francois Papon <[hidden email]>:

> As user and fan of Debian distrib (laptop and server), I will try it
> quickly :)

Hi, please note! If you installed 4.1.4-8~9.30 you may wish to purge and
reinstall.

The reason is that I have changed the home directory of the karaf user
from /home/karaf to /var/lib/karaf.  The reason is that lintian didn't
like "adduser --system" without a "--home" and that "--home" couldn't
point to something under /home/
 https://lintian.debian.org/tags/maintainer-script-should-not-use-adduser-system-without-home.html

The commands to purge and reinstall, are:
 apt-get purge karaf
 mv /home/karaf/.m2 /var/lib/karaf/
 mv /home/karaf/.karaf /var/lib/karaf/
 apt-get update
 apt-get install karaf

This preserves the already downloaded jars in /home/karaf/.m2/repository/
and old command lines in /home/karaf/.karaf,

Reply | Threaded
Open this post in threaded view
|

Re: TIP: apache karaf on debian, the easy way

jbonofre
Hi Steinar,

what do you think about proposing a PR to update the Karaf user-guide to mention
such package ?

Regards
JB

On 01/27/2018 12:52 PM, Steinar Bang wrote:

>>>>>> Francois Papon <[hidden email]>:
>
>> As user and fan of Debian distrib (laptop and server), I will try it
>> quickly :)
>
> Hi, please note! If you installed 4.1.4-8~9.30 you may wish to purge and
> reinstall.
>
> The reason is that I have changed the home directory of the karaf user
> from /home/karaf to /var/lib/karaf.  The reason is that lintian didn't
> like "adduser --system" without a "--home" and that "--home" couldn't
> point to something under /home/
>  https://lintian.debian.org/tags/maintainer-script-should-not-use-adduser-system-without-home.html
>
> The commands to purge and reinstall, are:
>  apt-get purge karaf
>  mv /home/karaf/.m2 /var/lib/karaf/
>  mv /home/karaf/.karaf /var/lib/karaf/
>  apt-get update
>  apt-get install karaf
>
> This preserves the already downloaded jars in /home/karaf/.m2/repository/
> and old command lines in /home/karaf/.karaf,
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com