Skip to content

Commit

Permalink
tools: Add Akash deployment configuration (#1736)
Browse files Browse the repository at this point in the history
## Relevant issue(s)

Resolves #1659
Resolves #1378 

## Description

This PR adds an Akash deployment template to DefraDB
`tools/cloud/akash`.

Akash deployment URI:
http://0i8se95qgletbeq16atqulhhc8.ingress.midwesternwireless.com/api/v0

## Tasks

- [x] I made sure the code is well commented, particularly
hard-to-understand areas.
- [x] I made sure the repository-held documentation is changed
accordingly.
- [x] I made sure the pull request title adheres to the conventional
commit style (the subset used in the project can be found in
[tools/configs/chglog/config.yml](tools/configs/chglog/config.yml)).
- [x] I made sure to discuss its limitations such as threats to
validity, vulnerability to mistake and misuse, robustness to
invalidation of assumptions, resource requirements, ...

## How has this been tested?

Manual deployment via Cloudmos.

Specify the platform(s) on which this was tested:
N/A
  • Loading branch information
nasdf authored Aug 11, 2023
1 parent 480f1a9 commit 359e949
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/cloud/akash/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 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/).

View the source code on [GitHub](https://github.com/sourcenetwork/defradb).
51 changes: 51 additions & 0 deletions tools/cloud/akash/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
version: "2.0"

services:
defradb:
image: sourcenetwork/defradb:v0.6.0
args:
- start
- --url=0.0.0.0:9181
expose:
- port: 9161
as: 9161
to:
- global: true
- port: 9171
as: 9171
to:
- global: true
- port: 9181
as: 80
to:
- global: true

profiles:
compute:
defradb:
resources:
cpu:
units: 1.0
memory:
size: 1Gi
storage:
size: 1Gi
placement:
akash:
attributes:
host: akash
signedBy:
anyOf:
- "akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63"
- "akash18qa2a2ltfyvkyj0ggj3hkvuj6twzyumuaru9s4"
pricing:
defradb:
denom: uakt
amount: 10000

deployment:
defradb:
akash:
profile: defradb
count: 1

0 comments on commit 359e949

Please sign in to comment.