Skip to content

Commit

Permalink
Fixes AAS Environment MongoDB not working (eclipse-basyx#383)
Browse files Browse the repository at this point in the history
* Fixes AAS Environment MongoDB not working

* Adapts CI

* Adapts CI

* Adapts CI

* Adapts CI

* Adapts CI

* Adapts CI

* Adapts CI

* Adapts CI

* Adapts CI

* Adapts CI
  • Loading branch information
FriedJannik authored Aug 5, 2024
1 parent cee34d6 commit 1940f7b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
36 changes: 33 additions & 3 deletions .github/workflows/maven_run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
- '.gitignore'
- 'LICENSE'
- 'NOTICE'


jobs:
build:
Expand All @@ -37,7 +37,37 @@ jobs:
- name: Start environment
run: docker compose --project-directory ./ci up -d --wait
- name: Install BaSyx
run: mvn clean install -Ddocker.namespace=test
run: mvn clean install
- name: Stop environment
if: always()
run: docker compose --project-directory ./ci down
run: docker compose --project-directory ./ci down
- name: Build and remove Docker images
run: |
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.submodelservice.example"
docker rmi -f $(docker images -aq)
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.submodelrepository.component"
docker rmi -f $(docker images -aq)
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.aasrepository.component"
docker rmi -f $(docker images -aq)
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.aasenvironment.component"
docker rmi -f $(docker images -aq)
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.conceptdescriptionrepository.component"
docker rmi -f $(docker images -aq)
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.aasdiscoveryservice.component"
docker rmi -f $(docker images -aq)
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.aasxfileserver.component"
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.aasregistry-service-release-kafka-mem"
docker rmi -f $(docker images -aq)
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.aasregistry-service-release-kafka-mongodb"
docker rmi -f $(docker images -aq)
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.aasregistry-service-release-log-mem"
docker rmi -f $(docker images -aq)
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.aasregistry-service-release-log-mongodb"
docker rmi -f $(docker images -aq)
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.submodelregistry-service-release-kafka-mem"
docker rmi -f $(docker images -aq)
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.submodelregistry-service-release-kafka-mongodb"
docker rmi -f $(docker images -aq)
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.submodelregistry-service-release-log-mem"
docker rmi -f $(docker images -aq)
mvn package -DskipTests -Ddocker.namespace=test --pl "org.eclipse.digitaltwin.basyx:basyx.submodelregistry-service-release-log-mongodb"
4 changes: 4 additions & 0 deletions basyx.aasenvironment/basyx.aasenvironment.component/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.digitaltwin.basyx</groupId>
<artifactId>basyx.mongodbcore</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
Expand Down

0 comments on commit 1940f7b

Please sign in to comment.