bwssytems / ha-bridge

Home automation bridge that emulates a Philips Hue light system and can control other systems such as a Vera, Harmony Hub, Nest, MiLight bulbs or any other system that has an http/https/tcp/udp interface. This is a compact impl to run on small format computers. This is impl started from this project https://github.com/armzilla/amazon-echo-ha-bridge.
Apache License 2.0
1.45k stars 199 forks source link

Docker image for Raspberry Pi using depreciated image #1348

Open MallocArray opened 2 years ago

MallocArray commented 2 years ago

The links for Docker images for the Raspberry Pi line looks to be referencing an image from resin that is depreciated https://hub.docker.com/r/resin/raspberrypi3-openjdk https://github.com/escalate/ha-bridge-raspberry-pi-docker/blob/master/Dockerfile

I'm not sure if special considerations are needed for Pi 1 and 2, but I was able to create my own Dockerfile that successfully built an image for a Raspberry Pi 4 using Java 11 and has recent security updates in the container. Should the old Pi images be retired and a new base for images be adopted?

Including my file for reference

FROM eclipse-temurin:11-jdk

WORKDIR /ha-bridge

RUN apt update && apt install wget -y
RUN wget $(curl -s https://api.github.com/repos/bwssytems/ha-bridge/releases/latest | grep 'browser_' | grep 'java11' | cut -d\" -f4)
RUN mv ha-bridge-*.jar ha-bridge-java11.jar
EXPOSE 80

ENTRYPOINT ["java","-jar","/ha-bridge/ha-bridge-java11.jar"]