Skip to content

Improve Docker#3262

Merged
sfeilmeier merged 1 commit intoOpenEMS:developfrom
da-Kai:feature/improve-docker
Aug 1, 2025
Merged

Improve Docker#3262
sfeilmeier merged 1 commit intoOpenEMS:developfrom
da-Kai:feature/improve-docker

Conversation

@da-Kai
Copy link
Copy Markdown
Contributor

@da-Kai da-Kai commented Jul 31, 2025

  • Set Apache Felix host and port explicitly
  • Print error into docker console, if UI_WEBSOCKET is unchanged
  • Format

@da-Kai da-Kai requested review from Copilot and sfeilmeier July 31, 2025 20:22
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the Docker configuration for OpenEMS by setting explicit Apache Felix HTTP host and port settings and adding validation for UI websocket configuration.

  • Set Apache Felix HTTP host to 0.0.0.0 and explicit ports for edge (8080) and backend (8079) services
  • Add validation check for UI_WEBSOCKET placeholder configuration with error messaging
  • Remove localhost restriction to allow external connections in Docker containers

Reviewed Changes

Copilot reviewed 3 out of 7 changed files in this pull request and generated 1 comment.

File Description
tools/docker/edge/root/etc/s6-overlay/s6-rc.d/svc-openems-edge/run Set Felix HTTP host to 0.0.0.0 and port to 8080 for edge service
tools/docker/backend/root/etc/s6-overlay/s6-rc.d/svc-openems-backend/run Set Felix HTTP host to 0.0.0.0 and port to 8079 for backend service
tools/docker/ui/root/etc/s6-overlay/s6-rc.d/svc-openems-ui/run Add validation for UI_WEBSOCKET placeholder with error handling

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Additional details and impacted files
@@              Coverage Diff               @@
##             develop    #3262       +/-   ##
==============================================
+ Coverage      26.47%   59.25%   +32.78%     
- Complexity         0      139      +139     
==============================================
  Files            319     2729     +2410     
  Lines           8614   118436   +109822     
  Branches        1334     8753     +7419     
==============================================
+ Hits            2280    70162    +67882     
- Misses          6232    45644    +39412     
- Partials         102     2630     +2528     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sfeilmeier sfeilmeier merged commit a246b5a into OpenEMS:develop Aug 1, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants