Skip to content

Commit

Permalink
Update Marlowe profile and chart
Browse files Browse the repository at this point in the history
  • Loading branch information
jhbertra committed Mar 16, 2023
1 parent 8b39946 commit 79b7d7e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
9 changes: 5 additions & 4 deletions nix/marlowe/hydrationProfiles.nix
Expand Up @@ -5,7 +5,7 @@
workload-policies-marlowe-runtime = {
tf.hydrate-cluster.configuration.locals.policies = {
consul.marlowe-runtime = {
# chainseek also needs to read the cardano config
# chain-indexer also needs to read the cardano config
key_prefix."config/cardano" = {
policy = "read";
intentions = "deny";
Expand All @@ -16,9 +16,10 @@
};
};
vault.marlowe-runtime = {
# Only chainseek task in marlowe-runtime needs secrets to access db
path."kv/data/chainseek/*".capabilities = ["read" "list"];
path."kv/metadata/chainseek/*".capabilities = ["read" "list"];
path."kv/data/chainsync/*".capabilities = ["read" "list"];
path."kv/metadata/chainsync/*".capabilities = ["read" "list"];
path."kv/data/marlowe/*".capabilities = ["read" "list"];
path."kv/metadata/marlowe/*".capabilities = ["read" "list"];
path."consul/creds/marlowe-runtime".capabilities = ["read"];
};
};
Expand Down
35 changes: 20 additions & 15 deletions nix/marlowe/nomadEnvs/default.nix
@@ -1,25 +1,30 @@
{inputs}: let
inherit (inputs) self data-merge cardano-world nixpkgs bitte-cells;
inherit (inputs) self data-merge cardano-world nixpkgs bitte-cells cells;

inherit (cardano-world) cardano;
inherit (bitte-cells) vector;
inherit (data-merge) merge append;
inherit (nixpkgs.lib) genAttrs head splitString concatStringsSep toUpper replaceStrings;

inherit (self) nomadTasks;
inherit (cells.cloud.constants) baseDomain;

# ports to configure for each task
servicePorts = [
"chainseekd"
"chainseekd_query"
"chainseekd_command"
"history"
"history_query"
"history_sync"
"discovery"
"discovery_query"
"discovery_sync"
"chain_indexer_http"
"marlowe_chain_sync"
"marlowe_chain_sync_query"
"marlowe_chain_sync_command"
"chain_sync_http"
"indexer_http"
"marlowe_sync"
"marlowe_header_sync"
"marlowe_query"
"sync_http"
"tx"
"tx_http"
"proxy"
"proxy_http"
];

# environments to configure the runtime for
Expand All @@ -39,8 +44,7 @@

id = jobname;
namespace = "marlowe";
# TODO: get base domain from dapps-world if its an input to this flake
domain = "${jobname}.dapps.aws.iohkdev.io";
domain = "${jobname}.${baseDomain}";
scaling = 1;

datacenters = ["us-east-1" "eu-central-1" "eu-west-1"];
Expand Down Expand Up @@ -103,10 +107,11 @@
inherit
(nomadTasks)
chain-indexer
chainseekd
marlowe-history
marlowe-discovery
marlowe-chain-sync
marlowe-indexer
marlowe-sync
marlowe-tx
marlowe-proxy
;
};
}
Expand Down

0 comments on commit 79b7d7e

Please sign in to comment.