From 7c328230c28f0d6880cdde23e1a72c0a5203c37e Mon Sep 17 00:00:00 2001 From: Martin Weise <martin.weise@tuwien.ac.at> Date: Wed, 10 Mar 2021 23:31:51 +0100 Subject: [PATCH] IntelliJ really messed up the repository --- .gitlab-ci.yml | 48 +++++++++---------- README.md | 12 ++--- docker-compose.dbrepo.yml | 38 +++++++-------- docker-compose.yml | 26 +++++----- fda-analyse-service/README.md | 2 +- fda-analyse-service/app.py | 2 +- fda-gateway-service/Dockerfile | 2 +- fda-gateway-service/pom.xml | 4 +- .../gatewayservice/config/GatewayConfig.java | 6 +-- .../resources/application-docker.properties | 2 +- .../src/main/resources/application.properties | 2 +- fda-query-service/Dockerfile | 4 +- fda-query-service/api/pom.xml | 2 +- fda-query-service/gateways/pom.xml | 2 +- .../client/FdaContainerManagingClient.java | 2 +- fda-query-service/persistence/pom.xml | 2 +- fda-query-service/pom.xml | 6 +-- fda-query-service/rest-service/pom.xml | 4 +- .../main/java/at/tuwien/SwaggerConfig.java | 2 +- .../resources/application-docker.properties | 2 +- .../src/main/resources/application.properties | 2 +- fda-query-service/services/pom.xml | 2 +- fda-table-service/Dockerfile | 4 +- fda-table-service/api/pom.xml | 2 +- fda-table-service/gateways/pom.xml | 2 +- .../client/FdaAnalyseServiceClient.java | 4 +- .../tuwien/client/FdaQueryServiceClient.java | 8 ++-- fda-table-service/pom.xml | 6 +-- fda-table-service/rest-service/pom.xml | 4 +- .../resources/application-docker.properties | 2 +- .../src/main/resources/application.properties | 2 +- fda-table-service/services/pom.xml | 2 +- hystrix-dashboard/Dockerfile | 2 +- 33 files changed, 106 insertions(+), 106 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e2d28eb7e1..3dbf06de4b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,20 +41,20 @@ deploy-dev: variables: TAG: latest script: - - docker build -t $CI_REGISTRY/fda-analyse-at.tuwien.service:$TAG ./fda-analyse-at.tuwien.service - - docker push $CI_REGISTRY/fda-analyse-at.tuwien.service:$TAG + - docker build -t $CI_REGISTRY/fda-analyse-service:$TAG ./fda-analyse-service + - docker push $CI_REGISTRY/fda-analyse-service:$TAG - docker build -t $CI_REGISTRY/fda-discovery-server:$TAG ./fda-discovery-server - docker push $CI_REGISTRY/fda-discovery-server:$TAG - - docker build -t $CI_REGISTRY/fda-gateway-at.tuwien.service:$TAG ./fda-gateway-at.tuwien.service - - docker push $CI_REGISTRY/fda-gateway-at.tuwien.service:$TAG - - docker build -t $CI_REGISTRY/fda-database-managing-at.tuwien.service:$TAG ./fda-database-managing-at.tuwien.service - - docker push $CI_REGISTRY/fda-database-managing-at.tuwien.service:$TAG - - docker build -t $CI_REGISTRY/fda-container-managing-at.tuwien.service:$TAG ./fda-container-managing-at.tuwien.service - - docker push $CI_REGISTRY/fda-container-managing-at.tuwien.service:$TAG - - docker build -t $CI_REGISTRY/fda-query-at.tuwien.service:$TAG ./fda-query-at.tuwien.service - - docker push $CI_REGISTRY/fda-query-at.tuwien.service:$TAG - - docker build -t $CI_REGISTRY/fda-table-at.tuwien.service:$TAG ./fda-table-at.tuwien.service - - docker push $CI_REGISTRY/fda-table-at.tuwien.service:$TAG + - docker build -t $CI_REGISTRY/fda-gateway-service:$TAG ./fda-gateway-service + - docker push $CI_REGISTRY/fda-gateway-service:$TAG + - docker build -t $CI_REGISTRY/fda-database-managing-service:$TAG ./fda-database-managing-service + - docker push $CI_REGISTRY/fda-database-managing-service:$TAG + - docker build -t $CI_REGISTRY/fda-container-managing-service:$TAG ./fda-container-managing-service + - docker push $CI_REGISTRY/fda-container-managing-service:$TAG + - docker build -t $CI_REGISTRY/fda-query-service:$TAG ./fda-query-service + - docker push $CI_REGISTRY/fda-query-service:$TAG + - docker build -t $CI_REGISTRY/fda-table-service:$TAG ./fda-table-service + - docker push $CI_REGISTRY/fda-table-service:$TAG - docker build -t $CI_REGISTRY/fda-ui:$TAG ./fda-ui - docker push $CI_REGISTRY/fda-ui:$TAG - docker logout $CI_REGISTRY @@ -66,20 +66,20 @@ deploy-prod: variables: TAG: stable script: - - docker build -t $CI_REGISTRY/fda-analyse-at.tuwien.service:$TAG ./fda-analyse-at.tuwien.service - - docker push $CI_REGISTRY/fda-analyse-at.tuwien.service:$TAG + - docker build -t $CI_REGISTRY/fda-analyse-service:$TAG ./fda-analyse-service + - docker push $CI_REGISTRY/fda-analyse-service:$TAG - docker build -t $CI_REGISTRY/fda-discovery-server:$TAG ./fda-discovery-server - docker push $CI_REGISTRY/fda-discovery-server:$TAG - - docker build -t $CI_REGISTRY/fda-gateway-at.tuwien.service:$TAG ./fda-gateway-at.tuwien.service - - docker push $CI_REGISTRY/fda-gateway-at.tuwien.service:$TAG - - docker build -t $CI_REGISTRY/fda-database-managing-at.tuwien.service:$TAG ./fda-database-managing-at.tuwien.service - - docker push $CI_REGISTRY/fda-database-managing-at.tuwien.service:$TAG - - docker build -t $CI_REGISTRY/fda-container-managing-at.tuwien.service:$TAG ./fda-container-managing-at.tuwien.service - - docker push $CI_REGISTRY/fda-container-managing-at.tuwien.service:$TAG - - docker build -t $CI_REGISTRY/fda-query-at.tuwien.service:$TAG ./fda-query-at.tuwien.service - - docker push $CI_REGISTRY/fda-query-at.tuwien.service:$TAG - - docker build -t $CI_REGISTRY/fda-table-at.tuwien.service:$TAG ./fda-table-at.tuwien.service - - docker push $CI_REGISTRY/fda-table-at.tuwien.service:$TAG + - docker build -t $CI_REGISTRY/fda-gateway-service:$TAG ./fda-gateway-service + - docker push $CI_REGISTRY/fda-gateway-service:$TAG + - docker build -t $CI_REGISTRY/fda-database-managing-service:$TAG ./fda-database-managing-service + - docker push $CI_REGISTRY/fda-database-managing-service:$TAG + - docker build -t $CI_REGISTRY/fda-container-managing-service:$TAG ./fda-container-managing-service + - docker push $CI_REGISTRY/fda-container-managing-service:$TAG + - docker build -t $CI_REGISTRY/fda-query-service:$TAG ./fda-query-service + - docker push $CI_REGISTRY/fda-query-service:$TAG + - docker build -t $CI_REGISTRY/fda-table-service:$TAG ./fda-table-service + - docker push $CI_REGISTRY/fda-table-service:$TAG - docker build -t $CI_REGISTRY/fda-ui:$TAG ./fda-ui - docker push $CI_REGISTRY/fda-ui:$TAG - docker logout $CI_REGISTRY diff --git a/README.md b/README.md index 3869447c0a..d9d76944c4 100644 --- a/README.md +++ b/README.md @@ -11,13 +11,13 @@ docker login https://docker.martinweise.at ``` ```bash -docker pull docker.martinweise.at/fda-analyse-at.tuwien.service +docker pull docker.martinweise.at/fda-analyse-service docker pull docker.martinweise.at/fda-discovery-server -docker pull docker.martinweise.at/fda-gateway-at.tuwien.service -docker pull docker.martinweise.at/fda-database-managing-at.tuwien.service -docker pull docker.martinweise.at/fda-container-managing-at.tuwien.service -docker pull docker.martinweise.at/fda-query-at.tuwien.service -docker pull docker.martinweise.at/fda-table-at.tuwien.service +docker pull docker.martinweise.at/fda-gateway-service +docker pull docker.martinweise.at/fda-database-managing-service +docker pull docker.martinweise.at/fda-container-managing-service +docker pull docker.martinweise.at/fda-query-service +docker pull docker.martinweise.at/fda-table-service docker pull docker.martinweise.at/fda-ui ``` diff --git a/docker-compose.dbrepo.yml b/docker-compose.dbrepo.yml index 1580cbbe55..7e1cc17cc3 100644 --- a/docker-compose.dbrepo.yml +++ b/docker-compose.dbrepo.yml @@ -13,9 +13,9 @@ services: - 9090:9090 fda-gateway-service: - container_name: fda-gateway-at.tuwien.service - hostname: fda-gateway-at.tuwien.service - image: docker.martinweise.at/fda-gateway-at.tuwien.service:latest + container_name: fda-gateway-service + hostname: fda-gateway-service + image: docker.martinweise.at/fda-gateway-service:latest network_mode: bridge environment: SPRING_PROFILES_ACTIVE: docker @@ -37,9 +37,9 @@ services: driver: json-file fda-database-managing-service: - container_name: fda-database-managing-at.tuwien.service - hostname: fda-database-managing-at.tuwien.service - image: docker.martinweise.at/fda-database-managing-at.tuwien.service:latest + container_name: fda-database-managing-service + hostname: fda-database-managing-service + image: docker.martinweise.at/fda-database-managing-service:latest network_mode: bridge environment: SPRING_PROFILES_ACTIVE: docker @@ -55,9 +55,9 @@ services: driver: json-file fda-container-managing-service: - container_name: fda-container-managing-at.tuwien.service - hostname: fda-container-managing-at.tuwien.service - image: docker.martinweise.at/fda-container-managing-at.tuwien.service:latest + container_name: fda-container-managing-service + hostname: fda-container-managing-service + image: docker.martinweise.at/fda-container-managing-service:latest network_mode: bridge environment: SPRING_PROFILES_ACTIVE: docker @@ -73,9 +73,9 @@ services: driver: json-file fda-query-service: - container_name: fda-query-at.tuwien.service - hostname: fda-query-at.tuwien.service - image: docker.martinweise.at/fda-query-at.tuwien.service:latest + container_name: fda-query-service + hostname: fda-query-service + image: docker.martinweise.at/fda-query-service:latest network_mode: bridge environment: SPRING_PROFILES_ACTIVE: docker @@ -93,9 +93,9 @@ services: driver: json-file fda-table-service: - container_name: fda-table-at.tuwien.service - hostname: fda-table-at.tuwien.service - image: docker.martinweise.at/fda-table-at.tuwien.service:latest + container_name: fda-table-service + hostname: fda-table-service + image: docker.martinweise.at/fda-table-service:latest network_mode: bridge environment: SPRING_PROFILES_ACTIVE: docker @@ -112,9 +112,9 @@ services: - fda-discovery-server fda-analyse-service: - container_name: fda-analyse-at.tuwien.service - hostname: fda-analyse-at.tuwien.service - image: docker.martinweise.at/fda-analyse-at.tuwien.service:latest + container_name: fda-analyse-service + hostname: fda-analyse-service + image: docker.martinweise.at/fda-analyse-service:latest network_mode: bridge command: sh -c "/wait && flask run" environment: @@ -149,4 +149,4 @@ services: - fda-discovery-server environment: HOST: 0.0.0.0 - API_URL: //fda-database-managing-at.tuwien.service:9092/api + API_URL: //fda-database-managing-service:9092/api diff --git a/docker-compose.yml b/docker-compose.yml index 124bf6db06..1246e91bd8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -36,8 +36,8 @@ services: fda-gateway-service: restart: always - container_name: fda-gateway-at.tuwien.service - hostname: fda-gateway-at.tuwien.service + container_name: fda-gateway-service + hostname: fda-gateway-service build: ./fda-gateway-service image: fda-gateway-service network_mode: bridge @@ -62,8 +62,8 @@ services: fda-database-managing-service: restart: always - container_name: fda-database-managing-at.tuwien.service - hostname: fda-database-managing-at.tuwien.service + container_name: fda-database-managing-service + hostname: fda-database-managing-service build: context: ./fda-database-managing-service image: fda-database-managing-service @@ -83,8 +83,8 @@ services: fda-container-managing-service: restart: always - container_name: fda-container-managing-at.tuwien.service - hostname: fda-container-managing-at.tuwien.service + container_name: fda-container-managing-service + hostname: fda-container-managing-service build: ./fda-container-managing-service image: fda-container-managing-service network_mode: bridge @@ -103,8 +103,8 @@ services: fda-query-service: restart: always - container_name: fda-query-at.tuwien.service - hostname: fda-query-at.tuwien.service + container_name: fda-query-service + hostname: fda-query-service build: ./fda-query-service image: fda-query-service network_mode: bridge @@ -125,8 +125,8 @@ services: fda-table-service: restart: always - container_name: fda-table-at.tuwien.service - hostname: fda-table-at.tuwien.service + container_name: fda-table-service + hostname: fda-table-service build: ./fda-table-service image: fda-table-service network_mode: bridge @@ -146,8 +146,8 @@ services: fda-analyse-service: restart: always - container_name: fda-analyse-at.tuwien.service - hostname: fda-analyse-at.tuwien.service + container_name: fda-analyse-service + hostname: fda-analyse-service build: ./fda-analyse-service image: fda-analyse-service network_mode: bridge @@ -186,4 +186,4 @@ services: - fda-discovery-server environment: HOST: 0.0.0.0 - API_URL: //fda-database-managing-at.tuwien.service:9092/api + API_URL: //fda-database-managing-service:9092/api diff --git a/fda-analyse-service/README.md b/fda-analyse-service/README.md index 3aea990ff3..5dac223773 100644 --- a/fda-analyse-service/README.md +++ b/fda-analyse-service/README.md @@ -49,4 +49,4 @@ run `python3 app.py` add '/upload' to url ### Running with Docker -Building the image: `sudo docker build -t analyse-at.tuwien.service .` +Building the image: `sudo docker build -t analyse-service .` diff --git a/fda-analyse-service/app.py b/fda-analyse-service/app.py index 4082030d38..641a4102e8 100644 --- a/fda-analyse-service/app.py +++ b/fda-analyse-service/app.py @@ -77,7 +77,7 @@ def extract_tables(): rest_server_port = 5000 eureka_client.init(eureka_server=os.getenv('EUREKA_SERVER', 'http://localhost:9090/eureka/'), - app_name="fda-analyse-at.tuwien.service", + app_name="fda-analyse-service", instance_port=rest_server_port) diff --git a/fda-gateway-service/Dockerfile b/fda-gateway-service/Dockerfile index 6dba7455f7..ff3ac66872 100644 --- a/fda-gateway-service/Dockerfile +++ b/fda-gateway-service/Dockerfile @@ -13,7 +13,7 @@ RUN mvn -q clean package > /dev/null ###### SECOND STAGE ###### FROM openjdk:11-jre-slim as runtime -COPY --from=build ./target/fda-gateway-at.tuwien.service-*.jar ./gateway.jar +COPY --from=build ./target/fda-gateway-service-*.jar ./gateway.jar EXPOSE 9095 diff --git a/fda-gateway-service/pom.xml b/fda-gateway-service/pom.xml index d4fc0d4e18..8432ad081d 100644 --- a/fda-gateway-service/pom.xml +++ b/fda-gateway-service/pom.xml @@ -9,9 +9,9 @@ <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>at.tuwien</groupId> - <artifactId>fda-gateway-at.tuwien.service</artifactId> + <artifactId>fda-gateway-service</artifactId> <version>0.0.1-SNAPSHOT</version> - <name>fda-gateway-at.tuwien.service</name> + <name>fda-gateway-service</name> <description>Demo project for Spring Boot</description> <properties> diff --git a/fda-gateway-service/src/main/java/at/tuwien/gatewayservice/config/GatewayConfig.java b/fda-gateway-service/src/main/java/at/tuwien/gatewayservice/config/GatewayConfig.java index fd3dc21da3..2d3c88315d 100644 --- a/fda-gateway-service/src/main/java/at/tuwien/gatewayservice/config/GatewayConfig.java +++ b/fda-gateway-service/src/main/java/at/tuwien/gatewayservice/config/GatewayConfig.java @@ -11,17 +11,17 @@ public class GatewayConfig { @Bean public RouteLocator routes(RouteLocatorBuilder builder) { return builder.routes() - .route("database-managing-at.tuwien.service", r -> r.path("/database/**") + .route("database-managing-service", r -> r.path("/database/**") .and() .method("POST","GET") .and() .uri("lb://FDA-Database-Managing")) - .route("table-at.tuwien.service", r -> r.path("/table/**") + .route("table-service", r -> r.path("/table/**") .and() .method("POST","GET") .and() .uri("lb://FDA-Table-Service")) - .route("query-at.tuwien.service", r -> r.path("/query/executeQuery") + .route("query-service", r -> r.path("/query/executeQuery") .and() .method("POST") .and() diff --git a/fda-gateway-service/src/main/resources/application-docker.properties b/fda-gateway-service/src/main/resources/application-docker.properties index 0682e3d606..ecfe4a0bcd 100644 --- a/fda-gateway-service/src/main/resources/application-docker.properties +++ b/fda-gateway-service/src/main/resources/application-docker.properties @@ -1,5 +1,5 @@ server.port=9095 -spring.application.name=fda-gateway-at.tuwien.service +spring.application.name=fda-gateway-service spring.main.banner-mode=off spring.cloud.loadbalancer.ribbon.enabled=false logging.level.root=warn diff --git a/fda-gateway-service/src/main/resources/application.properties b/fda-gateway-service/src/main/resources/application.properties index eed34841fa..16f488a6c7 100644 --- a/fda-gateway-service/src/main/resources/application.properties +++ b/fda-gateway-service/src/main/resources/application.properties @@ -1,3 +1,3 @@ -spring.application.name=fda-gateway-at.tuwien.service +spring.application.name=fda-gateway-service server.port=9095 eureka.client.serviceUrl.defaultZone=http://localhost:9090/eureka/ \ No newline at end of file diff --git a/fda-query-service/Dockerfile b/fda-query-service/Dockerfile index b203a50057..7c86e3e735 100644 --- a/fda-query-service/Dockerfile +++ b/fda-query-service/Dockerfile @@ -9,7 +9,7 @@ RUN mvn -fn -B dependency:go-offline > /dev/null COPY ./api ./api COPY ./gateways ./gateways COPY ./persistence ./persistence -COPY ./rest-at.tuwien.service ./rest-at.tuwien.service +COPY ./rest-service ./rest-service COPY ./services ./services RUN mvn -q clean package > /dev/null @@ -17,7 +17,7 @@ RUN mvn -q clean package > /dev/null ###### SECOND STAGE ###### FROM openjdk:11-jre-slim as runtime -COPY --from=build ./rest-at.tuwien.service/target/fda-query-at.tuwien.service-*.jar ./rest.jar +COPY --from=build ./rest-service/target/fda-query-service-*.jar ./rest.jar EXPOSE 9093 diff --git a/fda-query-service/api/pom.xml b/fda-query-service/api/pom.xml index 47a67c6b45..86e0a6f805 100644 --- a/fda-query-service/api/pom.xml +++ b/fda-query-service/api/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> - <artifactId>fda-query-at.tuwien.service</artifactId> + <artifactId>fda-query-service</artifactId> <groupId>at.tuwien</groupId> <version>0.0.1-SNAPSHOT</version> </parent> diff --git a/fda-query-service/gateways/pom.xml b/fda-query-service/gateways/pom.xml index 12c9d7a5ae..c6fbd9e1d4 100644 --- a/fda-query-service/gateways/pom.xml +++ b/fda-query-service/gateways/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> - <artifactId>fda-query-at.tuwien.service</artifactId> + <artifactId>fda-query-service</artifactId> <groupId>at.tuwien</groupId> <version>0.0.1-SNAPSHOT</version> </parent> diff --git a/fda-query-service/gateways/src/main/java/at/tuwien/client/FdaContainerManagingClient.java b/fda-query-service/gateways/src/main/java/at/tuwien/client/FdaContainerManagingClient.java index 33b471620e..610be0cb46 100644 --- a/fda-query-service/gateways/src/main/java/at/tuwien/client/FdaContainerManagingClient.java +++ b/fda-query-service/gateways/src/main/java/at/tuwien/client/FdaContainerManagingClient.java @@ -20,7 +20,7 @@ public class FdaContainerManagingClient { } public DatabaseContainer getDatabaseContainer(String containerID) { - LOGGER.debug("request fda-container-managing at.tuwien.service for getting database container"); + LOGGER.debug("request fda-container-managing service for getting database container"); DatabaseContainer databaseContainer = webClientBuilder .build() .get() diff --git a/fda-query-service/persistence/pom.xml b/fda-query-service/persistence/pom.xml index 36b810590f..761cf28714 100644 --- a/fda-query-service/persistence/pom.xml +++ b/fda-query-service/persistence/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> - <artifactId>fda-query-at.tuwien.service</artifactId> + <artifactId>fda-query-service</artifactId> <groupId>at.tuwien</groupId> <version>0.0.1-SNAPSHOT</version> </parent> diff --git a/fda-query-service/pom.xml b/fda-query-service/pom.xml index 56a8bfa67a..3ad24a8eb4 100644 --- a/fda-query-service/pom.xml +++ b/fda-query-service/pom.xml @@ -4,7 +4,7 @@ <modelVersion>4.0.0</modelVersion> <packaging>pom</packaging> <modules> - <module>rest-at.tuwien.service</module> + <module>rest-service</module> <module>api</module> <module>services</module> <module>gateways</module> @@ -17,9 +17,9 @@ <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>at.tuwien</groupId> - <artifactId>fda-query-at.tuwien.service</artifactId> + <artifactId>fda-query-service</artifactId> <version>0.0.1-SNAPSHOT</version> - <name>fda-query-at.tuwien.service</name> + <name>fda-query-service</name> <description>Demo project for Spring Boot</description> <properties> diff --git a/fda-query-service/rest-service/pom.xml b/fda-query-service/rest-service/pom.xml index 8680d0409d..1bdec41486 100644 --- a/fda-query-service/rest-service/pom.xml +++ b/fda-query-service/rest-service/pom.xml @@ -3,13 +3,13 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> - <artifactId>fda-query-at.tuwien.service</artifactId> + <artifactId>fda-query-service</artifactId> <groupId>at.tuwien</groupId> <version>0.0.1-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> - <artifactId>rest-at.tuwien.service</artifactId> + <artifactId>rest-service</artifactId> <dependencies> <dependency> <groupId>at.tuwien</groupId> diff --git a/fda-query-service/rest-service/src/main/java/at/tuwien/SwaggerConfig.java b/fda-query-service/rest-service/src/main/java/at/tuwien/SwaggerConfig.java index 45f99dd3da..65c94d0cee 100644 --- a/fda-query-service/rest-service/src/main/java/at/tuwien/SwaggerConfig.java +++ b/fda-query-service/rest-service/src/main/java/at/tuwien/SwaggerConfig.java @@ -27,7 +27,7 @@ public class SwaggerConfig { private ApiInfo apiInfo() { return new ApiInfo("FDA-Query-Service API", - "Service API for query at.tuwien.service", + "Service API for query service", "1.0", null, new Contact("Gökhan Dasdemir", "http://tuwien.at", "goekhan.dasdemir@tuwien.ac.at"), diff --git a/fda-query-service/rest-service/src/main/resources/application-docker.properties b/fda-query-service/rest-service/src/main/resources/application-docker.properties index 692092a6a2..d11e79ea25 100644 --- a/fda-query-service/rest-service/src/main/resources/application-docker.properties +++ b/fda-query-service/rest-service/src/main/resources/application-docker.properties @@ -1,5 +1,5 @@ server.port=9093 -spring.application.name=fda-query-at.tuwien.service +spring.application.name=fda-query-service spring.main.banner-mode=off spring.cloud.loadbalancer.ribbon.enabled=false logging.level.root=warn diff --git a/fda-query-service/rest-service/src/main/resources/application.properties b/fda-query-service/rest-service/src/main/resources/application.properties index ffc41ba93d..3e1f2745a1 100644 --- a/fda-query-service/rest-service/src/main/resources/application.properties +++ b/fda-query-service/rest-service/src/main/resources/application.properties @@ -1,3 +1,3 @@ -spring.application.name=fda-query-at.tuwien.service +spring.application.name=fda-query-service server.port=9093 eureka.client.serviceUrl.defaultZone=http://localhost:9090/eureka/ diff --git a/fda-query-service/services/pom.xml b/fda-query-service/services/pom.xml index 9d4202642e..088989ebac 100644 --- a/fda-query-service/services/pom.xml +++ b/fda-query-service/services/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> - <artifactId>fda-query-at.tuwien.service</artifactId> + <artifactId>fda-query-service</artifactId> <groupId>at.tuwien</groupId> <version>0.0.1-SNAPSHOT</version> </parent> diff --git a/fda-table-service/Dockerfile b/fda-table-service/Dockerfile index 7bcaeb7d51..9a9c4c854a 100644 --- a/fda-table-service/Dockerfile +++ b/fda-table-service/Dockerfile @@ -8,7 +8,7 @@ RUN mvn -fn -B dependency:go-offline > /dev/null COPY ./api ./api COPY ./gateways ./gateways -COPY ./rest-at.tuwien.service ./rest-at.tuwien.service +COPY ./rest-service ./rest-service COPY ./services ./services RUN mvn -q clean package > /dev/null @@ -16,7 +16,7 @@ RUN mvn -q clean package > /dev/null ###### SECOND STAGE ###### FROM openjdk:11-jre-slim as runtime -COPY --from=build ./rest-at.tuwien.service/target/fda-table-at.tuwien.service-*.jar ./rest.jar +COPY --from=build ./rest-service/target/fda-table-service-*.jar ./rest.jar EXPOSE 9094 diff --git a/fda-table-service/api/pom.xml b/fda-table-service/api/pom.xml index a47b57a00a..a2ee421e94 100644 --- a/fda-table-service/api/pom.xml +++ b/fda-table-service/api/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> - <artifactId>fda-table-at.tuwien.service</artifactId> + <artifactId>fda-table-service</artifactId> <groupId>at.tuwien</groupId> <version>0.0.1-SNAPSHOT</version> </parent> diff --git a/fda-table-service/gateways/pom.xml b/fda-table-service/gateways/pom.xml index 9f4eea8ac4..26715091e5 100644 --- a/fda-table-service/gateways/pom.xml +++ b/fda-table-service/gateways/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> - <artifactId>fda-table-at.tuwien.service</artifactId> + <artifactId>fda-table-service</artifactId> <groupId>at.tuwien</groupId> <version>0.0.1-SNAPSHOT</version> </parent> diff --git a/fda-table-service/gateways/src/main/java/at/tuwien/client/FdaAnalyseServiceClient.java b/fda-table-service/gateways/src/main/java/at/tuwien/client/FdaAnalyseServiceClient.java index f76ee532b0..f89e8b43a4 100644 --- a/fda-table-service/gateways/src/main/java/at/tuwien/client/FdaAnalyseServiceClient.java +++ b/fda-table-service/gateways/src/main/java/at/tuwien/client/FdaAnalyseServiceClient.java @@ -22,11 +22,11 @@ public class FdaAnalyseServiceClient { } public CSVColumnsResult determineDatatypes(String pathToCSVFile) { - LOGGER.debug("request analyse-at.tuwien.service for getting determined datatypes"); + LOGGER.debug("request analyse-service for getting determined datatypes"); CSVColumnsResult csvColumnsResult = webClientBuilder .build() .get() - .uri("http://fda-analyse-at.tuwien.service/datatypesbypath?filepath=" + pathToCSVFile) + .uri("http://fda-analyse-service/datatypesbypath?filepath=" + pathToCSVFile) .accept(MediaType.APPLICATION_JSON) .retrieve() .bodyToMono(CSVColumnsResult.class) diff --git a/fda-table-service/gateways/src/main/java/at/tuwien/client/FdaQueryServiceClient.java b/fda-table-service/gateways/src/main/java/at/tuwien/client/FdaQueryServiceClient.java index 88321bd0a5..5de764ead1 100644 --- a/fda-table-service/gateways/src/main/java/at/tuwien/client/FdaQueryServiceClient.java +++ b/fda-table-service/gateways/src/main/java/at/tuwien/client/FdaQueryServiceClient.java @@ -31,12 +31,12 @@ public class FdaQueryServiceClient { } public boolean executeStatement(CreateTableViaCsvDTO dto, String statement) { - LOGGER.debug("request fda-query-at.tuwien.service for executing statement"); + LOGGER.debug("request fda-query-service for executing statement"); ExecuteStatementDTO statementDTO = mapper.map(dto, statement); ClientResponse response = webClientBuilder .build() .post() - .uri("http://fda-query-at.tuwien.service/query/executeStatement") + .uri("http://fda-query-service/query/executeStatement") .contentType(MediaType.APPLICATION_JSON) .body(Mono.just(statementDTO), ExecuteStatementDTO.class) .exchange() @@ -51,7 +51,7 @@ public class FdaQueryServiceClient { QueryResult queryResult = webClientBuilder .build() .post() - .uri("http://fda-query-at.tuwien.service/query/executeQuery") + .uri("http://fda-query-service/query/executeQuery") .contentType(MediaType.APPLICATION_JSON) .body(Mono.just(execInternalQueryDTO), ExecuteInternalQueryDTO.class) .retrieve() @@ -66,7 +66,7 @@ public class FdaQueryServiceClient { ClientResponse response = webClientBuilder .build() .post() - .uri("http://fda-query-at.tuwien.service/query/copyCSVIntoTable") + .uri("http://fda-query-service/query/copyCSVIntoTable") .contentType(MediaType.APPLICATION_JSON) .body(Mono.just(tableWithDataset), CreateCSVTableWithDataset.class) .exchange() diff --git a/fda-table-service/pom.xml b/fda-table-service/pom.xml index 663ff9a96e..ecd1cc2d1e 100644 --- a/fda-table-service/pom.xml +++ b/fda-table-service/pom.xml @@ -5,7 +5,7 @@ <packaging>pom</packaging> <modules> <module>api</module> - <module>rest-at.tuwien.service</module> + <module>rest-service</module> <module>services</module> <module>gateways</module> </modules> @@ -16,9 +16,9 @@ <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>at.tuwien</groupId> - <artifactId>fda-table-at.tuwien.service</artifactId> + <artifactId>fda-table-service</artifactId> <version>0.0.1-SNAPSHOT</version> - <name>fda-table-at.tuwien.service</name> + <name>fda-table-service</name> <description>Demo project for Spring Boot</description> <properties> diff --git a/fda-table-service/rest-service/pom.xml b/fda-table-service/rest-service/pom.xml index 1661d32170..c81f057c56 100644 --- a/fda-table-service/rest-service/pom.xml +++ b/fda-table-service/rest-service/pom.xml @@ -3,13 +3,13 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> - <artifactId>fda-table-at.tuwien.service</artifactId> + <artifactId>fda-table-service</artifactId> <groupId>at.tuwien</groupId> <version>0.0.1-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> - <artifactId>rest-at.tuwien.service</artifactId> + <artifactId>rest-service</artifactId> <dependencies> <dependency> <groupId>at.tuwien</groupId> diff --git a/fda-table-service/rest-service/src/main/resources/application-docker.properties b/fda-table-service/rest-service/src/main/resources/application-docker.properties index 8548aab2af..73adf26fd1 100644 --- a/fda-table-service/rest-service/src/main/resources/application-docker.properties +++ b/fda-table-service/rest-service/src/main/resources/application-docker.properties @@ -1,5 +1,5 @@ server.port=9094 -spring.application.name=fda-table-at.tuwien.service +spring.application.name=fda-table-service spring.main.banner-mode=off spring.cloud.loadbalancer.ribbon.enabled=false logging.level.root=warn diff --git a/fda-table-service/rest-service/src/main/resources/application.properties b/fda-table-service/rest-service/src/main/resources/application.properties index bcbf084c6b..e4d45d9008 100644 --- a/fda-table-service/rest-service/src/main/resources/application.properties +++ b/fda-table-service/rest-service/src/main/resources/application.properties @@ -1,4 +1,4 @@ -spring.application.name=fda-table-at.tuwien.service +spring.application.name=fda-table-service server.port=9094 eureka.client.serviceUrl.defaultZone=http://localhost:9090/eureka/ spring.servlet.multipart.max-file-size=50MB diff --git a/fda-table-service/services/pom.xml b/fda-table-service/services/pom.xml index b3f1ef252a..d2b073b5d3 100644 --- a/fda-table-service/services/pom.xml +++ b/fda-table-service/services/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> - <artifactId>fda-table-at.tuwien.service</artifactId> + <artifactId>fda-table-service</artifactId> <groupId>at.tuwien</groupId> <version>0.0.1-SNAPSHOT</version> </parent> diff --git a/hystrix-dashboard/Dockerfile b/hystrix-dashboard/Dockerfile index 2dcc35d4f8..49ab8f0772 100644 --- a/hystrix-dashboard/Dockerfile +++ b/hystrix-dashboard/Dockerfile @@ -12,6 +12,6 @@ RUN mvn -q clean package > /dev/null ###### SECOND STAGE ###### FROM openjdk:11-jre-slim as runtime -COPY --from=build ./rest-at.tuwien.service/target/hystrix-dashboard-*.jar ./hystrix.jar +COPY --from=build ./rest-service/target/hystrix-dashboard-*.jar ./hystrix.jar ENTRYPOINT ["java", "-jar", "./hystrix.jar"] -- GitLab