Install PHP - Synology Docker

Hello community,

I have openHAB 2.4 (release version) running in docker at my NAS using the official image.
My NAS is a Synology DiskStation DS418play (Intel CPU) with 6GB RAM.
Everything is working perfectly so far.

Now I’d like to get the infos from my Viessmann heating sytem using this method.

How can use “sudo apt-get instal php” AND “sudo apt-get install php-curl” for installation be done in a container?

Many thanks for your assistance!

I’m pretty sure that Synology runs Docker containers, right?

You will need to modify the Dockerfile and build your own custom Docker image. You can base your image on the official OH image and add the commands you need to add what you need to the container. Then deploy your customized image to your Synology.

Thanks for your answer. Then I’ll have to find some time learning how to do that.

And yes, my Synology NAS runs Docker containers (at the moment: openHAB, InfluxDB, Grafana, Node-RED and ioBroker). But I never built a container on my own.

Hi mamoel,

I have a similar configuration. I tried to customize the OH image but had no success. Did you manageto add the required commands?

Sadly not.

Here is an Example to Build a custom Docker Image