Skip to content
项目

关于

Eclipse Kura™ 是一个功能灵活的框架,可增强边缘设备的能力,简化网关配置以及连接传感器和物联网设备的流程,从而无缝采集、处理数据并将其发送到云端。

系统与基础设施

这些数字如何统计

可以做什么

  • Kura™ Services: Provision and set up features to run on your gateway, such as an MQTT broker.
  • Kura™ Networking: Manage Network connectivity, including
  • Kura™ Wires: Design data flows and data processing streams effortlessly with a drag-and-drop visual editor.
  • Kura™ Cloud Connectors: Extendable cloud connector system.

实测星标增长

24小时
0
7天
-1
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Eclipse Kura™

Kura™ logo

License Jenkins Build Quality Gate Status

What is Eclipse Kura™?

From the maori word for tank/container, Eclipse Kura™ is a versatile software framework designed to supercharge your edge devices. With an intuitive web interface, Eclipse Kura™ streamlines the process of configuring your gateway, connecting sensors, and IoT devices to seamlessly collect, process, and send data to the cloud. Eclipse Kura™ provides an extensible Java API for developing custom plugins within the framework. Additionally, it offers a REST API, enabling the use of Eclipse Kura™ as a backend service in your application.

Eclipse Kura™ runs on an edge gateway, which can be anything from a small SBC(single-board computer) like a Raspberry Pi, or a powerful high-performance computer.

What can Eclipse Kura™ do for me?

  • Kura™ Services: Provision and set up features to run on your gateway, such as an MQTT broker.
  • Kura™ Networking: Manage Network connectivity, including
  • Kura™ Wires: Design data flows and data processing streams effortlessly with a drag-and-drop visual editor.
  • Kura™ Cloud Connectors: Extendable cloud connector system.
  • Kura™ Drivers: Extendable service that handles reading data off of external devices.
  • Kura™ Snapshots: Securely store and re-apply gateway settings for convenience.
  • Kura™ Security: Easily and safely store your secrets.
  • Kura™ Container Orchestrator: Manage Docker or Podman containers on your gateway for ultimate flexibility.
  • Kura™ AI Inference: Run Nvidia Triton Models on the edge.
  • Kura™ Plugins: Add and Extend the framework by adding your own Services, and Drivers.
  • Kura™ REST Service: Embed the framework as a backend in your own edge applications.

I have used Eclipse Kura™ to make a small-scale Edge deployment, how do I scale now?

If you want to scale, and manage many instances of Eclipse Kura™, check out Eclipse Kapua™. Eclipse Kapua™ is a Eclipse Kura™ compatible cloud command and control service that allows you to aggregate data and configure many Eclipse Kura™ devices.

Documentation

  • User Documentation: here you'll find information on how to use Eclipse Kura™ i.e. installation instructions, informations on how to use the web UI and tutorials.
  • Developer Documentation: the Eclipse Kura™ Github Wiki serves as a reference for developers who want to contribute to the Eclipse Kura™ project and/or develop new add-ons. Here you'll find Eclipse Kura™ development/release model, guidelines on how to import internal packages, creating new bundles and development environment tips & tricks.
  • Docker Containers Documentation: the Eclipse Kura™ team also provides Docker containers for the project. Information on how to build and run them are available at https://github.com/eclipse-kura/kura-metapackage.
  • Developer Quickstart Guide: a quick guide on how to setup the development environment and build the project is also provided in this README.

Additionally, we provide two channels for reporting any issue you find with the project

  • Github Issues: for bug reporting.
  • Github Discussions: for receiving feedback, asking questions, making new proposals and generally talking about the project.

Install

Eclipse Kura™ is compatible with Java 21.

Quick Linux installation

The APT repository provides packages for both x86‑64 and arm64 architectures. To install the latest stable version of Eclipse Kura™, run the following commands in a terminal:

# Install required tools
sudo apt update
sudo apt install -y curl gpg

# Add the Eclipse Kura APT repository key
curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xBA7E3DF5EDC3FC36" \
  | gpg --dearmor \
  | sudo tee /etc/apt/keyrings/kura.gpg > /dev/null

# Add the Eclipse Kura APT repository
sudo tee /etc/apt/sources.list.d/kura.sources > /dev/null << 'EOF'
Types: deb
URIs: https://repo.eclipse.org/repository/kura-apt/
Suites: stable
Components: main
Signed-By: /etc/apt/keyrings/kura.gpg
EOF

# Update package index and install Eclipse Kura
sudo apt update
sudo apt install -y kura

Note: You may need sudo privileges to run these commands.

Target Gateways Installers

Eclipse Kura™ provides pre-built installers for common development boards. Check the following link to download the desired installers. Take a look at our documentation for further information on supported platforms and installer types.

Docker Image

Eclipse Kura™ is also available as a Docker container.

Build

Prerequisites

In order to be able to build Eclipse Kura™ on your development machine, you need to have the following programs installed in your system:

  • JDK 21
  • Maven 3.9.9+

The build runs on Linux, macOS and Windows: it is a plain Maven build and produces the same artifacts everywhere. Eclipse Kura™ itself runs on Linux gateways, so what you build on macOS or Windows are the packages to install on a device, see Install.

Installing Prerequisites in Mac OS

To install Java 21, download the JDK tar archive from the Adoptium Project Repository.

Once downloaded, copy the tar archive in /Library/Java/JavaVirtualMachines/ and cd into it. Unpack the archive with the following command:

sudo tar -xzf <archive-name>.tar.gz

The tar archive can be deleted afterwards.

Depending on which terminal you are using, edit the profiles (.zshrc, .profile, .bash_profile) to contain:

export JAVA_HOME=/Library/Java/JavaVirtualMachines/<archive-name>/Contents/Home

Reload the terminal and run java -version to make sure it is installed correctly.

Using Brew you can easily install Maven from the command line:

brew install [email protected]

Run mvn -version to ensure that Maven has been added to the PATH. If Maven cannot be found, try running brew link [email protected] --force or manually add it to your path with:

export PATH="/usr/local/opt/[email protected]/bin:$PATH"

Installing Prerequisites in Linux

For Java

sudo apt install openjdk-21-jdk

To install Maven you can follow the tutorial from the official Maven site. Remember that you need to install the 3.9.9 version.

Installing Prerequisites in Windows

To install Java 21, download the JDK installer from the Adoptium Project Repository and run it, leaving the option that sets JAVA_HOME enabled. Alternatively, from a terminal:

winget install EclipseAdoptium.Temurin.21.JDK

To install Maven, download the binary zip archive from the Maven site, unpack it in a directory of your choice and add its bin directory to the PATH, as described in the official installation instructions. Remember that you need the 3.9.9 version or newer.

Open a new terminal and run java -version and mvn -version to make sure both are installed correctly and reachable from the PATH.

Build Eclipse Kura™

Clone the Eclipse Kura™ repository:

git clone -b develop https://github.com/eclipse-kura/kura.git

Eclipse Kura™ is built with Maven and the bnd tooling (bnd-maven-plugin): each bundle's OSGi manifest is generated at build time from its bnd.bnd descriptor, all plugin versions are centralized in the root parent POM (pom.xml), and all dependency versions are centralized in the Bill of Materials (bom/pom.xml). The project is a single Maven reactor rooted at the top-level pom.xml, which aggregates four modules:

  • bom/ — the Bill of Materials that centralizes the managed versions of every dependency;
  • kura/ — the Eclipse Kura™ framework bundles, including the third-party and native wrapper bundles;
  • distrib/ — the distribution packaging that assembles the framework into the installable .deb packages;
  • test/ — the OSGi integration tests (included in the reactor through the tests profile).

Move inside the cloned directory and build everything from the repository root:

mvn clean install

Maven orders the reactor by inter-module dependencies, so this builds all the framework bundles under kura/ (the wrapper bundles first) and finally the distrib/ packaging — producing the .deb packages under distrib/*-core/target/.

[!TIP] You can skip the tests by adding -DskipTests to the commands above (this also excludes the integration-test module from the reactor).

Testing

Unit tests run automatically as part of mvn install (every bundle keeps its unit tests under src/test/java).

[!NOTE] On Windows the few tests that exercise Linux-only features are skipped: the uptime read from /proc, the system packages listed through the Linux package managers, and a request aborted before its body is read. Everything else runs as it does on Linux and macOS.

The OSGi integration tests live under test/ and are executed inside a real OSGi framework by the bnd testing tooling (bnd-testing-maven-plugin); each test module is driven by its own integration-test.bndrun, while the run configuration shared by all of them (framework, execution environment, runtime properties) lives in test/integration-test.bnd. They belong to the tests Maven profile, which is active by default — it is disabled only by -DskipTests. So both unit and integration tests run with a plain:

mvn clean install

The set of runtime bundles (-runbundles) of each integration-test.bndrun is already resolved and committed in those files, so a fresh checkout needs no extra step. After changing a module's runtime dependencies, re-resolve them with the resolve-integration-tests profile:

mvn -f test/pom.xml clean verify -Presolve-integration-tests

IDE Setups

We currently support two setups for Eclipse Kura™ development:

  • Eclipse Kura™ Development Environment Setup: This is the full setup allowing you to contribute to the core Eclipse Kura™ project codebase. It will install all the IDE plugins and formatters to have a pleasant development experience and clone the Eclipse Kura™ source code on your workstation.
  • Kura Addon Archetype: The Kura Addon Archetype will allow you to develop applications or bundles running on Eclipse Kura™. It will install only the APIs and is best suited for developing Eclipse Kura™ add-ons. Its sources live in the eclipse-kura/kura-archetype repository.

Contributing

Contributing to Eclipse Kura™ is fun and easy! To start contributing you can follow our guide here.

Acknowledgments

YourKit Logo

Thanks to YourKit for providing us an open source license of YourKit Java Profiler!

YourKit supports open source projects with innovative and intelligent tools for monitoring and profiling Java and .NET applications. YourKit is the creator of YourKit Java Profiler, YourKit .NET Profiler, and YourKit YouMonitor.

探索相关项目

加载中…