Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
add job for faucet web
Browse files Browse the repository at this point in the history
  • Loading branch information
manveru committed Nov 30, 2020
1 parent 598a0ce commit 927c322
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 19 deletions.
2 changes: 1 addition & 1 deletion clusters/mantis/testnet/default.nix
Expand Up @@ -91,7 +91,7 @@ in {
maxSize = 40;
instanceType = "c5.2xlarge";
associatePublicIP = true;
maxInstanceLifetime = 604800;
maxInstanceLifetime = 0;
iam.role = cluster.iam.roles.client;
iam.instanceProfile.role = cluster.iam.roles.client;

Expand Down
89 changes: 85 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions flake.nix
Expand Up @@ -16,10 +16,9 @@
"git+ssh://github.com/input-output-hk/midnight-automation?ref=etcm-99-mantis-agen";
flake = false;
};
mantis-explorer = {
url = "github:input-output-hk/mantis-explorer";
flake = false;
};
mantis-explorer.url = "github:input-output-hk/mantis-explorer";
mantis-faucet-web.url =
"github:input-output-hk/mantis-faucet-web/nix-build";
};

outputs = { self, nixpkgs, utils, ops-lib, bitte, ... }:
Expand Down
1 change: 0 additions & 1 deletion jobs/mantis-qa-fastsync.nix
@@ -1,4 +1,3 @@

{ mkNomadJob, lib, mantis, mantis-source, mantis-faucet, mantis-faucet-source
, dockerImages }:
let
Expand Down
14 changes: 7 additions & 7 deletions jobs/mantis-qa-load.nix
Expand Up @@ -166,7 +166,7 @@ let

checkRestart = {
limit = 5;
grace = "300s";
grace = "400s";
ignoreWarnings = false;
};
}];
Expand Down Expand Up @@ -197,10 +197,10 @@ let
};

restartPolicy = {
interval = "30m";
attempts = 10;
interval = "15m";
attempts = 5;
delay = "1m";
mode = "fail";
mode = "delay";
};

env = { REQUIRED_PEER_COUNT = toString requiredPeerCount; };
Expand Down Expand Up @@ -256,7 +256,7 @@ let

inherit count;

requiredPeerCount = builtins.length miners;
requiredPeerCount = 5;

services."${name}-rpc" = {
addressMode = "host";
Expand Down Expand Up @@ -307,7 +307,7 @@ let
mantis.blockchains.testnet-internal-nomad.ecip1098-block-number = 0
mantis.blockchains.testnet-internal-nomad.ecip1097-block-number = 0
'';
changeMode = "restart";
changeMode = "noop";
destination = "local/mantis.conf";
}
genesisJson
Expand All @@ -318,7 +318,7 @@ let

miners = lib.forEach (lib.range 1 amountOfMiners) (num: {
name = "mantis-${toString num}";
requiredPeerCount = num - 1;
requiredPeerCount = if num > 5 then 5 else num - 1;
publicPort = 9000 + num; # routed through haproxy/ingress
});

Expand Down
5 changes: 3 additions & 2 deletions overlay.nix
Expand Up @@ -313,8 +313,9 @@ in {
tree
];

mantis-explorer =
final.callPackage (self.inputs.mantis-explorer + "/package.nix") { };
mantis-explorer = self.inputs.mantis-explorer.defaultPackage.${system};

mantis-faucet-web = self.inputs.mantis-faucet-web.defaultPackage.${system};

nixosConfigurations =
self.inputs.bitte.legacyPackages.${system}.mkNixosConfigurations
Expand Down

0 comments on commit 927c322

Please sign in to comment.