From a98e9115fbd5eda0fd6b2574f9881f433417e662 Mon Sep 17 00:00:00 2001 From: Keenan Nemetz Date: Wed, 19 Jul 2023 11:11:58 -0700 Subject: [PATCH 1/6] add akash deploy.yml --- tools/cloud/akash/deploy.yml | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 tools/cloud/akash/deploy.yml diff --git a/tools/cloud/akash/deploy.yml b/tools/cloud/akash/deploy.yml new file mode 100644 index 0000000000..17c44aa161 --- /dev/null +++ b/tools/cloud/akash/deploy.yml @@ -0,0 +1,45 @@ +--- +version: "2.0" + +services: + defra-db: + image: TODO + expose: + - port: 9161 + to: + - global: true + - port: 9171 + to: + - global: true + - port: 9181 + to: + - global: true + +profiles: + compute: + defra-db: + resources: + cpu: + units: 1.0 + memory: + size: 4Gi + storage: + size: 1Gi + placement: + akash: + attributes: + host: akash + signedBy: + anyOf: + - "akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63" + - "akash18qa2a2ltfyvkyj0ggj3hkvuj6twzyumuaru9s4" + pricing: + defra-db: + denom: uakt + amount: 10000 + +deployment: + defra-db: + akash: + profile: defra-db + count: 1 \ No newline at end of file From 49edf1da5fdcea2d21ae404e15cd019d96459c3b Mon Sep 17 00:00:00 2001 From: Keenan Nemetz Date: Mon, 24 Jul 2023 15:45:53 -0700 Subject: [PATCH 2/6] update Akash deployment --- tools/cloud/akash/deploy.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tools/cloud/akash/deploy.yml b/tools/cloud/akash/deploy.yml index 17c44aa161..1970ba9a2a 100644 --- a/tools/cloud/akash/deploy.yml +++ b/tools/cloud/akash/deploy.yml @@ -2,22 +2,25 @@ version: "2.0" services: - defra-db: - image: TODO + defradb: + image: sourcenetwork/defradb:pr-1684 expose: - port: 9161 + as: 9161 to: - global: true - port: 9171 + as: 9171 to: - global: true - port: 9181 + as: 9181 to: - global: true profiles: compute: - defra-db: + defradb: resources: cpu: units: 1.0 @@ -34,12 +37,12 @@ profiles: - "akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63" - "akash18qa2a2ltfyvkyj0ggj3hkvuj6twzyumuaru9s4" pricing: - defra-db: + defradb: denom: uakt amount: 10000 deployment: - defra-db: + defradb: akash: - profile: defra-db + profile: defradb count: 1 \ No newline at end of file From 6063d68fd3ad64e2d717cc8b86af3631c56f80c8 Mon Sep 17 00:00:00 2001 From: Keenan Nemetz Date: Mon, 31 Jul 2023 10:57:21 -0700 Subject: [PATCH 3/6] update akash deploy and add readme --- tools/cloud/akash/README.md | 9 +++++++++ tools/cloud/akash/deploy.yml | 8 +++++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 tools/cloud/akash/README.md diff --git a/tools/cloud/akash/README.md b/tools/cloud/akash/README.md new file mode 100644 index 0000000000..f54625d618 --- /dev/null +++ b/tools/cloud/akash/README.md @@ -0,0 +1,9 @@ +# DefraDB + +DefraDB is a user-centric database that prioritizes data ownership, personal privacy, and information security. Its data model, powered by the convergence of [MerkleCRDTs](https://arxiv.org/pdf/2004.00107.pdf) and the content-addressability of [IPLD](https://docs.ipld.io/), enables a multi-write-master architecture. It features [DQL](https://docs.source.network/references/query-specification/query-language-overview), a query language compatible with GraphQL but providing extra convenience. By leveraging peer-to-peer networking it can be deployed nimbly in novel topologies. Access control is determined by a relationship-based DSL, supporting document or field-level policies, secured by the SourceHub network. DefraDB is a core part of the [Source technologies](https://source.network/) that enable new paradigms of decentralized data and access-control management, user-centric apps, data trustworthiness, and much more. + +Read the documentation on [docs.source.network](https://docs.source.network/). + +## Setup + +After successful deployment the API will be available on port 80. You will need to use the ingress URI for your deployment (example: http://e5ma9cph8pe05ee2va3e9ai9hg.ingress.hurricane.akash.pub/). \ No newline at end of file diff --git a/tools/cloud/akash/deploy.yml b/tools/cloud/akash/deploy.yml index 1970ba9a2a..8bd662abe8 100644 --- a/tools/cloud/akash/deploy.yml +++ b/tools/cloud/akash/deploy.yml @@ -3,7 +3,9 @@ version: "2.0" services: defradb: - image: sourcenetwork/defradb:pr-1684 + image: sourcenetwork/defradb:v0.6.0 + args: + - start expose: - port: 9161 as: 9161 @@ -14,7 +16,7 @@ services: to: - global: true - port: 9181 - as: 9181 + as: 80 to: - global: true @@ -25,7 +27,7 @@ profiles: cpu: units: 1.0 memory: - size: 4Gi + size: 1Gi storage: size: 1Gi placement: From bca0f5862d90db15044493911ff36de85cd51a08 Mon Sep 17 00:00:00 2001 From: Keenan Nemetz Date: Mon, 31 Jul 2023 11:26:01 -0700 Subject: [PATCH 4/6] update akash deploy --- tools/cloud/akash/README.md | 4 ---- tools/cloud/akash/deploy.yml | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/cloud/akash/README.md b/tools/cloud/akash/README.md index f54625d618..899c66925e 100644 --- a/tools/cloud/akash/README.md +++ b/tools/cloud/akash/README.md @@ -3,7 +3,3 @@ DefraDB is a user-centric database that prioritizes data ownership, personal privacy, and information security. Its data model, powered by the convergence of [MerkleCRDTs](https://arxiv.org/pdf/2004.00107.pdf) and the content-addressability of [IPLD](https://docs.ipld.io/), enables a multi-write-master architecture. It features [DQL](https://docs.source.network/references/query-specification/query-language-overview), a query language compatible with GraphQL but providing extra convenience. By leveraging peer-to-peer networking it can be deployed nimbly in novel topologies. Access control is determined by a relationship-based DSL, supporting document or field-level policies, secured by the SourceHub network. DefraDB is a core part of the [Source technologies](https://source.network/) that enable new paradigms of decentralized data and access-control management, user-centric apps, data trustworthiness, and much more. Read the documentation on [docs.source.network](https://docs.source.network/). - -## Setup - -After successful deployment the API will be available on port 80. You will need to use the ingress URI for your deployment (example: http://e5ma9cph8pe05ee2va3e9ai9hg.ingress.hurricane.akash.pub/). \ No newline at end of file diff --git a/tools/cloud/akash/deploy.yml b/tools/cloud/akash/deploy.yml index 8bd662abe8..c6f7070f98 100644 --- a/tools/cloud/akash/deploy.yml +++ b/tools/cloud/akash/deploy.yml @@ -5,7 +5,8 @@ services: defradb: image: sourcenetwork/defradb:v0.6.0 args: - - start + - start + - --url=0.0.0.0:9181 expose: - port: 9161 as: 9161 From 226962c26f742d8a4e9faae0f2c6925305175b8e Mon Sep 17 00:00:00 2001 From: Keenan Nemetz Date: Mon, 31 Jul 2023 11:46:27 -0700 Subject: [PATCH 5/6] rename to deploy.yml to deploy.yaml --- tools/cloud/akash/{deploy.yml => deploy.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tools/cloud/akash/{deploy.yml => deploy.yaml} (100%) diff --git a/tools/cloud/akash/deploy.yml b/tools/cloud/akash/deploy.yaml similarity index 100% rename from tools/cloud/akash/deploy.yml rename to tools/cloud/akash/deploy.yaml From f881cf1fe8cf9687dd8be2d924c892d3c08ba1d2 Mon Sep 17 00:00:00 2001 From: Keenan Nemetz Date: Thu, 3 Aug 2023 09:31:39 -0700 Subject: [PATCH 6/6] add GitHub link to readme --- tools/cloud/akash/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/cloud/akash/README.md b/tools/cloud/akash/README.md index 899c66925e..0c69ebfbdf 100644 --- a/tools/cloud/akash/README.md +++ b/tools/cloud/akash/README.md @@ -3,3 +3,5 @@ DefraDB is a user-centric database that prioritizes data ownership, personal privacy, and information security. Its data model, powered by the convergence of [MerkleCRDTs](https://arxiv.org/pdf/2004.00107.pdf) and the content-addressability of [IPLD](https://docs.ipld.io/), enables a multi-write-master architecture. It features [DQL](https://docs.source.network/references/query-specification/query-language-overview), a query language compatible with GraphQL but providing extra convenience. By leveraging peer-to-peer networking it can be deployed nimbly in novel topologies. Access control is determined by a relationship-based DSL, supporting document or field-level policies, secured by the SourceHub network. DefraDB is a core part of the [Source technologies](https://source.network/) that enable new paradigms of decentralized data and access-control management, user-centric apps, data trustworthiness, and much more. Read the documentation on [docs.source.network](https://docs.source.network/). + +View the source code on [GitHub](https://github.com/sourcenetwork/defradb).