How to add JSR223/Jython support to OpenHAB2.5 using docker

Tags: #<Tag:0x00007f6173204938> #<Tag:0x00007f6173204848> #<Tag:0x00007f6173204780>

HI All,

I just want to upgrade to 2.5 and at that time I also wanna change from RPi to my NAS.
So far I have never used Docker. I successfully installed OpenHAB 2.5.0 as Docker Container via ContainerStation.

I want to add JSR223/Jython support for my installation. I assume, it is not enough to just install the misc-ruleengine addon.
I found the Information on GitHub https://github.com/eclipse/smarthome/wiki/Scripted-Rule-Support and that page mentioned https://github.com/smerschjohann/docker-oh2-jsr223.

I have no idea, if this Information is still applicable for 2.5.0 and misc-ruleengine installed.
If I still have to install JSR223/Jython support additionally, can anybody guide my on how to do that, please?
a) Can I add the JSR223 support to my alreday installed OH2.5 docker container?
b) Do I have to merge the Docker-files for OH2.5 and the docker file from the 2nd link above?

Thanks a lot,
Thorsten

  • Platform information:
    • Hardware: QNAP TS-453B+/4GB
    • OS: 4.4.1.1146
    • openHAB version: 2.5.0

The official documentation is due for an update, but some of it is still valuable. Scripted automation is included in the new rule engine. For now, the best documentation for installation is in the helper library repository, which is the . There is even a section for docker, even though the actual installation is the same.

However, you could also try out the beta Jython bundle…

Yes. If you have the new rule engine installed, then you already have it.

No. I recommend not using the files from that second link. They are very dated compared to the helper libraries.