Skip to content

Latest commit

 

History

History
118 lines (89 loc) · 3.86 KB

README.md

File metadata and controls

118 lines (89 loc) · 3.86 KB

Development Containers

This setup runs third-party services in Docker Compose and provides a container for running StreamPipes from source with VS Code or IntelliJ IDEA.

Services

  • CouchDB
  • InfluxDB
  • NATS
  • One workspace container for Maven, Java and Node.js tooling

Core, IIoT extensions and the UI are started from source with IDE run configurations or terminal commands, not as prebuilt application images.

First Start with VS Code

  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

First Start with IntelliJ IDEA

  1. Open IntelliJ IDEA and select Dev Containers under Remote Development.
  2. Click New Dev Container.
  3. Select .devcontainer/idea/devcontainer.json as the configuration file.

IDEA Troubleshooting

In IntelliJ IDEA 2025.1 and earlier, the Docker plugin may report client version 1.24 is too old if your Docker Engine requires a newer API version than the plugin supports. If you see this error, upgrade IntelliJ IDEA to a release newer than 2025.2.

If opening an existing Dev Container does nothing, check idea.log for a 404 indicating that /.jbdevcontainer/config/JetBrains/host-config.json is missing.

Services and Ports

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 .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:

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:

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:

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.