You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Steinar Bang <sb...@dod.no> on 2020/09/09 19:00:33 UTC

No 4.2.9 karaf docker image?

Hi,

There doesn't seem to be an offical karaf 4.2.9 docker image?
 https://hub.docker.com/r/apache/karaf/tags

Will there be a docker image for 4.2.9?

Thanks!


- Steinar


Re: Problems running on the karaf 4.2.9 docker image

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi Steinar,

Thanks for the update, it’s what I thought ;)

Regards
JB

> Le 12 sept. 2020 à 12:46, Steinar Bang <sb...@dod.no> a écrit :
> 
>>>>>> Steinar Bang <sb...@dod.no>:
>> I saw that myself and just thought of why: I replace the file loading
>> boot features with one that adds my application feature.
> 
>> And I've based this file on the boot features file of the karaf 4.2.8
>> distribution.
> 
>> And of course, that won't work! :-)
> 
>> Once I replace the file with same file from the 4.2.9 distro I suspect
>> things will start working again.
> 
> Update: Once I had replaced the org.apache.karaf.features.cfg with a
> file yanked from the karaf 4.2.9 distro instead of karaf 4.2.8, then the
> docker image with my application started working.
> 
> 


Re: Problems running on the karaf 4.2.9 docker image

Posted by Steinar Bang <sb...@dod.no>.
>>>>> Steinar Bang <sb...@dod.no>:
> I saw that myself and just thought of why: I replace the file loading
> boot features with one that adds my application feature.

> And I've based this file on the boot features file of the karaf 4.2.8
> distribution.

> And of course, that won't work! :-)

> Once I replace the file with same file from the 4.2.9 distro I suspect
> things will start working again.

Update: Once I had replaced the org.apache.karaf.features.cfg with a
file yanked from the karaf 4.2.9 distro instead of karaf 4.2.8, then the
docker image with my application started working.



Re: Problems running on the karaf 4.2.9 docker image

Posted by Steinar Bang <sb...@dod.no>.
>>>>> Jean-Baptiste Onofre <jb...@nanthrax.net>:

> Hi,
> Understood.

> Did you see my previous email about that I see 4.2.8 feature in your docker logs. Is that normal ?

I saw that myself and just thought of why: I replace the file loading
boot features with one that adds my application feature.

And I've based this file on the boot features file of the karaf 4.2.8
distribution.

And of course, that won't work! :-)

Once I replace the file with same file from the 4.2.9 distro I suspect
things will start working again.

My bad!  Sorry about the noise! :-)


Re: Problems running on the karaf 4.2.9 docker image

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi,

Understood.

Did you see my previous email about that I see 4.2.8 feature in your docker logs. Is that normal ?

Regards
JB

> Le 10 sept. 2020 à 13:03, Steinar Bang <sb...@dod.no> a écrit :
> 
>>>>>> Jean-Baptiste Onofre <jb...@nanthrax.net>:
> 
>> Hi Steinar,
>> Karaf 4.2.9 image is little bit different from previous as it’s based on adoptopenjdk:11-jre-hotspot.
> 
>> The rest is the same. Do you want me to push like the old style (openjdk8 based) ?
> 
> No, I've completely converted to Java 11 on the build dev side.
> 
> And I definitely want Java 11 (if you see the link to what failed on
> when I ran the app on 4.2.8). :-)
> 
> But there wasn't much to go on in where it stopped...
> 
> The app starts and run fine on karaf 4.2.9 on Java 11 when I run it locally.
> 


Re: Problems running on the karaf 4.2.9 docker image

Posted by Steinar Bang <sb...@dod.no>.
>>>>> Jean-Baptiste Onofre <jb...@nanthrax.net>:

> Hi Steinar,
> Karaf 4.2.9 image is little bit different from previous as it’s based on adoptopenjdk:11-jre-hotspot.

> The rest is the same. Do you want me to push like the old style (openjdk8 based) ?

No, I've completely converted to Java 11 on the build dev side.

And I definitely want Java 11 (if you see the link to what failed on
when I ran the app on 4.2.8). :-)

But there wasn't much to go on in where it stopped...

The app starts and run fine on karaf 4.2.9 on Java 11 when I run it locally.


Re: Problems running on the karaf 4.2.9 docker image

Posted by Steinar Bang <sb...@dod.no>.
>>>>> Jean-Baptiste Onofre <jb...@nanthrax.net>:

> By the way, just did a new test running the image with:
> docker run -p 8101:8101 —name test apache/karaf:4.2.9

> And it starts fine, accessing via SSH doesn’t show anything suspicious.

> I will fetch your repo to take a look.

Note that the docker build isn't in that repo, it's in a branch in my
scratch repo, so that the full clone operation is:
 git clone https://github.com/steinarb/oldalbum.git
 cd oldalbum
 git remote add scratch https://github.com/steinarb/scratch.git
 git checkout oldalbum/make-docker-image-of-oldalbum

(I use a separate repository for "junk" and "under work" branches to
avoid clutter)


Re: Problems running on the karaf 4.2.9 docker image (Was: No 4.2.9 karaf docker image?)

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
By the way, just did a new test running the image with:

docker run -p 8101:8101 —name test apache/karaf:4.2.9

And it starts fine, accessing via SSH doesn’t show anything suspicious.

I will fetch your repo to take a look.

Regards
JB

> Le 10 sept. 2020 à 05:32, Jean-Baptiste Onofre <jb...@nanthrax.net> a écrit :
> 
> Hi Steinar,
> 
> Karaf 4.2.9 image is little bit different from previous as it’s based on adoptopenjdk:11-jre-hotspot.
> 
> The rest is the same. Do you want me to push like the old style (openjdk8 based) ?
> 
> How do you start the docker container ? Just a simply docker run ?
> 
> In the log you shared, I see that boot features are 4.2.8 (not 4.2.9). I suspect you can have kind of refresh stopping bundles (it’s what we see in the log).
> Are you sure about the versions (not mixing 4.2.8 and 4.2.9) ?
> 
> Regards
> JB
> 
>> Le 9 sept. 2020 à 22:41, Steinar Bang <sb...@dod.no> a écrit :
>> 
>> My app doesn't start on the karaf 4.2.9 image.
>> 
>> Here's the output from "docker logs" from the app running on the 4.2.9 image:
>> https://gist.github.com/steinarb/68404e9afe5dc94e3235fe46aefd9959
>> 
>> When running on the karaf 4.2.9 image it gets much farther:
>> https://gist.github.com/steinarb/2d04feb63ef58462eaf6415eacadf145
>> 
>> Does anyone know what can cause this difference?
>> The app runs fine on both karaf 4.2.8 and 4.2.9 locally.
>> I'm using Java 11.
>> 
>> The app still eventually fails on the 4.2.8 image as wekk, but before it
>> fails it starts running liquibase to create the database, and which it
>> never gets around to in the 4.2.9 image.
>> 
>> The reason it fails in 4.2.8 is that I'm guessing the 4.2.8 image is
>> built on top of Java 1.8 and I have built my app with java 11:
>> https://gist.github.com/steinarb/2d04feb63ef58462eaf6415eacadf145#file-docker_logs-L754
>> 
>> I have built with Java 11 when I made releases of the app to maven
>> central.
>> 
>> Here's the app:
>> https://github.com/steinarb/oldalbum
>> 
> 


Re: Problems running on the karaf 4.2.9 docker image (Was: No 4.2.9 karaf docker image?)

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi Steinar,

Karaf 4.2.9 image is little bit different from previous as it’s based on adoptopenjdk:11-jre-hotspot.

The rest is the same. Do you want me to push like the old style (openjdk8 based) ?

How do you start the docker container ? Just a simply docker run ?

In the log you shared, I see that boot features are 4.2.8 (not 4.2.9). I suspect you can have kind of refresh stopping bundles (it’s what we see in the log).
Are you sure about the versions (not mixing 4.2.8 and 4.2.9) ?

Regards
JB

> Le 9 sept. 2020 à 22:41, Steinar Bang <sb...@dod.no> a écrit :
> 
> My app doesn't start on the karaf 4.2.9 image.
> 
> Here's the output from "docker logs" from the app running on the 4.2.9 image:
> https://gist.github.com/steinarb/68404e9afe5dc94e3235fe46aefd9959
> 
> When running on the karaf 4.2.9 image it gets much farther:
> https://gist.github.com/steinarb/2d04feb63ef58462eaf6415eacadf145
> 
> Does anyone know what can cause this difference?
> The app runs fine on both karaf 4.2.8 and 4.2.9 locally.
> I'm using Java 11.
> 
> The app still eventually fails on the 4.2.8 image as wekk, but before it
> fails it starts running liquibase to create the database, and which it
> never gets around to in the 4.2.9 image.
> 
> The reason it fails in 4.2.8 is that I'm guessing the 4.2.8 image is
> built on top of Java 1.8 and I have built my app with java 11:
> https://gist.github.com/steinarb/2d04feb63ef58462eaf6415eacadf145#file-docker_logs-L754
> 
> I have built with Java 11 when I made releases of the app to maven
> central.
> 
> Here's the app:
> https://github.com/steinarb/oldalbum
> 


Problems running on the karaf 4.2.9 docker image (Was: No 4.2.9 karaf docker image?)

Posted by Steinar Bang <sb...@dod.no>.
My app doesn't start on the karaf 4.2.9 image.

Here's the output from "docker logs" from the app running on the 4.2.9 image:
 https://gist.github.com/steinarb/68404e9afe5dc94e3235fe46aefd9959

When running on the karaf 4.2.9 image it gets much farther:
 https://gist.github.com/steinarb/2d04feb63ef58462eaf6415eacadf145

Does anyone know what can cause this difference?
The app runs fine on both karaf 4.2.8 and 4.2.9 locally.
I'm using Java 11.

The app still eventually fails on the 4.2.8 image as wekk, but before it
fails it starts running liquibase to create the database, and which it
never gets around to in the 4.2.9 image.

The reason it fails in 4.2.8 is that I'm guessing the 4.2.8 image is
built on top of Java 1.8 and I have built my app with java 11:
 https://gist.github.com/steinarb/2d04feb63ef58462eaf6415eacadf145#file-docker_logs-L754

I have built with Java 11 when I made releases of the app to maven
central.

Here's the app:
 https://github.com/steinarb/oldalbum


Re: No 4.2.9 karaf docker image?

Posted by Steinar Bang <sb...@dod.no>.
>>>>> Jean-Baptiste Onofre <jb...@nanthrax.net>:

> Done, Karaf 4.2.9 docker image is available here:
> https://hub.docker.com/r/apache/karaf/tags <https://hub.docker.com/r/apache/karaf/tags>

Thanks! That was quick! :-)


Re: No 4.2.9 karaf docker image?

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Done, Karaf 4.2.9 docker image is available here:

https://hub.docker.com/r/apache/karaf/tags <https://hub.docker.com/r/apache/karaf/tags>

Regards
JB

> Le 9 sept. 2020 à 21:23, Jean-Baptiste Onofre <jb...@nanthrax.net> a écrit :
> 
> Hi,
> 
> Actually, due to Felix FileInstall issue affecting 4.2.9, I planned to directly push docker image for 4.2.10.
> 
> But, in the release process, it makes sense to have it.
> 
> So, I will push it ;)
> 
> Sorry for the delay.
> 
> Regards
> JB
> 
>> Le 9 sept. 2020 à 21:00, Steinar Bang <sb...@dod.no> a écrit :
>> 
>> Hi,
>> 
>> There doesn't seem to be an offical karaf 4.2.9 docker image?
>> https://hub.docker.com/r/apache/karaf/tags
>> 
>> Will there be a docker image for 4.2.9?
>> 
>> Thanks!
>> 
>> 
>> - Steinar
>> 
> 


Re: No 4.2.9 karaf docker image?

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi,

Actually, due to Felix FileInstall issue affecting 4.2.9, I planned to directly push docker image for 4.2.10.

But, in the release process, it makes sense to have it.

So, I will push it ;)

Sorry for the delay.

Regards
JB

> Le 9 sept. 2020 à 21:00, Steinar Bang <sb...@dod.no> a écrit :
> 
> Hi,
> 
> There doesn't seem to be an offical karaf 4.2.9 docker image?
> https://hub.docker.com/r/apache/karaf/tags
> 
> Will there be a docker image for 4.2.9?
> 
> Thanks!
> 
> 
> - Steinar
>