I want to try and run enRoute inside a Docker container but cannot seem to find any Docker images. Can anyone suggest the location of an image?
Asked
Active
Viewed 352 times
1 Answers
3
OSGi enRoute uses Bndtools. There you can export an bndrun file to an executable JAR (see the Base Tutorial and especially deploying). You therefore only need to have a Java 8 image. This is a non-trivial task because Oracle is rather annoying concerning their copyrights but there is on ggtools/java8
image. Therefore, to run an OSGi enRoute executable JAR on Docker, you can use the following Dockerfile:
FROM ggtools/java8
MAINTAINER pkriens@gmail.com
CMD java -jar test.jar
ADD test.jar test.jar
You can then build and run as follows:
$ ls
Dockerfile
test.jar
$ docker build .
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> 491dc47dbee6 About a minute ago 174.8 MB
<none> <none> 0e3b6c01e0b6 5 weeks ago 176.2 MB
ubuntu latest 1c9b046c2850 7 months ago 187.9 MB
ggtools/java8 latest dcdcbb7229ba 8 months ago 168.5 MB
$ docker run 491dc47dbee6
Welcome to Apache Felix Gogo
g! eval:eval 3+4+5+6+7+8+9
42.0
If this works for you then an Application note for the OSGi enRoute website would be highly appreciated.

Peter Kriens
- 15,196
- 1
- 37
- 55