Skip to content

feat: Update EDC version from 0.7.7 to 0.9.0 #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions deployment/env/catena-x/opentelemetry.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Disable all exporters
otel.traces.exporter=none
otel.metrics.exporter=none
otel.logs.exporter=none
edc.metrics.enabled=false
5 changes: 5 additions & 0 deletions deployment/env/smartsense/opentelemetry.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Disable all exporters
otel.traces.exporter=none
otel.metrics.exporter=none
otel.logs.exporter=none
edc.metrics.enabled=false
85 changes: 49 additions & 36 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
services:
# PostgreSQL database service
postgres:
image: postgres:latest
image: postgres:16
container_name: postgres_multi_db
environment:
# Database credentials and configuration
Expand All @@ -28,8 +28,9 @@

# Sender Control Plane service
smartsense-controlplane:
image: tractusx/edc-controlplane-postgresql-hashicorp-vault:0.7.7
image: tractusx/edc-controlplane-postgresql-hashicorp-vault:0.9.0
container_name: smartsense-controlplane
command: [ "--log-level=DEBUG" ]
ports:
# Expose Control Plane ports
- "8191:8191"
Expand All @@ -39,14 +40,16 @@
volumes:
# Mount configuration file
- ./deployment/env/smartsense/edc.properties:/app/configuration.properties
- ./deployment/env/smartsense/opentelemetry.properties:/app/opentelemetry.properties
environment:
# Specify the configuration file location
- CONFIGURATION_PROPERTIES_FILE=/app/configuration.properties
- OPENTELEMETRY_PROPERTIES_FILE=/app/opentelemetry.properties
depends_on:
postgres:
condition: service_started
smartsense-edc-migration:
condition: service_completed_successfully
# smartsense-edc-migration:
# condition: service_completed_successfully
# wallet-stub:
# condition: service_healthy
networks:
Expand All @@ -60,22 +63,25 @@

# Sender Data Plane service
smartsense-dataplane:
image: tractusx/edc-dataplane-hashicorp-vault:0.7.7
image: tractusx/edc-dataplane-hashicorp-vault:0.9.0
container_name: smartsense-dataplane
command: [ "--log-level=DEBUG" ]
ports:
# Expose Data Plane port
- "8196:8193"
volumes:
# Mount configuration file
- ./deployment/env/smartsense/dataplane.properties:/app/configuration.properties
- ./deployment/env/smartsense/opentelemetry.properties:/app/opentelemetry.properties
environment:
# Specify the configuration file location
- CONFIGURATION_PROPERTIES_FILE=/app/configuration.properties
- OPENTELEMETRY_PROPERTIES_FILE=/app/opentelemetry.properties
depends_on:
postgres:
condition: service_started
smartsense-edc-migration:
condition: service_completed_successfully
# smartsense-edc-migration:
# condition: service_completed_successfully
# wallet-stub:
# condition: service_healthy
smartsense-controlplane:
Expand All @@ -85,8 +91,9 @@

# Receiver Control Plane service
catena-x-controlplane:
image: tractusx/edc-controlplane-postgresql-hashicorp-vault:0.7.7
image: tractusx/edc-controlplane-postgresql-hashicorp-vault:0.9.0
container_name: catena-x-controlplane
command: [ "--log-level=DEBUG" ]
ports:
# Expose Control Plane ports
- "9191:9191"
Expand All @@ -96,14 +103,16 @@
volumes:
# Mount configuration file
- ./deployment/env/catena-x/edc.properties:/app/configuration.properties
- ./deployment/env/catena-x/opentelemetry.properties:/app/opentelemetry.properties
environment:
# Specify the configuration file location
- CONFIGURATION_PROPERTIES_FILE=/app/configuration.properties
- OPENTELEMETRY_PROPERTIES_FILE=/app/opentelemetry.properties
depends_on:
postgres:
condition: service_started
catena-x-edc-migration:
condition: service_completed_successfully
# catena-x-edc-migration:
# condition: service_completed_successfully
# wallet-stub:
# condition: service_healthy
networks:
Expand All @@ -117,22 +126,25 @@

# Receiver Data Plane service
catena-x-dataplane:
image: tractusx/edc-dataplane-hashicorp-vault:0.7.7
image: tractusx/edc-dataplane-hashicorp-vault:0.9.0
container_name: catena-x-dataplane
command: [ "--log-level=DEBUG" ]
ports:
# Expose Data Plane port
- "9196:8196"
volumes:
# Mount configuration file
- ./deployment/env/catena-x/dataplane.properties:/app/configuration.properties
- ./deployment/env/catena-x/opentelemetry.properties:/app/opentelemetry.properties
environment:
# Specify the configuration file location
- CONFIGURATION_PROPERTIES_FILE=/app/configuration.properties
- OPENTELEMETRY_PROPERTIES_FILE=/app/opentelemetry.properties
depends_on:
postgres:
condition: service_started
catena-x-edc-migration:
condition: service_completed_successfully
# catena-x-edc-migration:
# condition: service_completed_successfully
# wallet-stub:
# condition: service_started
catena-x-controlplane:
Expand Down Expand Up @@ -298,32 +310,33 @@
networks:
- edc-network

# Manual DB migration is not needed with the latest version of Tractus-x EDC.
# This script creates missing tables in the EDC database.

Check warning on line 314 in docker-compose.yaml

View workflow job for this annotation

GitHub Actions / Scan secrets

Found unverified JDBC result 🐷🔑
# Ideally, migrations should handle this, but due to an issue in EDC 0.7.7, some tables were not created.
# To save time, we added this script as a precaution; it will only create tables if they don't exist.
smartsense-edc-migration:
image: flyway/flyway:latest
container_name: smartsense-edc-migration
command: -url=jdbc:postgresql://postgres:5432/smartsense-edc -schemas=public -user=root -password=root -connectRetries=10 migrate
volumes:
- ./deployment/env/postgres/migration.sql:/flyway/sql/V0_0_1_0__create_tables.sql
depends_on:
postgres:
condition: service_started
networks:
- edc-network

catena-x-edc-migration:
image: flyway/flyway:latest
container_name: catena-x-edc-migration
command: -url=jdbc:postgresql://postgres:5432/catena-x-edc -schemas=public -user=root -password=root -connectRetries=10 migrate
volumes:
- ./deployment/env/postgres/migration.sql:/flyway/sql/V0_0_1_0__create_tables.sql
depends_on:
postgres:
condition: service_started
networks:
- edc-network
# smartsense-edc-migration:
# image: flyway/flyway:latest
# container_name: smartsense-edc-migration
# command: -url=jdbc:postgresql://postgres:5432/smartsense-edc -schemas=public -user=root -password=root -connectRetries=10 migrate
# volumes:
# - ./deployment/env/postgres/migration.sql:/flyway/sql/V0_0_1_0__create_tables.sql
# depends_on:
# postgres:
# condition: service_started
# networks:

Check warning on line 326 in docker-compose.yaml

View workflow job for this annotation

GitHub Actions / Scan secrets

Found unverified JDBC result 🐷🔑
# - edc-network
#
# catena-x-edc-migration:
# image: flyway/flyway:latest
# container_name: catena-x-edc-migration
# command: -url=jdbc:postgresql://postgres:5432/catena-x-edc -schemas=public -user=root -password=root -connectRetries=10 migrate
# volumes:
# - ./deployment/env/postgres/migration.sql:/flyway/sql/V0_0_1_0__create_tables.sql
# depends_on:
# postgres:
# condition: service_started
# networks:
# - edc-network

# Define custom network for inter-service communication
networks:
Expand Down
Loading
Loading