Skip to content

Commit d7f36c8

Browse files
Merge pull request #43 from smartSenseSolutions/dev
feat: Update EDC version from 0.7.7 to 0.9.0
2 parents 79aeae1 + 4c4e8ff commit d7f36c8

File tree

6 files changed

+1380
-53
lines changed

6 files changed

+1380
-53
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Disable all exporters
2+
otel.traces.exporter=none
3+
otel.metrics.exporter=none
4+
otel.logs.exporter=none
5+
edc.metrics.enabled=false
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Disable all exporters
2+
otel.traces.exporter=none
3+
otel.metrics.exporter=none
4+
otel.logs.exporter=none
5+
edc.metrics.enabled=false

docker-compose.yaml

Lines changed: 49 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version: "3.8"
88
services:
99
# PostgreSQL database service
1010
postgres:
11-
image: postgres:latest
11+
image: postgres:16
1212
container_name: postgres_multi_db
1313
environment:
1414
# Database credentials and configuration
@@ -28,8 +28,9 @@ services:
2828

2929
# Sender Control Plane service
3030
smartsense-controlplane:
31-
image: tractusx/edc-controlplane-postgresql-hashicorp-vault:0.7.7
31+
image: tractusx/edc-controlplane-postgresql-hashicorp-vault:0.9.0
3232
container_name: smartsense-controlplane
33+
command: [ "--log-level=DEBUG" ]
3334
ports:
3435
# Expose Control Plane ports
3536
- "8191:8191"
@@ -39,14 +40,16 @@ services:
3940
volumes:
4041
# Mount configuration file
4142
- ./deployment/env/smartsense/edc.properties:/app/configuration.properties
43+
- ./deployment/env/smartsense/opentelemetry.properties:/app/opentelemetry.properties
4244
environment:
4345
# Specify the configuration file location
4446
- CONFIGURATION_PROPERTIES_FILE=/app/configuration.properties
47+
- OPENTELEMETRY_PROPERTIES_FILE=/app/opentelemetry.properties
4548
depends_on:
4649
postgres:
4750
condition: service_started
48-
smartsense-edc-migration:
49-
condition: service_completed_successfully
51+
# smartsense-edc-migration:
52+
# condition: service_completed_successfully
5053
# wallet-stub:
5154
# condition: service_healthy
5255
networks:
@@ -60,22 +63,25 @@ services:
6063

6164
# Sender Data Plane service
6265
smartsense-dataplane:
63-
image: tractusx/edc-dataplane-hashicorp-vault:0.7.7
66+
image: tractusx/edc-dataplane-hashicorp-vault:0.9.0
6467
container_name: smartsense-dataplane
68+
command: [ "--log-level=DEBUG" ]
6569
ports:
6670
# Expose Data Plane port
6771
- "8196:8193"
6872
volumes:
6973
# Mount configuration file
7074
- ./deployment/env/smartsense/dataplane.properties:/app/configuration.properties
75+
- ./deployment/env/smartsense/opentelemetry.properties:/app/opentelemetry.properties
7176
environment:
7277
# Specify the configuration file location
7378
- CONFIGURATION_PROPERTIES_FILE=/app/configuration.properties
79+
- OPENTELEMETRY_PROPERTIES_FILE=/app/opentelemetry.properties
7480
depends_on:
7581
postgres:
7682
condition: service_started
77-
smartsense-edc-migration:
78-
condition: service_completed_successfully
83+
# smartsense-edc-migration:
84+
# condition: service_completed_successfully
7985
# wallet-stub:
8086
# condition: service_healthy
8187
smartsense-controlplane:
@@ -85,8 +91,9 @@ services:
8591

8692
# Receiver Control Plane service
8793
catena-x-controlplane:
88-
image: tractusx/edc-controlplane-postgresql-hashicorp-vault:0.7.7
94+
image: tractusx/edc-controlplane-postgresql-hashicorp-vault:0.9.0
8995
container_name: catena-x-controlplane
96+
command: [ "--log-level=DEBUG" ]
9097
ports:
9198
# Expose Control Plane ports
9299
- "9191:9191"
@@ -96,14 +103,16 @@ services:
96103
volumes:
97104
# Mount configuration file
98105
- ./deployment/env/catena-x/edc.properties:/app/configuration.properties
106+
- ./deployment/env/catena-x/opentelemetry.properties:/app/opentelemetry.properties
99107
environment:
100108
# Specify the configuration file location
101109
- CONFIGURATION_PROPERTIES_FILE=/app/configuration.properties
110+
- OPENTELEMETRY_PROPERTIES_FILE=/app/opentelemetry.properties
102111
depends_on:
103112
postgres:
104113
condition: service_started
105-
catena-x-edc-migration:
106-
condition: service_completed_successfully
114+
# catena-x-edc-migration:
115+
# condition: service_completed_successfully
107116
# wallet-stub:
108117
# condition: service_healthy
109118
networks:
@@ -117,22 +126,25 @@ services:
117126

118127
# Receiver Data Plane service
119128
catena-x-dataplane:
120-
image: tractusx/edc-dataplane-hashicorp-vault:0.7.7
129+
image: tractusx/edc-dataplane-hashicorp-vault:0.9.0
121130
container_name: catena-x-dataplane
131+
command: [ "--log-level=DEBUG" ]
122132
ports:
123133
# Expose Data Plane port
124134
- "9196:8196"
125135
volumes:
126136
# Mount configuration file
127137
- ./deployment/env/catena-x/dataplane.properties:/app/configuration.properties
138+
- ./deployment/env/catena-x/opentelemetry.properties:/app/opentelemetry.properties
128139
environment:
129140
# Specify the configuration file location
130141
- CONFIGURATION_PROPERTIES_FILE=/app/configuration.properties
142+
- OPENTELEMETRY_PROPERTIES_FILE=/app/opentelemetry.properties
131143
depends_on:
132144
postgres:
133145
condition: service_started
134-
catena-x-edc-migration:
135-
condition: service_completed_successfully
146+
# catena-x-edc-migration:
147+
# condition: service_completed_successfully
136148
# wallet-stub:
137149
# condition: service_started
138150
catena-x-controlplane:
@@ -298,32 +310,33 @@ services:
298310
networks:
299311
- edc-network
300312

313+
# Manual DB migration is not needed with the latest version of Tractus-x EDC.
301314
# This script creates missing tables in the EDC database.
302315
# Ideally, migrations should handle this, but due to an issue in EDC 0.7.7, some tables were not created.
303316
# To save time, we added this script as a precaution; it will only create tables if they don't exist.
304-
smartsense-edc-migration:
305-
image: flyway/flyway:latest
306-
container_name: smartsense-edc-migration
307-
command: -url=jdbc:postgresql://postgres:5432/smartsense-edc -schemas=public -user=root -password=root -connectRetries=10 migrate
308-
volumes:
309-
- ./deployment/env/postgres/migration.sql:/flyway/sql/V0_0_1_0__create_tables.sql
310-
depends_on:
311-
postgres:
312-
condition: service_started
313-
networks:
314-
- edc-network
315-
316-
catena-x-edc-migration:
317-
image: flyway/flyway:latest
318-
container_name: catena-x-edc-migration
319-
command: -url=jdbc:postgresql://postgres:5432/catena-x-edc -schemas=public -user=root -password=root -connectRetries=10 migrate
320-
volumes:
321-
- ./deployment/env/postgres/migration.sql:/flyway/sql/V0_0_1_0__create_tables.sql
322-
depends_on:
323-
postgres:
324-
condition: service_started
325-
networks:
326-
- edc-network
317+
# smartsense-edc-migration:
318+
# image: flyway/flyway:latest
319+
# container_name: smartsense-edc-migration
320+
# command: -url=jdbc:postgresql://postgres:5432/smartsense-edc -schemas=public -user=root -password=root -connectRetries=10 migrate
321+
# volumes:
322+
# - ./deployment/env/postgres/migration.sql:/flyway/sql/V0_0_1_0__create_tables.sql
323+
# depends_on:
324+
# postgres:
325+
# condition: service_started
326+
# networks:
327+
# - edc-network
328+
#
329+
# catena-x-edc-migration:
330+
# image: flyway/flyway:latest
331+
# container_name: catena-x-edc-migration
332+
# command: -url=jdbc:postgresql://postgres:5432/catena-x-edc -schemas=public -user=root -password=root -connectRetries=10 migrate
333+
# volumes:
334+
# - ./deployment/env/postgres/migration.sql:/flyway/sql/V0_0_1_0__create_tables.sql
335+
# depends_on:
336+
# postgres:
337+
# condition: service_started
338+
# networks:
339+
# - edc-network
327340

328341
# Define custom network for inter-service communication
329342
networks:

0 commit comments

Comments
 (0)