From 2bcb0456ca28cdae678a955da5eb7e98d18305fc Mon Sep 17 00:00:00 2001
From: Martin Weise <martin.weise@tuwien.ac.at>
Date: Thu, 12 Jan 2023 12:24:25 +0100
Subject: [PATCH] Added metadata service

---
 dockerhub/_header.md              |  5 +++-
 dockerhub/fda-metadata-service.md | 39 +++++++++++++++++++++++++++++++
 dockerhub/release.py              |  2 +-
 3 files changed, 44 insertions(+), 2 deletions(-)
 create mode 100644 dockerhub/fda-metadata-service.md

diff --git a/dockerhub/_header.md b/dockerhub/_header.md
index cc8312a..9395661 100644
--- a/dockerhub/_header.md
+++ b/dockerhub/_header.md
@@ -6,11 +6,14 @@
 
 * **Where to get help**:
 
-  [the official documentation](https://dbrepo-docs.ossdip.at/), [IJDC'22 paper](https://doi.org/10.2218/ijdc.v17i1.825),
+  [the official documentation](https://dbrepo-docs.ossdip.at/),
+  [ICoDSE'22 paper](https://doi.org/10.1109/ICoDSE56892.2022.9971958),
+  [IJDC'22 paper](https://doi.org/10.2218/ijdc.v17i1.825),
   [iPRES'21 paper](https://doi.org/10.17605/OSF.IO/B7NX5)
 
 # Supported tags and respective `Dockerfile` links
 
+* [`1.2`](https://hub.docker.com/repository/docker/dbrepo/REPOSITORY/tags?page=1&ordering=last_updated&name=1.2)
 * [`1.1`](https://hub.docker.com/repository/docker/dbrepo/REPOSITORY/tags?page=1&ordering=last_updated&name=1.1)
 * [`latest`](https://hub.docker.com/repository/docker/dbrepo/REPOSITORY/tags?page=1&ordering=last_updated&name=latest)
 
diff --git a/dockerhub/fda-metadata-service.md b/dockerhub/fda-metadata-service.md
new file mode 100644
index 0000000..0f005e3
--- /dev/null
+++ b/dockerhub/fda-metadata-service.md
@@ -0,0 +1,39 @@
+# How to use this image
+
+```console
+$ docker run -p 9099:9099 -e SPRING_PROFILES_ACTIVE=docker
+```
+
+## Customization
+
+Change the default behavior by setting the following environment variables to different values:
+
+* `METADATA_DB`, default: `fda`
+
+  The [Metadata Database](https://hub.docker.com/r/dbrepo/metadata-db) database name.
+
+* `METADATA_USERNAME`, default: `root`
+
+  The [Metadata Database](https://hub.docker.com/r/dbrepo/metadata-db) database username.
+
+* `METADATA_PASSWORD`, default: `mariadb`
+
+  The [Metadata Database](https://hub.docker.com/r/dbrepo/metadata-db) database password.
+
+* `LOG_LEVEL`, default: `debug`
+
+  The minimum logging level for the service.
+
+## Swagger Endpoints
+
+* **OpenAPI**:
+
+  http://localhost:9099/swagger-ui/index.html
+
+* **OpenAPI `.json`**:
+  
+  http://localhost:9099/v3/api-docs/
+
+* **OpenAPI `.yaml`**:
+
+  http://localhost:9099/v3/api-docs.yaml
diff --git a/dockerhub/release.py b/dockerhub/release.py
index e8a2872..b99fc19 100755
--- a/dockerhub/release.py
+++ b/dockerhub/release.py
@@ -9,6 +9,6 @@ dockerhub = Dockerhub()
 if __name__ == "__main__":
     for component in ["analyse-service", "authentication-service", "broker-service", "container-service",
                       "database-service", "discovery-service", "gateway-service", "identifier-service",
-                      "metadata-db", "query-service", "table-service", "ui", "semantics-service"]:
+                      "metadata-db", "metadata-service", "query-service", "table-service", "ui", "semantics-service"]:
         response = dockerhub.modify_description(component)
         print(response)
-- 
GitLab