Skip to content
Snippets Groups Projects
Verified Commit 286d19d6 authored by Martin Weise's avatar Martin Weise
Browse files
parent dedc5427
No related branches found
No related tags found
1 merge request!411WIP
Showing
with 1769 additions and 42 deletions
...@@ -21,7 +21,7 @@ numpy = "*" ...@@ -21,7 +21,7 @@ numpy = "*"
pandas = "*" pandas = "*"
minio = "*" minio = "*"
pydantic = "*" pydantic = "*"
dbrepo = {path = "./lib/dbrepo-1.8.2.tar.gz"} dbrepo = {path = "./lib/dbrepo-1.8.2rc3.tar.gz"}
opensearch-py = "*" opensearch-py = "*"
[dev-packages] [dev-packages]
......
{ {
"_meta": { "_meta": {
"hash": { "hash": {
"sha256": "348b4dab04b3c38faa04d0f821ac6e3fb0005b7a042a8475ec39f673027c48ce" "sha256": "6aeb33bd0b0b34011a467a6acedfd84c016d1bfd7482063b6fa5b0738d223a2a"
}, },
"pipfile-spec": 6, "pipfile-spec": 6,
"requires": { "requires": {
...@@ -321,10 +321,10 @@ ...@@ -321,10 +321,10 @@
}, },
"dbrepo": { "dbrepo": {
"hashes": [ "hashes": [
"sha256:33555e6ea0d799cab0a67d0ce33f97bf2b890f45b997cc902ebdd835d5309094" "sha256:c93f6aacbae7b03d97d8e7d7725e6c5af4ae5af085b7dce3688953f6d9659a4b"
], ],
"path": "./lib/dbrepo-1.8.2.tar.gz", "path": "./lib/dbrepo-1.8.2rc3.tar.gz",
"version": "==1.8.2" "version": "==1.8.2rc3"
}, },
"events": { "events": {
"hashes": [ "hashes": [
...@@ -1164,11 +1164,11 @@ ...@@ -1164,11 +1164,11 @@
}, },
"setuptools": { "setuptools": {
"hashes": [ "hashes": [
"sha256:9828422e7541213b0aacb6e10bbf9dd8febeaa45a48570e09b6d100e063fc9f9", "sha256:128ce7b8f33c3079fd1b067ecbb4051a66e8526e7b65f6cec075dfc650ddfa88",
"sha256:b9ab3a104bedb292323f53797b00864e10e434a3ab3906813a7169e4745b912a" "sha256:e147c0549f27767ba362f9da434eab9c5dc0045d5304feb602a0af001089fc51"
], ],
"markers": "python_version >= '3.9'", "markers": "python_version >= '3.9'",
"version": "==79.0.0" "version": "==79.0.1"
}, },
"six": { "six": {
"hashes": [ "hashes": [
......
File deleted
File added
...@@ -12,7 +12,7 @@ prometheus-flask-exporter = "*" ...@@ -12,7 +12,7 @@ prometheus-flask-exporter = "*"
python-dotenv = "~=1.0" python-dotenv = "~=1.0"
jwt = "~=1.3" jwt = "~=1.3"
pytest = "*" pytest = "*"
dbrepo = {path = "./lib/dbrepo-1.8.2.tar.gz"} dbrepo = {path = "./lib/dbrepo-1.8.2rc3.tar.gz"}
gunicorn = "*" gunicorn = "*"
pydantic = "*" pydantic = "*"
flask_httpauth = "*" flask_httpauth = "*"
......
This diff is collapsed.
File added
File added
...@@ -7,6 +7,9 @@ target/ ...@@ -7,6 +7,9 @@ target/
### Environment ### ### Environment ###
.env .env
### local repo ###
lib/at/
### Generated ### ### Generated ###
ready ready
mapping.xml mapping.xml
......
###### FIRST STAGE ###### ###### FIRST STAGE ######
FROM maven:3-amazoncorretto-17 AS build FROM --platform=$BUILDPLATFORM maven:3-amazoncorretto-17 AS build
LABEL org.opencontainers.image.authors="martin.weise@tuwien.ac.at" LABEL org.opencontainers.image.authors="martin.weise@tuwien.ac.at"
COPY ./pom.xml ./ COPY ./pom.xml ./
RUN mvn -fn dependency:go-offline RUN mvn -fn dependency:go-offline
COPY ./lib ./lib
COPY ./querystore ./querystore COPY ./querystore ./querystore
COPY ./report ./report COPY ./report ./report
COPY ./rest-service ./rest-service COPY ./rest-service ./rest-service
COPY ./services ./services COPY ./services ./services
# Make sure it compiles # Make sure it compiles
RUN mvn -fn clean package -DskipTests RUN mvn -q clean package -DskipTests
###### SECOND STAGE ###### ###### SECOND STAGE ######
FROM amazoncorretto:17-alpine3.21 AS runtime FROM --platform=$BUILDPLATFORM amazoncorretto:17-alpine3.21 AS runtime
LABEL org.opencontainers.image.authors="martin.weise@tuwien.ac.at" LABEL org.opencontainers.image.authors="martin.weise@tuwien.ac.at"
RUN apk --no-cache add \ RUN apk --no-cache add \
......
# Data Service # Data Service
## Build
Before testing, it is recommended to (re-)build the `MapStruct` mappers in case they were modified using the `package`
target:
```shell
mvn clean package
```
## Test ## Test
Run all unit and integration tests and create an HTML+TXT coverage report located in the `report` module: Run all unit and integration tests and create an HTML+TXT coverage report located in the `report` module:
......
...@@ -3,10 +3,11 @@ ...@@ -3,10 +3,11 @@
<groupId>at.ac.tuwien.ifs.dbrepo</groupId> <groupId>at.ac.tuwien.ifs.dbrepo</groupId>
<artifactId>dbrepo-core</artifactId> <artifactId>dbrepo-core</artifactId>
<versioning> <versioning>
<release>1.8.1</release> <release>1.8.2</release>
<versions> <versions>
<version>1.8.1</version> <version>1.8.1</version>
<version>1.8.2</version>
</versions> </versions>
<lastUpdated>20250422121915</lastUpdated> <lastUpdated>20250424042157</lastUpdated>
</versioning> </versioning>
</metadata> </metadata>
9c8ded18aad1ff29f91e6ea5b11e33d4 535ccfe9a81ec5cacace73e5fda12e7f
\ No newline at end of file \ No newline at end of file
8784dd005d25156e9599b598deabb8aa15b7a8c1 4c42fa159ec7959fbfc3de77b8b0307537bff1f1
\ No newline at end of file \ No newline at end of file
...@@ -13,11 +13,11 @@ ...@@ -13,11 +13,11 @@
<url>https://www.tuwien.ac.at</url> <url>https://www.tuwien.ac.at</url>
</organization> </organization>
<groupId>at.ac.tuwien.ac.at.ifs.dbrepo</groupId> <groupId>at.ac.tuwien.ifs.dbrepo</groupId>
<artifactId>dbrepo-data-service</artifactId> <artifactId>data-service</artifactId>
<name>dbrepo-data-service</name>
<version>1.8.2</version> <version>1.8.2</version>
<name>data-service</name>
<description>Service that manages the data</description> <description>Service that manages the data</description>
<packaging>pom</packaging> <packaging>pom</packaging>
...@@ -96,11 +96,7 @@ ...@@ -96,11 +96,7 @@
<dependency> <dependency>
<groupId>at.ac.tuwien.ifs.dbrepo</groupId> <groupId>at.ac.tuwien.ifs.dbrepo</groupId>
<artifactId>dbrepo-core</artifactId> <artifactId>dbrepo-core</artifactId>
<version>${project.version}</version> <version>1.8.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency> </dependency>
<!-- Spark --> <!-- Spark -->
<dependency> <dependency>
...@@ -330,6 +326,16 @@ ...@@ -330,6 +326,16 @@
</plugins> </plugins>
</build> </build>
<repositories>
<repository>
<id>dbrepo-maven-repo</id>
<url>file:///${project.basedir}/lib</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<licenses> <licenses>
<license> <license>
<name>Apache-2.0</name> <name>Apache-2.0</name>
......
...@@ -4,13 +4,13 @@ ...@@ -4,13 +4,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>at.ac.tuwien.ac.at.ifs.dbrepo</groupId> <groupId>at.ac.tuwien.ifs.dbrepo</groupId>
<artifactId>dbrepo-data-service</artifactId> <artifactId>data-service</artifactId>
<version>1.8.2</version> <version>1.8.2</version>
</parent> </parent>
<artifactId>dbrepo-data-service-querystore</artifactId> <name>querystore</name>
<name>dbrepo-data-service-querystore</name> <artifactId>querystore</artifactId>
<version>1.8.2</version> <version>1.8.2</version>
<dependencies/> <dependencies/>
......
package at.ac.tuwien.ac.at.ifs.dbrepo.querystore; package at.ac.tuwien.ifs.dbrepo.querystore;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*; import lombok.*;
......
...@@ -4,29 +4,30 @@ ...@@ -4,29 +4,30 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>at.ac.tuwien.ac.at.ifs.dbrepo</groupId> <groupId>at.ac.tuwien.ifs.dbrepo</groupId>
<artifactId>dbrepo-data-service</artifactId> <artifactId>data-service</artifactId>
<version>1.8.2</version> <version>1.8.2</version>
</parent> </parent>
<artifactId>report</artifactId> <name>report</name>
<name>dbrepo-data-service-report</name>
<version>1.8.2</version>
<description> <description>
This module is only intended for the pipeline coverage report. See the detailed report in the This module is only intended for the pipeline coverage report. See the detailed report in the
respective modules respective modules
</description> </description>
<artifactId>report</artifactId>
<version>1.8.2</version>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>at.ac.tuwien.ac.at.ifs.dbrepo</groupId> <groupId>at.ac.tuwien.ifs.dbrepo</groupId>
<artifactId>rest-service</artifactId> <artifactId>rest-service</artifactId>
<version>${project.version}</version> <version>1.8.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>at.ac.tuwien.ac.at.ifs.dbrepo</groupId> <groupId>at.ac.tuwien.ifs.dbrepo</groupId>
<artifactId>services</artifactId> <artifactId>services</artifactId>
<version>${project.version}</version> <version>1.8.2</version>
</dependency> </dependency>
</dependencies> </dependencies>
......
...@@ -4,18 +4,18 @@ ...@@ -4,18 +4,18 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>at.ac.tuwien.ac.at.ifs.dbrepo</groupId> <groupId>at.ac.tuwien.ifs.dbrepo</groupId>
<artifactId>dbrepo-data-service</artifactId> <artifactId>data-service</artifactId>
<version>1.8.2</version> <version>1.8.2</version>
</parent> </parent>
<name>rest-service</name>
<artifactId>rest-service</artifactId> <artifactId>rest-service</artifactId>
<name>dbrepo-data-service-rest-service</name>
<version>1.8.2</version> <version>1.8.2</version>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>at.ac.tuwien.ac.at.ifs.dbrepo</groupId> <groupId>at.ac.tuwien.ifs.dbrepo</groupId>
<artifactId>services</artifactId> <artifactId>services</artifactId>
<version>1.8.2</version> <version>1.8.2</version>
</dependency> </dependency>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment