diff --git a/.docs/.swagger/api-analyse.yaml b/.docs/.swagger/api-analyse.yaml index 7dc467e7ada2e0228e95386aa2cc0a1f4a84934a..b59837ca7ee0c457b88c05ba9815bc3625ab40f0 100644 --- a/.docs/.swagger/api-analyse.yaml +++ b/.docs/.swagger/api-analyse.yaml @@ -12,7 +12,7 @@ info: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0 title: Database Repository Analyse Service API - version: __TAG__ + version: __APPVERSION__ openapi: 3.0.0 paths: /api/analyse/determinedt: diff --git a/.docs/.swagger/api-data.yaml b/.docs/.swagger/api-data.yaml index 1c50ab8f4615758054e5cee862e8bb91d232dba1..0b089a632761ddbebfcd7fe34c4a51b41d3573c5 100644 --- a/.docs/.swagger/api-data.yaml +++ b/.docs/.swagger/api-data.yaml @@ -8,7 +8,7 @@ info: license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0 - version: __TAG__ + version: __APPVERSION__ externalDocs: description: Sourcecode Documentation url: https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services diff --git a/.docs/.swagger/api-metadata.yaml b/.docs/.swagger/api-metadata.yaml index 272bf7ae5855555e9eb3e77b0135a6519e2cda35..185142b56e223473f237db623f01f7be43eed5a3 100644 --- a/.docs/.swagger/api-metadata.yaml +++ b/.docs/.swagger/api-metadata.yaml @@ -8,7 +8,7 @@ info: license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0 - version: __TAG__ + version: __APPVERSION__ externalDocs: description: Sourcecode Documentation url: https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services diff --git a/.docs/.swagger/api-search.yaml b/.docs/.swagger/api-search.yaml index 76522bb1b006e726d0142fe3fd82c22e5001bd60..0da98c6f1d4cc1c78d77911d60abaeefc7293f14 100644 --- a/.docs/.swagger/api-search.yaml +++ b/.docs/.swagger/api-search.yaml @@ -12,7 +12,7 @@ info: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0 title: Database Repository Search Service API - version: __TAG__ + version: __APPVERSION__ openapi: 3.0.0 paths: /api/search: diff --git a/.docs/.swagger/api-sidecar.yaml b/.docs/.swagger/api-sidecar.yaml index 8b62af9d7c473fd5853d95c70b5eea3f8c8d2ec3..d0b972b18d21ac50665ea946d9aa9dd86c45031b 100644 --- a/.docs/.swagger/api-sidecar.yaml +++ b/.docs/.swagger/api-sidecar.yaml @@ -21,7 +21,7 @@ info: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0 title: Database Repository Data Database sidecar API - version: __TAG__ + version: __APPVERSION__ openapi: 3.0.0 paths: /health: diff --git a/.docs/.swagger/api-upload.yaml b/.docs/.swagger/api-upload.yaml index 31456288721a4162c667a5448fe12712529e5a5f..b08342a5433dfef4b25bc211cd76c60e753778c4 100644 --- a/.docs/.swagger/api-upload.yaml +++ b/.docs/.swagger/api-upload.yaml @@ -8,7 +8,7 @@ info: license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0 - version: __TAG__ + version: __APPVERSION__ externalDocs: description: Sourcecode Documentation url: https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services diff --git a/.docs/system-databases-data.md b/.docs/system-databases-data.md index b5096f607805d2b0ea4b970414ae28855fe09839..7c31d5e967951b287104a29d0978f6f3b8577202 100644 --- a/.docs/system-databases-data.md +++ b/.docs/system-databases-data.md @@ -15,7 +15,7 @@ author: Martin Weise !!! debug "Debug Information" - Image: [`dbrepo/data-db-sidecar:__TAG__`](https://hub.docker.com/r/dbrepo/data-db-sidecar) + Image: [`dbrepo/data-db-sidecar:__APPVERSION__`](https://hub.docker.com/r/dbrepo/data-db-sidecar) * Ports: 3305/tcp * Swagger UI: `http://<hostname>:1080/swagger-ui/` <a href="../swagger/sidecar" target="_blank">:fontawesome-solid-square-up-right: view online</a> diff --git a/.docs/system-databases-metadata.md b/.docs/system-databases-metadata.md index e86ed67e71d0d607d772aad8a6840681e3057668..4ff9980f2538fda70ba5eebfd213ec1ceee07f53 100644 --- a/.docs/system-databases-metadata.md +++ b/.docs/system-databases-metadata.md @@ -8,7 +8,7 @@ author: Martin Weise !!! debug "Debug Information" - Image: [`dbrepo/metadata-db:__TAG__`](https://hub.docker.com/r/dbrepo/metadata-db) + Image: [`dbrepo/metadata-db:__APPVERSION__`](https://hub.docker.com/r/dbrepo/metadata-db) * Ports: 3306/tcp * JDBC: `jdbc://mariadb:<hostname>:3306` diff --git a/.docs/system-databases-search.md b/.docs/system-databases-search.md index 2761b47c0e99a52406fb873d48a19d02f856dde7..130347215b195972dd47d9d3dfaef9d63e103192 100644 --- a/.docs/system-databases-search.md +++ b/.docs/system-databases-search.md @@ -8,7 +8,7 @@ author: Martin Weise !!! debug "Debug Information" - Image: [`dbrepo/search-db:__TAG__`](https://hub.docker.com/r/dbrepo/search-db) + Image: [`dbrepo/search-db:__APPVERSION__`](https://hub.docker.com/r/dbrepo/search-db) * Ports: 9200/tcp diff --git a/.docs/system-other-ui.md b/.docs/system-other-ui.md index d693c6ffbb912c0127a01cacba59e2c21c08ee7c..955120bb3e1ed87978ae58bea95f6f51362c78c6 100644 --- a/.docs/system-other-ui.md +++ b/.docs/system-other-ui.md @@ -8,7 +8,7 @@ author: Martin Weise !!! debug "Debug Information" - Image: [`dbrepo/ui:__TAG__`](https://hub.docker.com/r/dbrepo/ui) + Image: [`dbrepo/ui:__APPVERSION__`](https://hub.docker.com/r/dbrepo/ui) * Ports: 3000/tcp, 9100/tcp * Prometheus: `http://<hostname>:9100/metrics` @@ -46,7 +46,7 @@ configured as well via the `dbrepo.config.json` values file. The important links ```json title="dbrepo.config.json" { "title": "Database Repository", - "version": "__TAG___DOCKER-COMPOSE", + "version": "__APPVERSION___DOCKER-COMPOSE", "logo": { "path": "/my_logo.png" }, @@ -65,7 +65,7 @@ if you use a Kubernetes deployment via ConfigMap and Volumes). ```yaml title="docker-compose.yml" services: dbrepo-ui: - image: docker.io/dbrepo/ui:__TAG__ + image: docker.io/dbrepo/ui:__APPVERSION__ volumes: - ./my_logo.png:/app/static/my_logo.png - ./dbrepo.conf.json:/app/dbrepo.conf.json diff --git a/.docs/system-services-analyse.md b/.docs/system-services-analyse.md index 49857e7dd9bfe53ee9ea9686e87d8b9636000492..2fb20690b56558901e2e1d0dfe2a9ed21a7a793b 100644 --- a/.docs/system-services-analyse.md +++ b/.docs/system-services-analyse.md @@ -8,7 +8,7 @@ author: Martin Weise !!! debug "Debug Information" - Image: [`dbrepo/analyse-service:__TAG__`](https://hub.docker.com/r/dbrepo/analyse-service) + Image: [`dbrepo/analyse-service:__APPVERSION__`](https://hub.docker.com/r/dbrepo/analyse-service) * Ports: 5000/tcp * Prometheus: `http://<hostname>:5000/metrics` diff --git a/.docs/system-services-authentication.md b/.docs/system-services-authentication.md index 20e451ff0c204c5042b76be36ad395e058679bcb..0f1d32f3291292f489f10042ac280f47debe2499 100644 --- a/.docs/system-services-authentication.md +++ b/.docs/system-services-authentication.md @@ -8,7 +8,7 @@ author: Martin Weise !!! debug "Debug Information" - Image: [`dbrepo/authentication-service:__TAG__`](https://hub.docker.com/r/dbrepo/authentication-service) + Image: [`dbrepo/authentication-service:__APPVERSION__`](https://hub.docker.com/r/dbrepo/authentication-service) * Ports: 8080/tcp * Health: `http://<hostname>:8080/api/auth/health` diff --git a/.docs/system-services-data.md b/.docs/system-services-data.md index 902f2169000063a059a305c98681e06e17154b3e..b8a1fe6263da6f236735206b7477c65adda84128 100644 --- a/.docs/system-services-data.md +++ b/.docs/system-services-data.md @@ -8,7 +8,7 @@ author: Martin Weise !!! debug "Debug Information" - Image: [`dbrepo/data-service:__TAG__`](https://hub.docker.com/r/dbrepo/data-service) + Image: [`dbrepo/data-service:__APPVERSION__`](https://hub.docker.com/r/dbrepo/data-service) * Ports: 9093/tcp * Info: `http://<hostname>:9093/actuator/info` diff --git a/.docs/system-services-metadata.md b/.docs/system-services-metadata.md index b564925b700e3444dcb048a89eb4aef697f1c23c..5c0e1d52001eac9f4c1833214a140aa7a953d639 100644 --- a/.docs/system-services-metadata.md +++ b/.docs/system-services-metadata.md @@ -8,7 +8,7 @@ author: Martin Weise !!! debug "Debug Information" - Image: [`dbrepo/metadata-service:__TAG__`](https://hub.docker.com/r/dbrepo/metadata-service) + Image: [`dbrepo/metadata-service:__APPVERSION__`](https://hub.docker.com/r/dbrepo/metadata-service) * Ports: 9099/tcp * Info: `http://<hostname>:9099/actuator/info` diff --git a/.docs/system-services-search.md b/.docs/system-services-search.md index deda610d4a791851233c395bfd8a748dcbc4d945..85bba96e9f38cbb5265fc7c1d2207d809d08ce44 100644 --- a/.docs/system-services-search.md +++ b/.docs/system-services-search.md @@ -8,7 +8,7 @@ author: Martin Weise !!! debug "Debug Information" - Image: [`dbrepo/search-service:__TAG__`](https://hub.docker.com/r/dbrepo/search-service) + Image: [`dbrepo/search-service:__APPVERSION__`](https://hub.docker.com/r/dbrepo/search-service) * Ports: 4000/tcp * Health: `http://<hostname>:4000/api/search/health` diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e54193d7392d734dded1499c631adbe4c3c1a2bd..f43d660740630968d91518bcbaa1892d473dbb2e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,5 @@ variables: HOSTALIASES: ./hosts - TAG: "${TAG:-latest}" TRIVY_NO_PROGRESS: "true" TRIVY_CACHE_DIR: ".trivycache/" DOCKER_HOST: "unix:///var/run/dind/docker.sock" @@ -549,7 +548,7 @@ build-api-latest: - apk add bash git - git fetch && git checkout master - bash .docs/.swagger/swagger-site.sh - - find ./site -type f -exec sed -i -e "s/__TAG__/latest/g" {} \; + - find ./site -type f -exec sed -i -e "s/__APPVERSION__/latest/g" {} \; - mkdir -p ./swagger/latest - cp -r ./site/* ./swagger/latest/ cache: @@ -596,7 +595,7 @@ build-api-1.4: - apk add bash git maven - git fetch && git checkout release-v1.4 - bash .docs/.swagger/swagger-site.sh - - find ./site -type f -exec sed -i -e "s/__TAG__/${APP_VERSION}/g" {} \; + - find ./site -type f -exec sed -i -e "s/__APPVERSION__/${APP_VERSION}/g" {} \; - mkdir -p ./swagger/${APP_VERSION} - cp -r ./site/* ./swagger/${APP_VERSION}/ cache: @@ -645,8 +644,7 @@ docs-latest: - git fetch && git checkout master - pip install -r ./requirements.txt - mkdir -p ./final/{latest,1.3} - - find . -type f -exec sed -i -e "s/__TAG__/latest/g" {} \; - - find . -type f -exec sed -i -e "s/__APPVERSION__/latest/g" {} \; + - find .docs/ -type f -exec sed -i -e "s/__APPVERSION__/latest/g" {} \; - mkdocs build && cp -r ./site ./final/latest - cp ./.docs/redirect.html ./final/index.html - cp ./.docs/redirect.html ./final/1.3/index.html @@ -706,8 +704,7 @@ docs-1.4: - pip install -r ./.docs/requirements.txt - wget https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/dev/.docs/overrides/main.html -O .docs/overrides/main.html -q - mkdir -p ./final - - find . -type f -exec sed -i -e "s/__TAG__/${APP_VERSION}/g" {} \; - - find . -type f -exec sed -i -e "s/__APPVERSION__/${APP_VERSION}/g" {} \; + - find .docs/ -type f -exec sed -i -e "s/__APPVERSION__/${APP_VERSION}/g" {} \; - mkdocs build && cp -r ./site ./final/${APP_VERSION} - cp -r ./swagger/${APP_VERSION} ./final/${APP_VERSION}/swagger cache: diff --git a/dbrepo-analyse-service/app.py b/dbrepo-analyse-service/app.py index d2d666b14d4887da0daf545318f968d5643ebc82..792a8240f8a753613acc450e4e6ee0c0a7b7369c 100644 --- a/dbrepo-analyse-service/app.py +++ b/dbrepo-analyse-service/app.py @@ -80,7 +80,7 @@ template = { "info": { "title": "Database Repository Analyse Service API", "description": "Service that analyses data structures", - "version": "__TAG__", + "version": "__APPVERSION__", "contact": { "name": "Prof. Andreas Rauber", "email": "andreas.rauber@tuwien.ac.at", diff --git a/dbrepo-data-db/sidecar/app.py b/dbrepo-data-db/sidecar/app.py index 82c409dca86d4119371decc1c8fed3c37cf569af..802a17b3b59033a2b8977937a5a1b80632bc7cf1 100644 --- a/dbrepo-data-db/sidecar/app.py +++ b/dbrepo-data-db/sidecar/app.py @@ -61,7 +61,7 @@ template = { "info": { "title": "Database Repository Data Database sidecar API", "description": "Sidecar that downloads the import .csv file", - "version": "__TAG__", + "version": "__APPVERSION__", "contact": { "name": "Prof. Andreas Rauber", "email": "andreas.rauber@tuwien.ac.at" diff --git a/dbrepo-data-service/rest-service/src/main/java/at/tuwien/config/SwaggerConfig.java b/dbrepo-data-service/rest-service/src/main/java/at/tuwien/config/SwaggerConfig.java index 0d9df429c11558e47f16ca9858dbb6b655565e09..f7b33979a78946d23cfea809a49a20f2d75bdb76 100644 --- a/dbrepo-data-service/rest-service/src/main/java/at/tuwien/config/SwaggerConfig.java +++ b/dbrepo-data-service/rest-service/src/main/java/at/tuwien/config/SwaggerConfig.java @@ -24,7 +24,7 @@ public class SwaggerConfig { .name("Prof. Andreas Rauber") .email("andreas.rauber@tuwien.ac.at")) .description("Service that manages the data") - .version("__TAG__") + .version("__APPVERSION__") .license(new License() .name("Apache 2.0") .url("https://www.apache.org/licenses/LICENSE-2.0"))) diff --git a/dbrepo-metadata-service/rest-service/src/main/java/at/tuwien/config/SwaggerConfig.java b/dbrepo-metadata-service/rest-service/src/main/java/at/tuwien/config/SwaggerConfig.java index 4354c5c374b1e1e02856aff9eae963d79c911ead..8aa287f9fd5c51548aec0ca20562cd07a84d335d 100644 --- a/dbrepo-metadata-service/rest-service/src/main/java/at/tuwien/config/SwaggerConfig.java +++ b/dbrepo-metadata-service/rest-service/src/main/java/at/tuwien/config/SwaggerConfig.java @@ -24,7 +24,7 @@ public class SwaggerConfig { .name("Prof. Andreas Rauber") .email("andreas.rauber@tuwien.ac.at")) .description("Service that manages the metadata") - .version("__TAG__") + .version("__APPVERSION__") .license(new License() .name("Apache 2.0") .url("https://www.apache.org/licenses/LICENSE-2.0"))) diff --git a/dbrepo-search-service/app/__init__.py b/dbrepo-search-service/app/__init__.py index 51e42b19a924d2320b5052260ab750ca332fd403..e090b89e1d966bfb61c0c511efd3a978d0fc8cff 100644 --- a/dbrepo-search-service/app/__init__.py +++ b/dbrepo-search-service/app/__init__.py @@ -66,7 +66,7 @@ def create_app(config_class=Config): "info": { "title": "Database Repository Search Service API", "description": "Service that searches the search database", - "version": "__TAG__", + "version": "latest", "contact": { "name": "Prof. Andreas Rauber", "email": "andreas.rauber@tuwien.ac.at"