You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2026/06/01 07:33:54 UTC
(streampipes) branch vscode-dev-container created (now 6a5488f007)
This is an automated email from the ASF dual-hosted git repository.
tenthe pushed a change to branch vscode-dev-container
in repository https://gitbox.apache.org/repos/asf/streampipes.git
at 6a5488f007 Merge branch 'dev' into vscode-dev-container
This branch includes the following new commits:
new b30a70dfc9 Merge branch 'dev' into vscode-dev-container
new 1c83b7a48b feat: first draft for dev container development environment
new 51423b67e5 Merge branch 'dev' into vscode-dev-container
new 19f100c67d chore: improve devcontainer setup for Cypress and NATS
new 6a5488f007 Merge branch 'dev' into vscode-dev-container
The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(streampipes) 04/05: chore: improve devcontainer setup for Cypress and NATS
Posted by ze...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tenthe pushed a commit to branch vscode-dev-container
in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit 19f100c67d07b799aad585896496a6cc96acbd71
Author: Philipp Zehnder <te...@users.noreply.github.com>
AuthorDate: Fri May 29 19:57:43 2026 +0000
chore: improve devcontainer setup for Cypress and NATS
---
.devcontainer/Dockerfile | 35 +++++++++++++++++++++++++++++++++++
.devcontainer/README.md | 5 +++++
.devcontainer/docker-compose.yml | 11 +++++++++--
.vscode/launch.json | 4 ++--
.vscode/settings.json | 3 +++
5 files changed, 54 insertions(+), 4 deletions(-)
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
new file mode 100644
index 0000000000..a0ffff397f
--- /dev/null
+++ b/.devcontainer/Dockerfile
@@ -0,0 +1,35 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+FROM mcr.microsoft.com/devcontainers/base:ubuntu
+
+# Cypress runs its bundled Electron browser even in headless mode. The base
+# devcontainer image does not include these desktop runtime libraries, so the
+# UI smoke tests fail before Cypress can start. The packages below provide
+# audio, GTK/accessibility, NSS, X11, GPU buffer and virtual display support.
+RUN apt-get update \
+ && apt-get install -y --no-install-recommends \
+ libasound2t64 \
+ libatk-bridge2.0-0 \
+ libgbm1 \
+ libglib2.0-0 \
+ libgtk-3-0 \
+ libnotify4 \
+ libnss3 \
+ libxss1 \
+ libxtst6 \
+ xauth \
+ xvfb \
+ && rm -rf /var/lib/apt/lists/*
diff --git a/.devcontainer/README.md b/.devcontainer/README.md
index dd1ce09ace..c4468a375a 100644
--- a/.devcontainer/README.md
+++ b/.devcontainer/README.md
@@ -33,6 +33,11 @@ The default URLs are:
The default development stack uses NATS for pipeline transport and for
core-to-extension communication.
+`SP_DEBUG` is intentionally set to `false` in the devcontainer and VS Code
+launch settings. VS Code Java debugging still works through JDWP, but
+StreamPipes debug mode rewrites broker hostnames to `localhost`; that breaks
+NATS because the broker runs as the sibling Compose service `nats`.
+
## Isolated Checkouts
For a second checkout or PR worktree, copy `.devcontainer/.env.example` to
diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml
index f37f606f06..b5ef0d57f2 100644
--- a/.devcontainer/docker-compose.yml
+++ b/.devcontainer/docker-compose.yml
@@ -17,7 +17,11 @@ name: ${COMPOSE_PROJECT_NAME:-streampipes-dev}
services:
workspace:
- image: mcr.microsoft.com/devcontainers/base:ubuntu
+ # Builds the base devcontainer image with Cypress/Electron runtime libraries
+ # such as libglib, GTK, NSS and Xvfb for running UI smoke tests.
+ build:
+ context: .
+ dockerfile: Dockerfile
command: sleep infinity
init: true
volumes:
@@ -42,7 +46,10 @@ services:
SP_CORE_EXTENSION_TRANSPORT_MODE: nats
SP_EXTENSION_TRANSPORT_MODE: nats
SP_EXTENSION_REQUEST_TOPIC_PREFIX: sp.extensions.request
- SP_DEBUG: "true"
+ # Keep StreamPipes debug mode disabled in the devcontainer. When enabled,
+ # StreamPipes rewrites broker hostnames to localhost, but NATS runs as the
+ # sibling Compose service "nats" and must be reached via nats:4222.
+ SP_DEBUG: "false"
ports:
- "${SP_CORE_PORT:-8030}:8030"
- "${SP_EXTENSIONS_IIOT_PORT:-8090}:8090"
diff --git a/.vscode/launch.json b/.vscode/launch.json
index c42d082b13..ba272fd9bf 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -25,7 +25,7 @@
"SP_CORE_EXTENSION_TRANSPORT_MODE": "nats",
"SP_EXTENSION_TRANSPORT_MODE": "nats",
"SP_EXTENSION_REQUEST_TOPIC_PREFIX": "sp.extensions.request",
- "SP_DEBUG": "true"
+ "SP_DEBUG": "false"
}
},
{
@@ -52,7 +52,7 @@
"SP_CORE_EXTENSION_TRANSPORT_MODE": "nats",
"SP_EXTENSION_TRANSPORT_MODE": "nats",
"SP_EXTENSION_REQUEST_TOPIC_PREFIX": "sp.extensions.request",
- "SP_DEBUG": "true"
+ "SP_DEBUG": "false"
}
}
],
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000000..027b61a12f
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,3 @@
+{
+ "remote.autoForwardPortsFallback": 0
+}
\ No newline at end of file
(streampipes) 01/05: Merge branch 'dev' into vscode-dev-container
Posted by ze...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tenthe pushed a commit to branch vscode-dev-container
in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit b30a70dfc98c04be8e14d01f006b73fe75a47e5f
Merge: a86e6aa553 2a8e5f08c5
Author: Philipp Zehnder <te...@users.noreply.github.com>
AuthorDate: Sun May 24 06:46:08 2026 +0200
Merge branch 'dev' into vscode-dev-container
.../dataexplorer/DataExplorerSchemaManagement.java | 11 +
.../DataExplorerSchemaManagementTest.java | 24 +-
.../alarms/OpcUaAlarmSampleFallbackProvider.java | 196 +++++++++++++++
.../opcua/alarms/OpcUaAlarmSchemaProvider.java | 7 +-
.../OpcUaAlarmSampleFallbackProviderTest.java | 96 +++++++
...eUpdateInfo.java => ChartSchemaUpdateInfo.java} | 58 +++--
.../model/connect/adapter/PipelineUpdateInfo.java | 11 +
.../datalake}/CriticalMeasurementFieldChange.java | 5 +-
.../datalake/DataExplorerWidgetHealthStatus.java | 8 +-
.../model/datalake/DataExplorerWidgetModel.java | 22 ++
.../model/datalake/MeasurementUpdateInfo.java | 63 +++++
.../v2/pipeline/MeasurementChangeDetector.java | 1 +
.../pipeline/MeasurementChangeValidationStep.java | 21 +-
.../update/ChartSchemaUpdateCoordinator.java | 261 +++++++++++++++++++
.../update/MeasurementUpdateManagement.java | 111 ++++++++
.../pipeline/update/MeasurementUpdateUtils.java | 78 ++++++
.../pipeline/update/PipelineUpdateCoordinator.java | 18 +-
.../MeasurementChangeValidationStepTest.java | 11 +-
.../update/ChartSchemaUpdateCoordinatorTest.java | 280 +++++++++++++++++++++
.../update/MeasurementUpdateManagementTest.java | 127 ++++++++++
.../update/PipelineUpdateCoordinatorTest.java | 36 ++-
.../streampipes/rest/impl/PipelineResource.java | 16 ++
ui/cypress/support/utils/chart/ChartBtns.ts | 8 +
ui/cypress/support/utils/connect/ConnectBtns.ts | 16 ++
ui/cypress/support/utils/pipeline/PipelineBtns.ts | 76 ++++++
ui/cypress/support/utils/pipeline/PipelineUtils.ts | 5 +
.../editAdapterDataLakeSchemaUpdate.spec.ts | 149 +++++++++++
.../editAdapterSettingsAndPipeline.smoke.spec.ts | 15 +-
.../pipeline/pipelineDataLakeSchemaUpdate.spec.ts | 184 ++++++++++++++
ui/deployment/i18n/de.json | 27 +-
ui/deployment/i18n/en.json | 27 +-
ui/deployment/i18n/pl.json | 27 +-
.../src/lib/apis/pipeline.service.ts | 19 ++
.../src/lib/model/gen/streampipes-model.ts | 123 ++++++---
.../chart-container/chart-container.component.html | 28 ++-
.../chart-container/chart-container.component.scss | 10 +
.../chart-container/chart-container.component.ts | 12 +-
.../services/chart-field-provider.service.ts | 19 +-
.../chart-overview-table.component.html | 16 +-
.../chart-overview-table.component.ts | 6 +-
.../chart-view/chart-view.component.html | 18 +-
.../components/chart-view/chart-view.component.ts | 25 +-
.../start-adapter-configuration.component.ts | 6 +-
.../adapter-started-dialog.component.html | 14 +-
.../adapter-started-dialog.component.ts | 6 +
...adapter-started-update-migration.component.html | 179 +++++++++----
...adapter-started-update-migration.component.scss | 88 ++++++-
.../adapter-started-update-migration.component.ts | 13 +-
.../pipeline-started-status.component.html | 4 +-
...-assembly-options-pipeline-cache.component.html | 1 +
.../save-pipeline-update-migration.component.html | 191 ++++++++++++++
.../save-pipeline-update-migration.component.scss | 115 +++++++++
.../save-pipeline-update-migration.component.ts} | 56 +++--
.../save-pipeline/save-pipeline.component.html | 22 +-
.../save-pipeline/save-pipeline.component.ts | 60 ++++-
.../pipeline-details/pipeline-details.component.ts | 15 +-
.../measurement-update-dialog.component.html | 17 +-
.../measurement-update-dialog.component.ts | 6 +-
.../pipeline-notifications.component.html | 3 +-
ui/src/app/pipelines/model/pipeline-model.ts | 2 +
60 files changed, 2816 insertions(+), 253 deletions(-)
(streampipes) 05/05: Merge branch 'dev' into vscode-dev-container
Posted by ze...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tenthe pushed a commit to branch vscode-dev-container
in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit 6a5488f007865d440e67cb6a2adca15d673d5c8f
Merge: 19f100c67d 2c895ec63e
Author: Philipp Zehnder <te...@users.noreply.github.com>
AuthorDate: Mon Jun 1 09:33:32 2026 +0200
Merge branch 'dev' into vscode-dev-container
...herCheckpoint.java => FileGenerationState.java} | 45 ++-------
.../filewatcher/model/FileWatcherCheckpoint.java | 31 ++----
.../filewatcher/runtime/FileSetWatcher.java | 106 ++++++++++++++++-----
.../runtime/FileWatcherCheckpointStore.java | 6 +-
.../filewatcher/runtime/FileSetWatcherTest.java | 96 ++++++++++++++++++-
.../runtime/FileWatcherCheckpointStoreTest.java | 65 +++++++++++++
6 files changed, 260 insertions(+), 89 deletions(-)
(streampipes) 02/05: feat: first draft for dev container development environment
Posted by ze...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tenthe pushed a commit to branch vscode-dev-container
in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit 1c83b7a48b9199413a7f5304b545bc27463f762d
Author: Philipp Zehnder <te...@users.noreply.github.com>
AuthorDate: Wed May 20 09:01:37 2026 +0200
feat: first draft for dev container development environment
---
.devcontainer/.env.example | 20 +++++++
.devcontainer/README.md | 77 ++++++++++++++++++++++++
.devcontainer/devcontainer-lock.json | 14 +++++
.devcontainer/devcontainer.json | 73 +++++++++++++++++++++++
.devcontainer/docker-compose.yml | 110 +++++++++++++++++++++++++++++++++++
.gitignore | 4 +-
.vscode/launch.json | 69 ++++++++++++++++++++++
.vscode/tasks.json | 66 +++++++++++++++++++++
tools/dev/create-pr-worktree.sh | 95 ++++++++++++++++++++++++++++++
9 files changed, 526 insertions(+), 2 deletions(-)
diff --git a/.devcontainer/.env.example b/.devcontainer/.env.example
new file mode 100644
index 0000000000..ebe7ea31fa
--- /dev/null
+++ b/.devcontainer/.env.example
@@ -0,0 +1,20 @@
+# Copy this file to .devcontainer/.env to customize one checkout.
+#
+# For a second checkout or PR worktree, use a different project name and ports.
+# Compose will then create separate containers, volumes and networks.
+
+COMPOSE_PROJECT_NAME=streampipes-dev
+
+SP_CORE_PORT=8030
+SP_EXTENSIONS_IIOT_PORT=8090
+SP_UI_PORT=8082
+
+SP_COUCHDB_PORT=5984
+SP_TS_STORAGE_PORT=8086
+SP_NATS_PORT=4222
+SP_NATS_MONITORING_PORT=8222
+
+SP_CORE_DEBUG_PORT=5005
+SP_EXTENSIONS_IIOT_DEBUG_PORT=5006
+
+SP_INFLUX_INIT_MODE=setup
diff --git a/.devcontainer/README.md b/.devcontainer/README.md
new file mode 100644
index 0000000000..dd1ce09ace
--- /dev/null
+++ b/.devcontainer/README.md
@@ -0,0 +1,77 @@
+# VS Code Devcontainer
+
+This setup runs third-party services in Docker Compose and starts StreamPipes
+from source inside the VS Code devcontainer.
+
+## Services
+
+- CouchDB
+- InfluxDB
+- NATS
+- One workspace container for Maven, Java and Node.js tooling
+
+Core, IIoT extensions and the UI are started with VS Code tasks or debug
+launches, not as prebuilt application images.
+
+## First Start
+
+1. Open the repository in VS Code.
+2. Run `Dev Containers: Reopen in Container`.
+3. Start the app with either:
+ - `Run and Debug: Full StreamPipes Dev` for core, IIoT extensions and UI
+ - `Tasks: Run Task: dev: start ui` if you only need the Angular dev server
+
+The default URLs are:
+
+- UI: <http://localhost:8082>
+- Core: <http://localhost:8030>
+- IIoT extensions: <http://localhost:8090>
+- CouchDB: <http://localhost:5984>
+- InfluxDB: <http://localhost:8086>
+- NATS monitoring: <http://localhost:8222>
+
+The default development stack uses NATS for pipeline transport and for
+core-to-extension communication.
+
+## Isolated Checkouts
+
+For a second checkout or PR worktree, copy `.devcontainer/.env.example` to
+`.devcontainer/.env` and change at least `COMPOSE_PROJECT_NAME`.
+
+If two environments should run at the same time, also change the exposed host
+ports in `.devcontainer/.env`.
+
+Example:
+
+```bash
+COMPOSE_PROJECT_NAME=streampipes-pr-123
+SP_CORE_PORT=8130
+SP_EXTENSIONS_IIOT_PORT=8190
+SP_UI_PORT=8182
+SP_COUCHDB_PORT=6984
+SP_TS_STORAGE_PORT=9086
+SP_NATS_PORT=5222
+SP_NATS_MONITORING_PORT=9222
+SP_CORE_DEBUG_PORT=5105
+SP_EXTENSIONS_IIOT_DEBUG_PORT=5106
+```
+
+There is also a helper for GitHub pull requests:
+
+```bash
+tools/dev/create-pr-worktree.sh 123
+```
+
+It creates `../streampipes-pr-123`, fetches the PR into a local `pr/123`
+branch, and writes an isolated `.devcontainer/.env` into that worktree.
+
+## Reset Data
+
+To remove only the data for the current devcontainer project:
+
+```bash
+docker compose --env-file .devcontainer/.env -f .devcontainer/docker-compose.yml down -v
+```
+
+If no `.devcontainer/.env` exists, omit `--env-file`; Compose uses the default
+project name `streampipes-dev`.
diff --git a/.devcontainer/devcontainer-lock.json b/.devcontainer/devcontainer-lock.json
new file mode 100644
index 0000000000..93ac7a3a4c
--- /dev/null
+++ b/.devcontainer/devcontainer-lock.json
@@ -0,0 +1,14 @@
+{
+ "features": {
+ "ghcr.io/devcontainers/features/java:1": {
+ "version": "1.8.0",
+ "resolved": "ghcr.io/devcontainers/features/java@sha256:9663ce0219ff85786e87901ce5f0a59f488edd5f99b46015192cda48468b233a",
+ "integrity": "sha256:9663ce0219ff85786e87901ce5f0a59f488edd5f99b46015192cda48468b233a"
+ },
+ "ghcr.io/devcontainers/features/node:1": {
+ "version": "1.7.1",
+ "resolved": "ghcr.io/devcontainers/features/node@sha256:8c0de46939b61958041700ee89e3493f3b2e4131a06dc46b4d9423427d06e5f6",
+ "integrity": "sha256:8c0de46939b61958041700ee89e3493f3b2e4131a06dc46b4d9423427d06e5f6"
+ }
+ }
+}
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 0000000000..50c288d1ae
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,73 @@
+{
+ "name": "Apache StreamPipes Dev",
+ "dockerComposeFile": "docker-compose.yml",
+ "service": "workspace",
+ "workspaceFolder": "/workspaces/streampipes",
+ "runServices": [
+ "workspace",
+ "couchdb",
+ "influxdb",
+ "nats"
+ ],
+ "shutdownAction": "stopCompose",
+ "remoteUser": "vscode",
+ "features": {
+ "ghcr.io/devcontainers/features/java:1": {
+ "version": "25",
+ "installMaven": true
+ },
+ "ghcr.io/devcontainers/features/node:1": {
+ "version": "24"
+ }
+ },
+ "customizations": {
+ "vscode": {
+ "extensions": [
+ "vscjava.vscode-java-pack",
+ "vscjava.vscode-spring-boot-dashboard",
+ "redhat.vscode-xml",
+ "angular.ng-template",
+ "dbaeumer.vscode-eslint",
+ "esbenp.prettier-vscode"
+ ],
+ "settings": {
+ "java.configuration.updateBuildConfiguration": "automatic",
+ "java.compile.nullAnalysis.mode": "automatic",
+ "typescript.tsdk": "ui/node_modules/typescript/lib"
+ }
+ }
+ },
+ "forwardPorts": [
+ 8030,
+ 8090,
+ 8082,
+ 5984,
+ 8086,
+ 4222,
+ 8222
+ ],
+ "portsAttributes": {
+ "8030": {
+ "label": "StreamPipes Core"
+ },
+ "8090": {
+ "label": "StreamPipes IIoT Extensions"
+ },
+ "8082": {
+ "label": "StreamPipes UI"
+ },
+ "5984": {
+ "label": "CouchDB"
+ },
+ "8086": {
+ "label": "InfluxDB"
+ },
+ "4222": {
+ "label": "NATS"
+ },
+ "8222": {
+ "label": "NATS Monitoring"
+ }
+ },
+ "postCreateCommand": "sudo chown -R vscode:vscode /home/vscode/.m2 /home/vscode/.npm /home/vscode/.streampipes /workspaces/streampipes/ui/node_modules && mvn -version && node --version && npm --version"
+}
diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml
new file mode 100644
index 0000000000..f37f606f06
--- /dev/null
+++ b/.devcontainer/docker-compose.yml
@@ -0,0 +1,110 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+name: ${COMPOSE_PROJECT_NAME:-streampipes-dev}
+
+services:
+ workspace:
+ image: mcr.microsoft.com/devcontainers/base:ubuntu
+ command: sleep infinity
+ init: true
+ volumes:
+ - ..:/workspaces/streampipes:cached
+ - maven-cache:/home/vscode/.m2
+ - npm-cache:/home/vscode/.npm
+ - ui-node-modules:/workspaces/streampipes/ui/node_modules
+ - core-home:/home/vscode/.streampipes
+ environment:
+ SP_BACKEND_HOST: localhost
+ SP_CORE_HOST: localhost
+ SP_CORE_PORT: "8030"
+ SP_COUCHDB_HOST: couchdb
+ SP_COUCHDB_PORT: "5984"
+ SP_TS_STORAGE_HOST: influxdb
+ SP_TS_STORAGE_PORT: "8086"
+ SP_INFLUX_HOST: influxdb
+ SP_INFLUX_PORT: "8086"
+ SP_NATS_HOST: nats
+ SP_NATS_PORT: "4222"
+ SP_PRIORITIZED_PROTOCOL: nats
+ SP_CORE_EXTENSION_TRANSPORT_MODE: nats
+ SP_EXTENSION_TRANSPORT_MODE: nats
+ SP_EXTENSION_REQUEST_TOPIC_PREFIX: sp.extensions.request
+ SP_DEBUG: "true"
+ ports:
+ - "${SP_CORE_PORT:-8030}:8030"
+ - "${SP_EXTENSIONS_IIOT_PORT:-8090}:8090"
+ - "${SP_UI_PORT:-8082}:8082"
+ - "${SP_CORE_DEBUG_PORT:-5005}:5005"
+ - "${SP_EXTENSIONS_IIOT_DEBUG_PORT:-5006}:5006"
+ depends_on:
+ - couchdb
+ - influxdb
+ - nats
+ networks:
+ - spnet
+
+ couchdb:
+ image: couchdb:3.3.1
+ environment:
+ COUCHDB_USER: admin
+ COUCHDB_PASSWORD: admin
+ volumes:
+ - couchdb:/opt/couchdb/data
+ ports:
+ - "${SP_COUCHDB_PORT:-5984}:5984"
+ networks:
+ - spnet
+
+ influxdb:
+ image: influxdb:2.6
+ environment:
+ INFLUXDB_DATA_ENGINE: tsm1
+ INFLUXDB_REPORTING_DISABLED: "false"
+ INFLUXDB_ADMIN_ENABLED: "true"
+ DOCKER_INFLUXDB_INIT_USERNAME: admin
+ DOCKER_INFLUXDB_INIT_PASSWORD: sp-admin
+ DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: sp-admin
+ DOCKER_INFLUXDB_INIT_ORG: sp
+ DOCKER_INFLUXDB_INIT_BUCKET: sp
+ DOCKER_INFLUXDB_INIT_MODE: ${SP_INFLUX_INIT_MODE:-setup}
+ volumes:
+ - influxdb:/var/lib/influxdb
+ - influxdb2:/var/lib/influxdb2
+ ports:
+ - "${SP_TS_STORAGE_PORT:-8086}:8086"
+ networks:
+ - spnet
+
+ nats:
+ image: nats
+ command: ["-m", "8222"]
+ ports:
+ - "${SP_NATS_PORT:-4222}:4222"
+ - "${SP_NATS_MONITORING_PORT:-8222}:8222"
+ networks:
+ - spnet
+
+volumes:
+ couchdb:
+ influxdb:
+ influxdb2:
+ maven-cache:
+ npm-cache:
+ ui-node-modules:
+ core-home:
+
+networks:
+ spnet:
diff --git a/.gitignore b/.gitignore
index 7af5796846..f6de29305b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -138,10 +138,10 @@ Thumbs.db
bundle.js
bundle.js.map
-.vscode/
-
.java-version
+.devcontainer/.env
+
logs/
# Explicit includes
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000000..c42d082b13
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,69 @@
+{
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "type": "java",
+ "name": "Debug StreamPipes Core",
+ "request": "launch",
+ "mainClass": "org.apache.streampipes.service.core.StreamPipesCoreApplication",
+ "projectName": "streampipes-service-core",
+ "cwd": "${workspaceFolder}",
+ "console": "integratedTerminal",
+ "env": {
+ "SP_BACKEND_HOST": "localhost",
+ "SP_CORE_HOST": "localhost",
+ "SP_CORE_PORT": "8030",
+ "SP_COUCHDB_HOST": "couchdb",
+ "SP_COUCHDB_PORT": "5984",
+ "SP_TS_STORAGE_HOST": "influxdb",
+ "SP_TS_STORAGE_PORT": "8086",
+ "SP_INFLUX_HOST": "influxdb",
+ "SP_INFLUX_PORT": "8086",
+ "SP_NATS_HOST": "nats",
+ "SP_NATS_PORT": "4222",
+ "SP_PRIORITIZED_PROTOCOL": "nats",
+ "SP_CORE_EXTENSION_TRANSPORT_MODE": "nats",
+ "SP_EXTENSION_TRANSPORT_MODE": "nats",
+ "SP_EXTENSION_REQUEST_TOPIC_PREFIX": "sp.extensions.request",
+ "SP_DEBUG": "true"
+ }
+ },
+ {
+ "type": "java",
+ "name": "Debug StreamPipes IIoT Extensions",
+ "request": "launch",
+ "mainClass": "org.apache.streampipes.extensions.all.iiot.AllExtensionsIIoTInit",
+ "projectName": "streampipes-extensions-all-iiot",
+ "cwd": "${workspaceFolder}",
+ "console": "integratedTerminal",
+ "env": {
+ "SP_BACKEND_HOST": "localhost",
+ "SP_CORE_HOST": "localhost",
+ "SP_CORE_PORT": "8030",
+ "SP_COUCHDB_HOST": "couchdb",
+ "SP_COUCHDB_PORT": "5984",
+ "SP_TS_STORAGE_HOST": "influxdb",
+ "SP_TS_STORAGE_PORT": "8086",
+ "SP_INFLUX_HOST": "influxdb",
+ "SP_INFLUX_PORT": "8086",
+ "SP_NATS_HOST": "nats",
+ "SP_NATS_PORT": "4222",
+ "SP_PRIORITIZED_PROTOCOL": "nats",
+ "SP_CORE_EXTENSION_TRANSPORT_MODE": "nats",
+ "SP_EXTENSION_TRANSPORT_MODE": "nats",
+ "SP_EXTENSION_REQUEST_TOPIC_PREFIX": "sp.extensions.request",
+ "SP_DEBUG": "true"
+ }
+ }
+ ],
+ "compounds": [
+ {
+ "name": "Full StreamPipes Dev",
+ "configurations": [
+ "Debug StreamPipes Core",
+ "Debug StreamPipes IIoT Extensions"
+ ],
+ "preLaunchTask": "dev: start ui"
+ }
+ ]
+}
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644
index 0000000000..65d9433765
--- /dev/null
+++ b/.vscode/tasks.json
@@ -0,0 +1,66 @@
+{
+ "version": "2.0.0",
+ "tasks": [
+ {
+ "label": "dev: install ui dependencies",
+ "type": "shell",
+ "command": "npm ci",
+ "options": {
+ "cwd": "${workspaceFolder}/ui"
+ },
+ "problemMatcher": []
+ },
+ {
+ "label": "dev: start ui",
+ "type": "shell",
+ "command": "node ./deployment/prebuild.js && npm run build-libraries && npx ng serve --host 0.0.0.0 --port 8082 --proxy-config src/proxy.conf.json",
+ "options": {
+ "cwd": "${workspaceFolder}/ui"
+ },
+ "dependsOn": [
+ "dev: install ui dependencies"
+ ],
+ "isBackground": true,
+ "problemMatcher": {
+ "owner": "typescript",
+ "pattern": {
+ "regexp": "a^"
+ },
+ "background": {
+ "activeOnStart": true,
+ "beginsPattern": ".*",
+ "endsPattern": "Application bundle generation complete|Compiled successfully|Watch mode enabled"
+ }
+ }
+ },
+ {
+ "label": "dev: build core",
+ "type": "shell",
+ "command": "mvn -pl streampipes-service-core -am -DskipTests package",
+ "options": {
+ "cwd": "${workspaceFolder}"
+ },
+ "group": "build",
+ "problemMatcher": "$maven"
+ },
+ {
+ "label": "dev: build iiot extensions",
+ "type": "shell",
+ "command": "mvn -pl streampipes-extensions/streampipes-extensions-all-iiot -am -DskipTests package",
+ "options": {
+ "cwd": "${workspaceFolder}"
+ },
+ "group": "build",
+ "problemMatcher": "$maven"
+ },
+ {
+ "label": "dev: build backend and extensions",
+ "dependsOrder": "sequence",
+ "dependsOn": [
+ "dev: build core",
+ "dev: build iiot extensions"
+ ],
+ "problemMatcher": []
+ }
+ ]
+}
diff --git a/tools/dev/create-pr-worktree.sh b/tools/dev/create-pr-worktree.sh
new file mode 100755
index 0000000000..643313d89a
--- /dev/null
+++ b/tools/dev/create-pr-worktree.sh
@@ -0,0 +1,95 @@
+#!/usr/bin/env bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+set -euo pipefail
+
+usage() {
+ cat <<EOF
+Create an isolated git worktree for testing a GitHub pull request locally.
+
+Usage:
+ tools/dev/create-pr-worktree.sh <pr-number> [worktree-path]
+
+Examples:
+ tools/dev/create-pr-worktree.sh 123
+ tools/dev/create-pr-worktree.sh 123 ../streampipes-pr-123
+EOF
+}
+
+if [[ "${1:-}" == "-h" || "${1:-}" == "--help" ]]; then
+ usage
+ exit 0
+fi
+
+if [[ $# -lt 1 || $# -gt 2 ]]; then
+ usage
+ exit 1
+fi
+
+pr_number="$1"
+
+if [[ ! "$pr_number" =~ ^[0-9]+$ ]]; then
+ echo "PR number must be numeric: $pr_number" >&2
+ exit 1
+fi
+
+repo_root="$(git rev-parse --show-toplevel)"
+default_worktree_path="$(dirname "$repo_root")/streampipes-pr-$pr_number"
+worktree_path="${2:-$default_worktree_path}"
+branch_name="pr/$pr_number"
+project_name="streampipes-pr-$pr_number"
+offset=$((1000 + (pr_number % 100) * 100))
+
+git -C "$repo_root" fetch origin "pull/$pr_number/head:$branch_name"
+
+if [[ -e "$worktree_path" ]]; then
+ echo "Worktree path already exists: $worktree_path" >&2
+ exit 1
+fi
+
+git -C "$repo_root" worktree add "$worktree_path" "$branch_name"
+
+mkdir -p "$worktree_path/.devcontainer"
+cat > "$worktree_path/.devcontainer/.env" <<EOF
+COMPOSE_PROJECT_NAME=$project_name
+
+SP_CORE_PORT=$((8030 + offset))
+SP_EXTENSIONS_IIOT_PORT=$((8090 + offset))
+SP_UI_PORT=$((8082 + offset))
+
+SP_COUCHDB_PORT=$((5984 + offset))
+SP_TS_STORAGE_PORT=$((8086 + offset))
+SP_NATS_PORT=$((4222 + offset))
+SP_NATS_MONITORING_PORT=$((8222 + offset))
+
+SP_CORE_DEBUG_PORT=$((5005 + offset))
+SP_EXTENSIONS_IIOT_DEBUG_PORT=$((5006 + offset))
+
+SP_INFLUX_INIT_MODE=setup
+EOF
+
+cat <<EOF
+Created PR worktree:
+ $worktree_path
+
+Devcontainer project:
+ $project_name
+
+Open the worktree in VS Code and run:
+ Dev Containers: Reopen in Container
+EOF
(streampipes) 03/05: Merge branch 'dev' into vscode-dev-container
Posted by ze...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tenthe pushed a commit to branch vscode-dev-container
in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit 51423b67e5edf447fd3baef6bd5f9d8af65ffb01
Merge: 1c83b7a48b eb24f2a350
Author: Philipp Zehnder <te...@users.noreply.github.com>
AuthorDate: Fri May 29 20:07:43 2026 +0200
Merge branch 'dev' into vscode-dev-container
.asf.yaml | 5 +
streampipes-client-python/poetry.lock | 66 +++++------
streampipes-client-python/pyproject.toml | 2 +-
.../transformer/js/GraalJsScriptEngine.java | 2 +
.../transformer/js/PolyglotTypeConverter.java | 21 ++++
.../transformer/js/GraalJsScriptEngineTest.java | 131 +++++++++++++++++++++
.../FileWatcherConnectorsModuleExport.java | 7 +-
.../adapter/WinCCAlarmArchiveAdapter.java | 79 +++++++------
.../WinCCAlarmArchiveAdapterMigrationV1.java | 65 ++++++++++
.../WinCCAlarmArchiveAdapterMigrationV2.java | 58 +++++++++
.../filewatcher/model/FileWatcherConfig.java | 1 +
.../filewatcher/runtime/FileSetWatcher.java | 31 +++--
.../documentation.md | 9 +-
.../strings.en | 4 +
.../adapter/WinCCAlarmArchiveAdapterTest.java | 111 +++++++++++++++++
.../WinCCAlarmArchiveAdapterMigrationV1Test.java | 44 +++++++
.../WinCCAlarmArchiveAdapterMigrationV2Test.java | 45 +++++++
.../WinCCAlarmArchiveAdapterVersionedConfig.java | 112 ++++++++++++++++++
.../filewatcher/runtime/FileSetWatcherTest.java | 34 +++++-
.../connectors/kafka/sink/KafkaPublishSink.java | 4 +
.../gauge/config/gauge-widget-config.component.ts | 12 +-
.../charts/gauge/gauge-renderer.service.ts | 65 +++++-----
22 files changed, 772 insertions(+), 136 deletions(-)