Skip to content

Commit

Permalink
refactor(distrib): installers renaming and corrected metadata (#5609)
Browse files Browse the repository at this point in the history
* style: added comments for better reachability

Signed-off-by: Marcello Rinaldo Martina <[email protected]>

* refactor(distrib): renamed generic-aarch64 profiles into aarch64

Signed-off-by: Marcello Rinaldo Martina <[email protected]>

* refactor(distrib): renamed generic-arm32 profiles into armhf

Signed-off-by: Marcello Rinaldo Martina <[email protected]>

* refactor(distrib): renamed generic-x86_64 profiles into x86_64

Signed-off-by: Marcello Rinaldo Martina <[email protected]>

* refactor(distrib): removed Java version check in launch scripts, added opens in launch config

Signed-off-by: Marcello Rinaldo Martina <[email protected]>

* refactor(distrib): installer metadata changes for aarch64

Signed-off-by: Marcello Rinaldo Martina <[email protected]>

* refactor(distrib): installer metadata changes for armhf

Signed-off-by: Marcello Rinaldo Martina <[email protected]>

* refactor(distrib): installer metadata changes for x86_64

Signed-off-by: Marcello Rinaldo Martina <[email protected]>

* refactor(distrib): removed non-existing references to kura.init files in ant script

Signed-off-by: Marcello Rinaldo Martina <[email protected]>

* refactor(distrib): changed kura.os.version from raspbian to Linux

Signed-off-by: Marcello Rinaldo Martina <[email protected]>

* refactor(distrib): fixed Maintainer metadata field

Signed-off-by: Marcello Rinaldo Martina <[email protected]>

* feat(distrib): added Homepage metadata field

Signed-off-by: Marcello Rinaldo Martina <[email protected]>

* refactor(distrib): changed kura.os.version from linux to debian

Signed-off-by: Marcello Rinaldo Martina <[email protected]>

* fix(distrib): corrected nn profiles names

Signed-off-by: Marcello Rinaldo Martina <[email protected]>

* fix(distrib): corrected docker metadata

Signed-off-by: Marcello Rinaldo Martina <[email protected]>

* fix(distrib): changed installer .deb names to match <pack-name>_<version>_<deb-arch>.deb

Signed-off-by: Marcello Rinaldo Martina <[email protected]>

* fix: removing wrong commited files

Signed-off-by: Marcello Rinaldo Martina <[email protected]>

---------

Signed-off-by: Marcello Rinaldo Martina <[email protected]>
  • Loading branch information
marcellorinaldo authored Dec 10, 2024
1 parent ee6e4e9 commit 758702c
Show file tree
Hide file tree
Showing 63 changed files with 151 additions and 148 deletions.
133 changes: 76 additions & 57 deletions kura/distrib/pom.xml

Large diffs are not rendered by default.

48 changes: 3 additions & 45 deletions kura/distrib/src/main/ant/build_equinox_distrib.xml
Original file line number Diff line number Diff line change
Expand Up @@ -268,22 +268,12 @@ ${DIR}/bin/gen_config_ini.sh ${DIR}/framework/config.ini ${DIR}/plugins > /tmp/.
KURA_RUNNING=`ps ax | grep java | grep "org.eclipse.equinox"`
#get java version
JAVA_VERSION=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}')
JAVA_VERSION_NUM=$(echo "$JAVA_VERSION" | awk -F. '{printf("%03d%03d",$1,$2);}')
OPEN_MODULE_OPTIONS=''
if [ $JAVA_VERSION_NUM -gt 001008 ] ; then
OPEN_MODULE_OPTIONS="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED"
fi
if [ -z "$KURA_RUNNING" ] ; then
exec java -Xms${kura.mem.size} -Xmx${kura.mem.size} \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/kura-heapdump.hprof \
-XX:ErrorFile=/var/log/kura-error.log \
-XX:+IgnoreUnrecognizedVMOptions \
${OPEN_MODULE_OPTIONS} \
--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED \
--add-modules=ALL-SYSTEM \
-Dkura.os.version=${kura.os.version} \
-Dkura.arch=${kura.arch} \
Expand Down Expand Up @@ -321,24 +311,14 @@ ${DIR}/bin/gen_config_ini.sh ${DIR}/framework/config.ini ${DIR}/plugins > /tmp/.
KURA_RUNNING=`ps ax | grep java | grep "org.eclipse.equinox"`
#get java version
JAVA_VERSION=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}')
JAVA_VERSION_NUM=$(echo "$JAVA_VERSION" | awk -F. '{printf("%03d%03d",$1,$2);}')
OPEN_MODULE_OPTIONS=''
if [ $JAVA_VERSION_NUM -gt 001008 ] ; then
OPEN_MODULE_OPTIONS="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED"
fi
if [ -z "$KURA_RUNNING" ] ; then
exec java -Xms${kura.mem.size} -Xmx${kura.mem.size} \
-XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/var/log/kura-gc.log \
-XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/kura-heapdump.hprof \
-XX:ErrorFile=/var/log/kura-error.log \
-XX:+IgnoreUnrecognizedVMOptions \
${OPEN_MODULE_OPTIONS} \
--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED \
--add-modules=ALL-SYSTEM \
-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=*:8000,suspend=n \
-Dkura.os.version=${kura.os.version} \
Expand Down Expand Up @@ -378,22 +358,12 @@ ${DIR}/bin/gen_config_ini.sh ${DIR}/framework/config.ini ${DIR}/plugins > /tmp/.
KURA_RUNNING=`ps ax | grep java | grep "org.eclipse.equinox"`
#get java version
JAVA_VERSION=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}')
JAVA_VERSION_NUM=$(echo "$JAVA_VERSION" | awk -F. '{printf("%03d%03d",$1,$2);}')
OPEN_MODULE_OPTIONS=''
if [ $JAVA_VERSION_NUM -gt 001008 ] ; then
OPEN_MODULE_OPTIONS="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED"
fi
if [ -z "$KURA_RUNNING" ] ; then
nohup java -Xms${kura.mem.size} -Xmx${kura.mem.size} \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/kura-heapdump.hprof \
-XX:ErrorFile=/var/log/kura-error.log \
-XX:+IgnoreUnrecognizedVMOptions \
${OPEN_MODULE_OPTIONS} \
--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED \
--add-modules=ALL-SYSTEM \
-Dkura.os.version=${kura.os.version} \
-Dkura.arch=${kura.arch} \
Expand Down Expand Up @@ -424,24 +394,12 @@ fi]]>
<!-- Populate parameters -->
<copy file="src/main/resources/${build.name}/kura_install.sh"
tofile="${project.build.directory}/${build.output.name}/kura_install.sh" />
<copy file="src/main/resources/common/kura.init.yocto"
tofile="${project.build.directory}/${build.output.name}/kura.init.yocto"
failonerror="false" />
<copy file="src/main/resources/common/kura.init.raspbian"
tofile="${project.build.directory}/${build.output.name}/kura.init.raspbian"
failonerror="false" />
<copy file="src/main/resources/common/kura.service"
tofile="${project.build.directory}/${build.output.name}/kura.service"
failonerror="false" />
<replaceregexp
file="${project.build.directory}/${build.output.name}/kura_install.sh"
match="INSTALL_DIR=.*" replace="INSTALL_DIR=${kura.install.dir}" />
<replaceregexp
file="${project.build.directory}/${build.output.name}/kura.init.yocto"
match="INSTALL_DIR=.*" replace="INSTALL_DIR=${kura.install.dir}" />
<replaceregexp
file="${project.build.directory}/${build.output.name}/kura.init.raspbian"
match="INSTALL_DIR=.*" replace="INSTALL_DIR=${kura.install.dir}" />
<replaceregexp
file="${project.build.directory}/${build.output.name}/kura.service"
match="INSTALL_DIR" replace="${kura.install.dir}" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,20 @@
# Contributors:
# Eurotech
#
Package: kura
Package: kura-nn
Version: [[project.version]]
Section: misc
Priority: low
Depends: openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk,
Section: admin
Priority: optional
Depends: openjdk-17-jre-headless | temurin-17-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,
ntpdate, chrony, chronyc | chrony, cron | cronie, logrotate, gpsd, python3
Architecture: all
Maintainer: [email protected]
Description: Kura is an inclusive software framework that puts a layer
Architecture: arm64
Maintainer: Eclipse Kura Developers <[email protected]>
Homepage: https://eclipse-kura.github.io/kura/
Description: Open-source IoT edge framework based on Java/OSGi
Kura is an inclusive software framework that puts a layer
between the operating system and the customer application, with industry
standard interfaces that shorten custom development time, simplified coding
and software that can be easily ported from one hardware platform
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,20 @@
#
Package: kura
Version: [[project.version]]
Section: misc
Priority: low
Depends: openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk,
Section: admin
Priority: optional
Depends: openjdk-17-jre-headless | temurin-17-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,
ntpdate, chrony, chronyc | chrony, cron | cronie,
network-manager | networkmanager, bind9 | bind, dnsmasq | isc-dhcp-server, isc-dhcp-client | dhcpcd, iw, iptables, modemmanager,
logrotate, gpsd, python3
Architecture: all
Maintainer: [email protected]
Description: Kura is an inclusive software framework that puts a layer
Architecture: arm64
Maintainer: Eclipse Kura Developers <[email protected]>
Homepage: https://eclipse-kura.github.io/kura/
Description: Open-source IoT edge framework based on Java/OSGi
Kura is an inclusive software framework that puts a layer
between the operating system and the customer application, with industry
standard interfaces that shorten custom development time, simplified coding
and software that can be easily ported from one hardware platform
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,20 @@
# Contributors:
# Eurotech
#
Package: kura
Package: kura-nn
Version: [[project.version]]
Section: misc
Priority: low
Depends: openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk,
Section: admin
Priority: optional
Depends: openjdk-17-jre-headless | temurin-17-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,
ntpdate, chrony, chronyc | chrony, cron | cronie, logrotate, gpsd, python3
Architecture: all
Maintainer: [email protected]
Description: Kura is an inclusive software framework that puts a layer
Architecture: armhf
Maintainer: Eclipse Kura Developers <[email protected]>
Homepage: https://eclipse-kura.github.io/kura/
Description: Open-source IoT edge framework based on Java/OSGi
Kura is an inclusive software framework that puts a layer
between the operating system and the customer application, with industry
standard interfaces that shorten custom development time, simplified coding
and software that can be easily ported from one hardware platform
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,20 @@
#
Package: kura
Version: [[project.version]]
Section: misc
Priority: low
Depends: openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk,
Section: admin
Priority: optional
Depends: openjdk-17-jre-headless | temurin-17-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,
ntpdate, chrony, chronyc | chrony, cron | cronie,
network-manager | networkmanager, bind9 | bind, dnsmasq | isc-dhcp-server, isc-dhcp-client | dhcpcd, iw, iptables, modemmanager,
logrotate, gpsd, python3
Architecture: all
Maintainer: [email protected]
Description: Kura is an inclusive software framework that puts a layer
Architecture: armhf
Maintainer: Eclipse Kura Developers <[email protected]>
Homepage: https://eclipse-kura.github.io/kura/
Description: Open-source IoT edge framework based on Java/OSGi
Kura is an inclusive software framework that puts a layer
between the operating system and the customer application, with industry
standard interfaces that shorten custom development time, simplified coding
and software that can be easily ported from one hardware platform
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
Package: kura
#
# Copyright (c) 2024 Eurotech and/or its affiliates and others
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Eurotech
#
Package: kura-nn
Version: [[project.version]]
Section: misc
Priority: low
Section: admin
Priority: optional
Depends: dos2unix, unzip,
telnet, bluez-hcidump,
bluez, chrony, ntpdate,
openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk,
openjdk-17-jre-headless | temurin-17-jdk,
cron
Architecture: all
Maintainer: [email protected]
Description: Kura is an inclusive software framework that puts a layer
Architecture: amd64
Maintainer: Eclipse Kura Developers <[email protected]>
Homepage: https://eclipse-kura.github.io/kura/
Description: Open-source IoT edge framework based on Java/OSGi
Kura is an inclusive software framework that puts a layer
between the operating system and the customer application, with industry
standard interfaces that shorten custom development time, simplified coding
and software that can be easily ported from one hardware platform
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,20 @@
# Contributors:
# Eurotech
#
Package: kura
Package: kura-nn
Version: [[project.version]]
Section: misc
Priority: low
Depends: openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk,
Section: admin
Priority: optional
Depends: openjdk-17-jre-headless | temurin-17-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,
ntpdate, chrony, chronyc | chrony, cron | cronie, logrotate, gpsd, python3
Architecture: all
Maintainer: [email protected]
Description: Kura is an inclusive software framework that puts a layer
Architecture: amd64
Maintainer: Eclipse Kura Developers <[email protected]>
Homepage: https://eclipse-kura.github.io/kura/
Description: Open-source IoT edge framework based on Java/OSGi
Kura is an inclusive software framework that puts a layer
between the operating system and the customer application, with industry
standard interfaces that shorten custom development time, simplified coding
and software that can be easily ported from one hardware platform
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,20 @@
#
Package: kura
Version: [[project.version]]
Section: misc
Priority: low
Depends: openjdk-17-jre-headless | temurin-17-jdk | openjdk-8-jre-headless | temurin-8-jdk,
Section: admin
Priority: optional
Depends: openjdk-17-jre-headless | temurin-17-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,
ntpdate, chrony, chronyc | chrony, cron | cronie,
network-manager | networkmanager, bind9 | bind, dnsmasq | isc-dhcp-server, isc-dhcp-client | dhcpcd, iw, iptables, modemmanager,
logrotate, gpsd, python3
Architecture: all
Maintainer: [email protected]
Description: Kura is an inclusive software framework that puts a layer
Architecture: amd64
Maintainer: Eclipse Kura Developers <[email protected]>
Homepage: https://eclipse-kura.github.io/kura/
Description: Open-source IoT edge framework based on Java/OSGi
Kura is an inclusive software framework that puts a layer
between the operating system and the customer application, with industry
standard interfaces that shorten custom development time, simplified coding
and software that can be easily ported from one hardware platform
Expand Down

0 comments on commit 758702c

Please sign in to comment.