chopeen / unifi-docker-raspi

Running UniFi Controller on Raspberry Pi Zero
https://hub.docker.com/r/chopeen/unifi-docker-raspi
MIT License
5 stars 0 forks source link

Install Java 11 from Zulu #18

Open chopeen opened 1 year ago

chopeen commented 1 year ago

Starting from v7.3, Unifi Controller drops support for Java 8 and requires Java 11:

According to https://jjn.one/posts/raspberry-pi-zero-java-11/, it is possible to install Java JDK 11 for ARMv6 provided by Azul called Zulu SDK.

chopeen commented 1 year ago

An attempt to build on Raspberry:

#18 7269.4 Running hooks in /etc/ca-certificates/update.d...
#18 7269.6 
#18 7271.4 Error occurred during initialization of VM
#18 7271.4 Server VM is only supported on ARMv7+ VFP
#18 7272.6 E: /etc/ca-certificates/update.d/jks-keystore exited with code 1.
#18 7272.6 done.
#18 7273.0 Errors were encountered while processing:
#18 7273.0  ca-certificates-java
#18 7276.4 E: Sub-process /usr/bin/dpkg returned an error code (1)
------
Dockerfile:59
--------------------
  58 |     # Push installing openjdk-8-jre first, so that the unifi package doesn't pull in openjdk-7-jre as a dependency? Else uncomment and just go with openjdk-7.
  59 | >>> RUN set -ex \
  60 | >>>  && mkdir -p /usr/share/man/man1/ \
  61 | >>>  && groupadd -r unifi -g $UNIFI_GID \
  62 | >>>  && useradd --no-log-init -r -u $UNIFI_UID -g $UNIFI_GID unifi \
  63 | >>>  && /usr/local/bin/docker-build.sh "${PKGURL}"
  64 |     
--------------------
error: failed to solve: process "/bin/sh -c set -ex  && mkdir -p /usr/share/man/man1/  && groupadd -r unifi -g $UNIFI_GID  && useradd --no-log-init -r -u $UNIFI_UID -g $UNIFI_GID unifi  && /usr/local/bin/docker-build.sh \"${PKGURL}\"" did not complete successfully: exit code: 100