From 1940f7bd09f0d279d7af77384d5295ec7b09ec5a Mon Sep 17 00:00:00 2001 From: Jannik Fried Date: Mon, 5 Aug 2024 14:53:08 +0200 Subject: [PATCH] Fixes AAS Environment MongoDB not working (#383) * 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 --- .github/workflows/maven_run_test.yml | 36 +++++++++++++++++-- .../basyx.aasenvironment.component/pom.xml | 4 +++ 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven_run_test.yml b/.github/workflows/maven_run_test.yml index 8db0942dc..3da66b4aa 100644 --- a/.github/workflows/maven_run_test.yml +++ b/.github/workflows/maven_run_test.yml @@ -21,7 +21,7 @@ on: - '.gitignore' - 'LICENSE' - 'NOTICE' - + jobs: build: @@ -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" diff --git a/basyx.aasenvironment/basyx.aasenvironment.component/pom.xml b/basyx.aasenvironment/basyx.aasenvironment.component/pom.xml index 2c8abcb64..ed64a86ec 100644 --- a/basyx.aasenvironment/basyx.aasenvironment.component/pom.xml +++ b/basyx.aasenvironment/basyx.aasenvironment.component/pom.xml @@ -88,6 +88,10 @@ tests test + + org.eclipse.digitaltwin.basyx + basyx.mongodbcore + org.springframework.boot spring-boot-starter-actuator