Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-package into refactor-config-file-development
  • Loading branch information
abhiyana committed Nov 29, 2023
2 parents 8930462 + 54ce67f commit 5b54431
Show file tree
Hide file tree
Showing 66 changed files with 53 additions and 3,418 deletions.
9 changes: 6 additions & 3 deletions package_io/constant.star
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@ CURL_JQ_IMAGE = "badouralix/curl-jq"
NODE_IMAGE = "node:21.1"
PARA_SLOT_REGISTER_SERVICE_NAME = "para-slot-registration"
BINARY_COMMAND_CHAINS = ["manta", "khala", "phala", "clover"]
NO_WS_PORT = ["acala", "frequency", "moonbeam", "karura", "ajuna", "bajun", "centrifuge", "moonsama", "encointer", "moonriver"]
NO_WS_PORT = ["acala", "frequency", "moonbeam", "karura", "ajuna", "bajun", "centrifuge", "moonsama", "encointer", "moonriver", "altair"]

DIFFERENT_IMAGES_FOR_MAINNET = {
"centrifuge": "centrifugeio/centrifuge-chain:main-latest",
"altair": "centrifugeio/centrifuge-chain:main-latest",
"frequency": "frequencychain/parachain-node-mainnet",
"acala": "acala/acala-node:latest",
}
DIFFERENT_IMAGES_FOR_TESTNET = {
"frequency": "frequencychain/parachain-node-rococo",
"centrifuge": "centrifugeio/centrifuge-chain:main-latest",
"karura": "acala/mandala-node:latest",
"clover": "cloverio/clover-iris:0.1.15"
"clover": "cloverio/clover-iris:0.1.15",
"subsocial": "dappforce/subsocial-parachain:latest",
"altair": "centrifugeio/centrifuge-chain:main-latest",
}

CHAIN_COMMAND = ["manta", "moonsama", "interlay", "kintsugi-btc"]
CHAIN_COMMAND = ["manta", "moonsama", "interlay", "kintsugi-btc", "polkadex", "centrifuge", "altair"]
25 changes: 13 additions & 12 deletions package_io/promethues.star
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,20 @@ def get_config(config_files_artifact_name):
def new_config_template_data(plan, args, service_details):
metrics_jobs = []

relay_nodes = args["relaychain"]["nodes"]
for node in relay_nodes:
if node["prometheus"] == True:
endpoint = "{0}:{1}".format(service_details["relaychains"][0]["service_details"].ip_address, service_details["relaychains"][0]["service_details"].ports["prometheus"].number)
if len(args["relaychain"]) != 0:
relay_nodes = args["relaychain"]["nodes"]
for node in relay_nodes:
if node["prometheus"] == True:
endpoint = "{0}:{1}".format(service_details["relaychains"][0]["service_details"].ip_address, service_details["relaychains"][0]["service_details"].ports["prometheus"].number)

metrics_jobs.append(
new_metrics_job(
job_name = service_details["relaychains"][0]["service_name"],
endpoint = endpoint,
scrape_interval = "5s",
),
)
plan.print(node["prometheus"])
metrics_jobs.append(
new_metrics_job(
job_name = service_details["relaychains"][0]["service_name"],
endpoint = endpoint,
scrape_interval = "5s",
),
)
plan.print(node["prometheus"])

for parachain in args["para"]:
for node in parachain["nodes"]:
Expand Down
341 changes: 0 additions & 341 deletions parachain/bifrost-raw.json

This file was deleted.

1,400 changes: 0 additions & 1,400 deletions parachain/bifrost.json

This file was deleted.

29 changes: 0 additions & 29 deletions parachain/local-setup/acala.star

This file was deleted.

57 changes: 0 additions & 57 deletions parachain/local-setup/ajuna.star

This file was deleted.

31 changes: 0 additions & 31 deletions parachain/local-setup/altair.star

This file was deleted.

15 changes: 0 additions & 15 deletions parachain/local-setup/bifrost.star

This file was deleted.

26 changes: 0 additions & 26 deletions parachain/local-setup/centrifuge.star

This file was deleted.

30 changes: 0 additions & 30 deletions parachain/local-setup/clover.star

This file was deleted.

19 changes: 0 additions & 19 deletions parachain/local-setup/encointer.star

This file was deleted.

15 changes: 0 additions & 15 deletions parachain/local-setup/frequency.star

This file was deleted.

19 changes: 0 additions & 19 deletions parachain/local-setup/integritee.star

This file was deleted.

15 changes: 0 additions & 15 deletions parachain/local-setup/interlay.star

This file was deleted.

26 changes: 0 additions & 26 deletions parachain/local-setup/karura.star

This file was deleted.

39 changes: 0 additions & 39 deletions parachain/local-setup/khala.star

This file was deleted.

Loading

0 comments on commit 5b54431

Please sign in to comment.