You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2023/01/31 17:08:02 UTC

[airavata-data-catalog] 03/05: Adding PostgreSQL docker-compose script and README instructions

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airavata-data-catalog.git

commit 33bdc76af680871b800bf72baa5b16354e838d91
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Mon Jan 23 15:48:44 2023 -0500

    Adding PostgreSQL docker-compose script and README instructions
---
 README.md          | 25 +++++++++++++++++++++++++
 docker-compose.yml | 18 ++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/README.md b/README.md
new file mode 100644
index 0000000..0f57854
--- /dev/null
+++ b/README.md
@@ -0,0 +1,25 @@
+# Apache Airavata Data Catalog
+
+## Getting started
+
+Start the PostgreSQL database in a docker container
+
+```
+docker-compose up
+```
+
+Run the API server
+
+```
+mvn install
+cd data-catalog-api/server
+mvn spring-boot:run
+```
+
+Run the API client
+
+```
+mvn install
+cd data-catalog-api/client
+mvn exec:java -Dexec.mainClass=org.apache.airavata.datacatalog.api.client.DataCatalogAPIClient
+```
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..d7d84d8
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,18 @@
+# Use postgres/example user/password credentials
+version: "3.1"
+
+services:
+  db:
+    image: postgres
+    restart: always
+    environment:
+      POSTGRES_PASSWORD: example
+      POSTGRES_DB: data_catalog
+    ports:
+      - 5432:5432
+
+  adminer:
+    image: adminer
+    restart: always
+    ports:
+      - 8080:8080