Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New JAVA for openHAB3 #629

Closed
EliasGabrielsson opened this issue Aug 4, 2019 · 6 comments
Closed

New JAVA for openHAB3 #629

EliasGabrielsson opened this issue Aug 4, 2019 · 6 comments
Labels
base system Related to the base system enhancement New feature or request

Comments

@EliasGabrielsson
Copy link
Contributor

There are discussion on updating JAVA for openHAB 3.0 to at least JAVA 11.
openhab/openhab-distro#768

Nothing new really, just update the packages when times come.
Java Zulu are providing 32-bit packages so we don't need to drop support for older RPis.

@EliasGabrielsson EliasGabrielsson added base system Related to the base system enhancement New feature or request labels Aug 4, 2019
@EliasGabrielsson EliasGabrielsson changed the title Update JAVA to be inline with openHAB requirments Update JAVA to be inline with openHAB3 requirments Aug 8, 2019
@mstormi mstormi changed the title Update JAVA to be inline with openHAB3 requirments New JAVA for openHAB3 Mar 28, 2020
@mstormi
Copy link
Contributor

mstormi commented Mar 28, 2020

There have been a number of proposals, issues and pieces of information related to what Java to use in the future such as #805, #766, #729, #723, #714, a number of forum posts such as https://community.openhab.org/t/running-openhab-2-on-openjdk/21443/8?u=benjy and more.

Please move all activities and discussions to https://github.com/orgs/openhab/teams/refocus-ian/discussions/6 to be the central place for discussing the way forward w.r.t. Java provider.

ecdye added a commit to ecdye/openhabian that referenced this issue Apr 28, 2020
Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
so as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes openhab#714
Fixes openhab#723
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue Apr 28, 2020
Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
so as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes openhab#714
Fixes openhab#723
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue Apr 29, 2020
Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
and so, as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes openhab#714
Fixes openhab#723
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue Apr 29, 2020
Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
and so, as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes openhab#714
Fixes openhab#723
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue Apr 29, 2020
Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
and so, as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes openhab#714
Fixes openhab#723
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue Apr 30, 2020
Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
and so, as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes openhab#714
Fixes openhab#723
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue Apr 30, 2020
Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
and so, as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes openhab#714
Fixes openhab#723
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue Apr 30, 2020
Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
and so, as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes openhab#714
Fixes openhab#723
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue Apr 30, 2020
Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
and so, as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes openhab#714
Fixes openhab#723
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue Apr 30, 2020
Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
and so, as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes openhab#714
Fixes openhab#723
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue Apr 30, 2020
Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
and so, as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes openhab#714
Fixes openhab#723
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 3, 2020
Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
and so, as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes openhab#714
Fixes openhab#723
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 3, 2020
Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
and so, as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes openhab#714
Fixes openhab#723
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 3, 2020
Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
and so, as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes openhab#714
Fixes openhab#723
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
mstormi pushed a commit that referenced this issue May 4, 2020
* Use Zulu API v1 when upgrading Java

Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
and so, as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes #714
Fixes #723
See Also #629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>

* Refuse to install 64-bit JDK on 32-bit OS

armv8 builds in theory should work on the RPi3+/RPi4, however the
current Raspbian kernel uses a armv7l base which works because armv8 is
backwards compatible. However, this has the effect of making the builds
targeting aarch64 provided by Azul unable to work on the RPi3+/RPi4. On
the other hand, this is not a huge issue as the use of 64-bit Java on
low-memory boards brings few benefits and mostly issues.

Additionally, this adds checking for other platforms to ensure that the
OS is actually 64-bit before trying to install a 64-bit JDK. If the OS
is not actually 64-bit the installer defaults to installing a 32-bit
JDK.

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 5, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 5, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 5, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 5, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 5, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 5, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 22, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 22, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
@mstormi
Copy link
Contributor

mstormi commented May 23, 2020

Going for Adopt 11 and Zulu 11 now, with Zulu 8 to remain the default for now.

ecdye added a commit to ecdye/openhabian that referenced this issue May 26, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 26, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 26, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
mstormi pushed a commit that referenced this issue May 26, 2020
* Add Option for AdoptOpenJDK

Fixes #868
See Also #629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>

* Add Java 11 Support

Signed-off-by: Ethan Dye <mrtops03@gmail.com>

* Prepare Java for inclusion in openHABian image

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 26, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
mstormi added a commit to mstormi/openhabian that referenced this issue May 27, 2020
* Add Option for AdoptOpenJDK

Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>

Co-authored-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 27, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 27, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 28, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 29, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 30, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
mstormi added a commit that referenced this issue May 30, 2020
* Enhanced and more verbose testing in Travis (#859)
* ZRAM tests to work if on ARM but lxc
* cond_echo cmd in tryUntil()
* restrict container to 1G for RPi3
* dont allow for failure of BATS tests
* add warning 64bit on aarch64 is NOT supposed to work; check if OH downgrades to 32bit
* reduce to a single shellcheck run (else builds succeed when there's no error in the last run)
* increased verbosity on test cases

Signed-off-by: Markus Storm <markus.storm@gmx.net>

* Grafana/InfluxDB installation enhancements (#860)
* Timeouts for service start #760
* Grafana admin password length is enforced #562
* Local installation of InfluxDB now also patches existing installations
* Password reset for existing Grafana and local InfluxDB installations
* In interactive mode, display a warning if less than 1GB RAM is detected

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>

* Setting timezone based on IP geolocation now uses python3, fixes #862 (#864)
* Switched installation of tzupdate to python3, as py2 is no longer supported
  cdown/tzupdate#34

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>

* Use Zulu API v1 when upgrading Java (#848)
Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
and so, as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes #714
Fixes #723
See Also #629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>

* Refuse to install 64-bit JDK on 32-bit OS

armv8 builds in theory should work on the RPi3+/RPi4, however the
current Raspbian kernel uses a armv7l base which works because armv8 is
backwards compatible. However, this has the effect of making the builds
targeting aarch64 provided by Azul unable to work on the RPi3+/RPi4. On
the other hand, this is not a huge issue as the use of 64-bit Java on
low-memory boards brings few benefits and mostly issues.

Additionally, this adds checking for other platforms to ensure that the
OS is actually 64-bit before trying to install a 64-bit JDK. If the OS
is not actually 64-bit the installer defaults to installing a 32-bit
JDK.

Signed-off-by: Ethan Dye <mrtops03@gmail.com>

* fix nginx install (#867)

* add missing #REDIR to nginx.conf template

Signed-off-by: Markus Storm <markus.storm@gmx.net>

* fix install webif port in docs (#873)

Signed-off-by: Markus Storm <markus.storm@gmx.net>

* hotfix to download aarch32hf instead of sf on multiple returns in Azul REST API (#877)

Signed-off-by: Markus Storm <markus.storm@gmx.net>

* point to new openHABian debug guide

* point to new debug guide

* Remove python2 from openHABian (#876)

* replace all occurences of python and python-pip by python3 equivalent
* fixes #875 (compatibility with Ubuntu 20.04)
* timezone setting: added python3-setuptools before installing tzupdate
* java installer: show version after install

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>

* Run apt-get update on startup in background (#724)

* move apt-get update to background on openhabian-config start, catch up in menu selections

Signed-off-by: Markus Storm <markus.storm@gmx.net>

* add intermediate output when selecting a menu option while apt-get update hasnt finished (#880)

Signed-off-by: Markus Storm <markus.storm@gmx.net>

* Use Markdown in LICENSE and update copyright year (#847)

Co-authored-by: Thomas Dietrich <Thomas@Nurzen.de>

Signed-off-by: Ethan Dye <mrtops03@gmail.com>

* Remove setting gnuio options on serial ports (#883)

* Remove setting gnuio options on serial

Signed-off-by: Markus Storm <markus.storm@gmx.net>

* allow for disabling IPv6 in openhabian.conf (#888)

* allow for ipv6=disable in openhabian.conf

Signed-off-by: Markus Storm <markus.storm@gmx.net>

* allow for ipv6=disable in openhabian.conf (#891)

Signed-off-by: Markus Storm <markus.storm@gmx.net>

* installation of additional bluetooth packages on RPi (#898)

* python3-bluez not installed on stretch based installations, fixes #893
* additional bluetooth packages are now installed also on RPi4

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>

* Fix bluetooth package installation

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>

* return instead of exit if installing non existent BT packages fails (#903)

Signed-off-by: Markus Storm <markus.storm@gmx.net>

* add hw,hwarch,release parameters (#901)

* add hw, hwarch, release parameters to "fake" HW, OS

Signed-off-by: Markus Storm <markus.storm@gmx.net>

* added missing calls to apt-get update after adding repositories. (#911)

Fixes grafana install issue, #906.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>

* Add openhab-cli backup/restore to menu 50 (#910)

* added openhab-cli backup/restore implementation to 50 menu

Signed-off-by: Markus Storm <markus.storm@gmx.net>

* run Docker in foreground in BATS testing stage (#918)

* run Docker in foreground in BATS testing stage to get to see output in Travis builds
* allow for dev and BATS testing stages to fail while BATS tests still fail

Signed-off-by: Markus Storm <markus.storm@gmx.net>

* CORS fix (#830)

* fix CORS (#528)

Signed-off-by: Markus Storm <markus.storm@gmx.net>

* Grafana installation fixed (#915)

* wait for Grafana service to setup grafana.db before using grafana-cli to avoid side effects, fixes #914
* adapted bats test to check connection to InfluxDB, to store settings in Grafana, to validate connection and settings file grafana.db

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>

* Grafana installation fixed (#925)

* race condition due to db migration during installer run, #921

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>

* add RPi4 to bluetooth and WiFi functions; add CM1,CM3(+) support (#861)

* Add CM1,CM3(+) to supported models so now we support all RPis
* add RPi4 to bluetooth and WiFi functions
* add disable-wifi to option 36

Signed-off-by: Markus Storm <markus.storm@gmx.net>

* another instance of safe grep'ing (#929)

* fix another safe grep instance

Signed-off-by: Markus Storm <markus.storm@gmx.net>

* Insert missing semi-colons

Signed-off-by: Ethan Dye <mrtops03@gmail.com>

* Fixes in preparation of upcoming changes (#932)

* Fixes in preparation of upcoming changes

Signed-off-by: Ethan Dye <mrtops03@gmail.com>

* replace fstab by explicit systemd mount units to ensure proper order (#807)

* Replace fstab by explicit systemd units to ensure right mount order (#807)
  To ensure ZRAM and Samba properly work together on sharing
  /srv/openhab2-*, we need to change the order of mounts.
  As this cannot be done in fstab, I removed them and setup separate
  systemd mount units instead.

* change Samba shares
  Include logs, exclude /srv overview share, remove Samba defaults like printers

Signed-off-by: Markus Storm <markus.storm@gmx.net>

* intro stable branch (#882)

* introduce stable branch (#882)
* renamed mode parameter to debugmode; new values are off/on/maximum
* Add popup announcement function
* add docs/NEWSLOG.md

Signed-off-by: Markus Storm <markus.storm@gmx.net>

Co-authored-by: Holger Friedrich <holgerfriedrich@users.noreply.github.com>
Co-authored-by: Ethan Dye <mrtops03@gmail.com>
Co-authored-by: Holger Friedrich <mail@holger-friedrich.de>
mstormi pushed a commit to mstormi/openhabian that referenced this issue May 30, 2020
* Use Zulu API v1 when upgrading Java

Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
and so, as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes openhab#714
Fixes openhab#723
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>

* Refuse to install 64-bit JDK on 32-bit OS

armv8 builds in theory should work on the RPi3+/RPi4, however the
current Raspbian kernel uses a armv7l base which works because armv8 is
backwards compatible. However, this has the effect of making the builds
targeting aarch64 provided by Azul unable to work on the RPi3+/RPi4. On
the other hand, this is not a huge issue as the use of 64-bit Java on
low-memory boards brings few benefits and mostly issues.

Additionally, this adds checking for other platforms to ensure that the
OS is actually 64-bit before trying to install a 64-bit JDK. If the OS
is not actually 64-bit the installer defaults to installing a 32-bit
JDK.

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Signed-off-by: Markus Storm <markus.storm@gmx.net>
mstormi pushed a commit to mstormi/openhabian that referenced this issue May 31, 2020
* Use Zulu API v1 when upgrading Java

Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
and so, as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes openhab#714
Fixes openhab#723
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>

* Refuse to install 64-bit JDK on 32-bit OS

armv8 builds in theory should work on the RPi3+/RPi4, however the
current Raspbian kernel uses a armv7l base which works because armv8 is
backwards compatible. However, this has the effect of making the builds
targeting aarch64 provided by Azul unable to work on the RPi3+/RPi4. On
the other hand, this is not a huge issue as the use of 64-bit Java on
low-memory boards brings few benefits and mostly issues.

Additionally, this adds checking for other platforms to ensure that the
OS is actually 64-bit before trying to install a 64-bit JDK. If the OS
is not actually 64-bit the installer defaults to installing a 32-bit
JDK.

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Signed-off-by: Markus Storm <markus.storm@gmx.net>
ecdye added a commit to ecdye/openhabian that referenced this issue May 31, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 31, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
ecdye added a commit to ecdye/openhabian that referenced this issue May 31, 2020
Fixes openhab#868
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
mstormi pushed a commit that referenced this issue May 31, 2020
* Add Option for AdoptOpenJDK
  Fixes #868
  See Also #629
* Add Java 11 Support
* Prepare Java for inclusion in openHABian image

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
mstormi pushed a commit to mstormi/openhabian that referenced this issue Jun 10, 2020
* Use Zulu API v1 when upgrading Java

Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
and so, as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes openhab#714
Fixes openhab#723
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>

* Refuse to install 64-bit JDK on 32-bit OS

armv8 builds in theory should work on the RPi3+/RPi4, however the
current Raspbian kernel uses a armv7l base which works because armv8 is
backwards compatible. However, this has the effect of making the builds
targeting aarch64 provided by Azul unable to work on the RPi3+/RPi4. On
the other hand, this is not a huge issue as the use of 64-bit Java on
low-memory boards brings few benefits and mostly issues.

Additionally, this adds checking for other platforms to ensure that the
OS is actually 64-bit before trying to install a 64-bit JDK. If the OS
is not actually 64-bit the installer defaults to installing a 32-bit
JDK.

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Signed-off-by: Markus Storm <markus.storm@gmx.net>
mstormi pushed a commit to mstormi/openhabian that referenced this issue Jun 10, 2020
* Add Option for AdoptOpenJDK
  Fixes openhab#868
  See Also openhab#629
* Add Java 11 Support
* Prepare Java for inclusion in openHABian image

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Signed-off-by: Markus Storm <markus.storm@gmx.net>
mstormi pushed a commit to mstormi/openhabian that referenced this issue Jun 10, 2020
* Use Zulu API v1 when upgrading Java

Additionally, to clarify what Java version this will install, when
available, the API will prefer downloading a JRE. However, when a JRE is
not available it will use a JDK instead. However, when JDK's are
installed only the essential binaries are linked to update-alternatives
so extra JDK related software is unlinked (i.e. javac).

At the moment, Azul appears to only provide JDK builds for ARM platforms
and so, as such, ARM platforms are most often the ones to not get a JRE
installed and the resulting installation tends to be a bit larger (~100
MB).

One minor inconvenience is that with the current Azul API it does not
allow explicitly choosing builds without the JavaFX additional binaries.
So at times, the Java version installed will have extra JavaFX binaries.
This is usually seen when the architecture being installed is x86 based.

Fixes openhab#714
Fixes openhab#723
See Also openhab#629

Signed-off-by: Ethan Dye <mrtops03@gmail.com>

* Refuse to install 64-bit JDK on 32-bit OS

armv8 builds in theory should work on the RPi3+/RPi4, however the
current Raspbian kernel uses a armv7l base which works because armv8 is
backwards compatible. However, this has the effect of making the builds
targeting aarch64 provided by Azul unable to work on the RPi3+/RPi4. On
the other hand, this is not a huge issue as the use of 64-bit Java on
low-memory boards brings few benefits and mostly issues.

Additionally, this adds checking for other platforms to ensure that the
OS is actually 64-bit before trying to install a 64-bit JDK. If the OS
is not actually 64-bit the installer defaults to installing a 32-bit
JDK.

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Signed-off-by: Markus Storm <markus.storm@gmx.net>
mstormi pushed a commit to mstormi/openhabian that referenced this issue Jun 10, 2020
* Add Option for AdoptOpenJDK
  Fixes openhab#868
  See Also openhab#629
* Add Java 11 Support
* Prepare Java for inclusion in openHABian image

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Signed-off-by: Markus Storm <markus.storm@gmx.net>
@mstormi
Copy link
Contributor

mstormi commented Jun 16, 2020

@ecdye would you say we're done with this ?

@ecdye
Copy link
Contributor

ecdye commented Jun 16, 2020

Yeah, It has been implemented and so far seems to be solid so I think we are done.

@mstormi
Copy link
Contributor

mstormi commented Jun 16, 2020

Great. Thanks again for your contribution.
(btw I'm running Zulu11 for some days now).

@mstormi mstormi closed this as completed Jun 16, 2020
@ecdye
Copy link
Contributor

ecdye commented Jun 16, 2020

Glad to hear that it is working for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
base system Related to the base system enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants