This PR adds basically apt-get upgrade or apk upgrade during
the installation. Thus, the generated image will contain latest
security fixes and package upgrades.
Deb is set to version 12-slim, relying on Docker hub to link the
current released version.
See https://hub.docker.com/_/debian and
https://hub.docker.com/_/alpine
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* Use Java 21 with openHAB 5
* Remove linux/arm/v7 support
* Update versions in build help
* Install Temurin when Debian does not have an installation package in its repositories for an OpenJDK version
Signed-off-by: Wouter Born <github@maindrain.net>
* Replace Temurin with OpenJDK from Debian repos which does not crash when using arm64 image on the Raspberry Pi 3
* Switch back to Debian 11 which consumes less memory
Fixes#416
Reverts #422
Signed-off-by: Wouter Born <github@maindrain.net>
For some reason p11-kit cannot find any modules during the linux/arm/v7 build.
As a result there would be no usable certificates causing all HTTPS connections to fail.
Signed-off-by: Wouter Born <github@maindrain.net>
The Temurin JDK is easier to install because it supports all architectures using an APT repo.
It is also more open source compared to the Zulu JDK, for building it yourself, see: https://github.com/adoptium/temurin-build
With these changes the JAVA_HOME, JAVA_VERSION, OPENHAB_VERSION environment variables are no longer exposed/used to prevent upgrade issues when the container is managed by UIs that persist all env default values like Portainer.
Closes#393
Signed-off-by: Wouter Born <github@maindrain.net>
Updates:
* Alpine to 3.14.3
* Debian to 11.1
* binfmt to tonistiigi/binfmt:qemu-v6.1.0 (required for building Debian 11 ARM images with buildx)
Furthermore the [pushrm](https://github.com/christian-korneck/docker-pushrm) Docker CLI plugin is now used for updating the README on Docker Hub.
Signed-off-by: Wouter Born <github@maindrain.net>
It was using the artifacts produced by the wrong Jenkins jobs.
Also removes the logic for updating the legacy add-ons KAR which no longer exists in OH3.
Signed-off-by: Wouter Born <github@maindrain.net>
Allows for customizing the shell options used by the entrypoint script.
E.g. set it to "+x" to disable the trace logging or set it to "-v" to also print shell input lines.
Fixes#346
Signed-off-by: Wouter Born <github@maindrain.net>
* Make Dockerfiles more generic so they can be reused for all openHAB versions
* Determine version information automatically based on openhab-distro tags/branches
* Merge helper scripts into helper-functions
* Add "build" script to simplify building multiple versions or a specific distro using BuildKit
* Add GitHub Actions workflows for PR builds
Fixes#318
Signed-off-by: Wouter Born <github@maindrain.net>