Skip to content

Commit

Permalink
feat: Switch to java 17 for runtime (#5118)
Browse files Browse the repository at this point in the history
* feat: Switch to java 17 for runtime

Signed-off-by: MMaiero <[email protected]>

* chore: cleanup

Signed-off-by: MMaiero <[email protected]>

* fix: Updated debug directive

Signed-off-by: MMaiero <[email protected]>

---------

Signed-off-by: MMaiero <[email protected]>
  • Loading branch information
MMaiero authored Feb 13, 2024
1 parent 6223fa5 commit a47167f
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 15 deletions.
2 changes: 1 addition & 1 deletion kura/distrib/src/main/ant/build_equinox_distrib.xml
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ if [ -z "$KURA_RUNNING" ] ; then
-XX:+IgnoreUnrecognizedVMOptions \
${OPEN_MODULE_OPTIONS} \
--add-modules=ALL-SYSTEM \
-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n \
-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=*:8000,suspend=n \
-Dkura.os.version=${kura.os.version} \
-Dkura.arch=${kura.arch} \
-Dtarget.device=${target.device} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ENV \

RUN chmod a+x -R /usr/local/bin && \
apk update && \
apk --no-cache add openjdk8 bash zip curl gcompat procps unzip gzip tar && \
apk --no-cache add openjdk17-jre-headless bash zip curl gcompat procps unzip gzip tar && \
apk --no-cache add dos2unix openssl net-tools which busybox-extras && \
apk --no-cache add bluez bluez-deprecated chrony eudev glib psmisc socat && \
/kura-install/kura_*_docker-x86_64-nn_installer.sh && \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#!/usr/bin/env jjs
#!/bin/bash

print(new java.util.jar.JarFile(arguments[0]).manifest.mainAttributes.getValue("DeploymentPackage-SymbolicName"));
jar_file="$1"
property_name="DeploymentPackage-SymbolicName"

jar xf "$jar_file" META-INF/MANIFEST.MF
property_value=$(grep -oP "(?<=^$property_name: ).*" META-INF/MANIFEST.MF)

rm META-INF/MANIFEST.MF

echo "$property_value";
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN true && \
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
microdnf -y update && \
microdnf -y install \
java-1.8.0-openjdk-headless \
java-17-openjdk-headless \
procps \
zip \
unzip \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#!/usr/bin/env jjs
#!/bin/bash

print(new java.util.jar.JarFile(arguments[0]).manifest.mainAttributes.getValue("DeploymentPackage-SymbolicName"));
jar_file="$1"
property_name="DeploymentPackage-SymbolicName"

jar xf "$jar_file" META-INF/MANIFEST.MF
property_value=$(grep -oP "(?<=^$property_name: ).*" META-INF/MANIFEST.MF)

rm META-INF/MANIFEST.MF

echo "$property_value";
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Priority: low
Depends: dos2unix, unzip,
telnet, bluez-hcidump,
bluez, chrony, ntpdate,
openjdk-8-jre-headless | temurin-8-jdk | openjdk-17-jre-headless | temurin-17-jdk,
openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk,
cron
Architecture: all
Maintainer: [email protected]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Package: kura
Version: [[project.version]]
Section: misc
Priority: low
Depends: openjdk-8-jre-headless | temurin-8-jdk | openjdk-17-jre-headless | temurin-17-jdk,
Depends: openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk,
setserial, zip, gzip, unzip, procps, usbutils, socat, gawk, sed, inetutils-telnet,
polkit | policykit-1, ssh | openssh, openssl, busybox, openvpn,
bluez | bluez5, bluez-hcidump | bluez5-noinst-tools,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Package: kura
Version: [[project.version]]
Section: misc
Priority: low
Depends: openjdk-8-jre-headless | temurin-8-jdk | openjdk-17-jre-headless | temurin-17-jdk,
Depends: openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk,
setserial, zip, gzip, unzip, procps, usbutils, socat, gawk, sed, inetutils-telnet,
polkit | policykit-1, ssh | openssh, openssl, busybox, openvpn,
bluez | bluez5, bluez-hcidump | bluez5-noinst-tools,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Package: kura
Version: [[project.version]]
Section: misc
Priority: low
Depends: openjdk-8-jre-headless | temurin-8-jdk | openjdk-17-jre-headless | temurin-17-jdk,
Depends: openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk,
setserial, zip, gzip, unzip, procps, usbutils, socat, gawk, sed, inetutils-telnet,
polkit | policykit-1, ssh | openssh, openssl, busybox, openvpn,
bluez | bluez5, bluez-hcidump | bluez5-noinst-tools,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Priority: low
Depends: dos2unix, unzip,
telnet, bluez-hcidump,
bluez, chrony, ntpdate,
openjdk-8-jre-headless | temurin-8-jdk | openjdk-17-jre-headless | temurin-17-jdk,
openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk,
cron
Architecture: all
Maintainer: [email protected]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Depends: hostapd, isc-dhcp-server, iw,
bluez, wireless-tools, net-tools,
iptables, chrony, ntpdate,
ifupdown,
openjdk-8-jre-headless | temurin-8-jdk | openjdk-17-jre-headless | temurin-17-jdk,
openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk,
dmidecode, cron
Architecture: all
Maintainer: [email protected]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Section: misc
Priority: low
Depends: dos2unix, unzip, telnet,
bluez-hcidump, chrony, ntpdate,
openjdk-8-jre-headless | temurin-8-jdk | openjdk-17-jre-headless | temurin-17-jdk,
openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk,
cron
Architecture: all
Maintainer: [email protected]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Depends: hostapd, isc-dhcp-server, iw,
ethtool, telnet, ifupdown,
net-tools, iptables, chrony,
dmidecode, ntpdate,
openjdk-8-jre-headless | temurin-8-jdk | openjdk-17-jre-headless | temurin-17-jdk,
openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk,
cron
Architecture: all
Maintainer: [email protected]
Expand Down

0 comments on commit a47167f

Please sign in to comment.