Skip to content

Commit 53bf9b5

Browse files
authored
Updates from MongoDB 5 to MongoDB 8 (#955)
1 parent 0327ae8 commit 53bf9b5

15 files changed

Lines changed: 53 additions & 45 deletions

basyx.aasregistry/docker-compose/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ services:
8080
- basyx
8181

8282
mongodb:
83-
image: mongo:5.0.10
83+
image: mongo:8
8484
container_name: mongodb
8585
environment:
8686
MONGO_INITDB_ROOT_USERNAME: admin

basyx.submodelregistry/docker-compose/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ services:
8080
- basyx-submodel
8181

8282
mongodb:
83-
image: mongo:5.0.10
83+
image: mongo:8
8484
container_name: mongodb
8585
environment:
8686
MONGO_INITDB_ROOT_USERNAME: admin

ci/docker-compose.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,17 @@ services:
1616
- basyx-java-server-sdk
1717

1818
mongo:
19-
image: mongo:5.0.10
19+
image: mongo:8
2020
restart: always
2121
environment:
2222
MONGO_INITDB_ROOT_USERNAME: mongoAdmin
2323
MONGO_INITDB_ROOT_PASSWORD: mongoPassword
2424
healthcheck:
25-
test: mongo
25+
test: ["CMD-SHELL", "mongosh --quiet --username \"$MONGO_INITDB_ROOT_USERNAME\" --password \"$MONGO_INITDB_ROOT_PASSWORD\" --authenticationDatabase admin --eval \"db.adminCommand({ ping: 1 })\" || exit 1"]
2626
interval: 10s
27-
start_period: 5s
28-
retries: 5
27+
timeout: 5s
28+
start_period: 20s
29+
retries: 10
2930
ports:
3031
- 27017:27017
3132
networks:

ci/workflows/test-aas-discovery-mongodb.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ services:
1717
mongo:
1818
condition: service_healthy
1919
mongo:
20-
image: mongo:5.0.10
20+
image: mongo:8
2121
container_name: mongo
2222
environment:
2323
MONGO_INITDB_ROOT_USERNAME: mongoAdmin
2424
MONGO_INITDB_ROOT_PASSWORD: mongoPassword
2525
restart: always
2626
healthcheck:
27-
test: mongo
27+
test: ["CMD-SHELL", "mongosh --quiet --username \"$MONGO_INITDB_ROOT_USERNAME\" --password \"$MONGO_INITDB_ROOT_PASSWORD\" --authenticationDatabase admin --eval \"db.adminCommand({ ping: 1 })\" || exit 1"]
2828
interval: 10s
2929
timeout: 5s
30-
retries: 5
30+
start_period: 20s
31+
retries: 10

ci/workflows/test-aas-environment-mongodb.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ services:
1717
mongo:
1818
condition: service_healthy
1919
mongo:
20-
image: mongo:5.0.10
20+
image: mongo:8
2121
container_name: mongo
2222
environment:
2323
MONGO_INITDB_ROOT_USERNAME: mongoAdmin
2424
MONGO_INITDB_ROOT_PASSWORD: mongoPassword
2525
restart: always
2626
healthcheck:
27-
test: mongo
27+
test: ["CMD-SHELL", "mongosh --quiet --username \"$MONGO_INITDB_ROOT_USERNAME\" --password \"$MONGO_INITDB_ROOT_PASSWORD\" --authenticationDatabase admin --eval \"db.adminCommand({ ping: 1 })\" || exit 1"]
2828
interval: 10s
2929
timeout: 5s
30-
retries: 5
30+
start_period: 20s
31+
retries: 10

ci/workflows/test-aas-registry-kafka-mongodb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ services:
8080
- basyx
8181

8282
mongodb:
83-
image: mongo:5.0.10
83+
image: mongo:8
8484
container_name: mongodb
8585
environment:
8686
MONGO_INITDB_ROOT_USERNAME: admin

ci/workflows/test-aas-registry-log-mongodb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ services:
2424
- basyx
2525

2626
mongodb:
27-
image: mongo:5.0.10
27+
image: mongo:8
2828
container_name: mongodb
2929
environment:
3030
MONGO_INITDB_ROOT_USERNAME: admin

ci/workflows/test-aas-repository-mongodb.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ services:
1717
mongo:
1818
condition: service_healthy
1919
mongo:
20-
image: mongo:5.0.10
20+
image: mongo:8
2121
container_name: mongo
2222
environment:
2323
MONGO_INITDB_ROOT_USERNAME: mongoAdmin
2424
MONGO_INITDB_ROOT_PASSWORD: mongoPassword
2525
restart: always
2626
healthcheck:
27-
test: mongo
27+
test: ["CMD-SHELL", "mongosh --quiet --username \"$MONGO_INITDB_ROOT_USERNAME\" --password \"$MONGO_INITDB_ROOT_PASSWORD\" --authenticationDatabase admin --eval \"db.adminCommand({ ping: 1 })\" || exit 1"]
2828
interval: 10s
2929
timeout: 5s
30-
retries: 5
30+
start_period: 20s
31+
retries: 10

ci/workflows/test-cd-repository-mongodb.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ services:
1717
mongo:
1818
condition: service_healthy
1919
mongo:
20-
image: mongo:5.0.10
20+
image: mongo:8
2121
container_name: mongo
2222
environment:
2323
MONGO_INITDB_ROOT_USERNAME: mongoAdmin
2424
MONGO_INITDB_ROOT_PASSWORD: mongoPassword
2525
restart: always
2626
healthcheck:
27-
test: mongo
27+
test: ["CMD-SHELL", "mongosh --quiet --username \"$MONGO_INITDB_ROOT_USERNAME\" --password \"$MONGO_INITDB_ROOT_PASSWORD\" --authenticationDatabase admin --eval \"db.adminCommand({ ping: 1 })\" || exit 1"]
2828
interval: 10s
2929
timeout: 5s
30-
retries: 5
30+
start_period: 20s
31+
retries: 10

ci/workflows/test-submodel-registry-kafka-mongodb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ services:
8080
- basyx-submodel
8181

8282
mongodb:
83-
image: mongo:5.0.10
83+
image: mongo:8
8484
container_name: mongodb
8585
environment:
8686
MONGO_INITDB_ROOT_USERNAME: admin

0 commit comments

Comments
 (0)