Collection of tools to deploy IOHK infrastructure.
deployments- includes all NixOps deployments controlled via.hsscriptsmodules- NixOS moduleslib.nix- warps upstream<nixpkgs/lib.nix>with our common functionsscripts- has bash scripts not converted to Haskell/Turtle into Cardano.hs yetdefault.nix- is a collection of Haskell packagesstaticincludes files using in deploymentsjobsetsis used by Hydra CI
$ ./CardanoCSL.hs build
$ ./CardanoCSL.hs deploy
Note this will not remove machines if they no longer exist.
If you want to remove a machine simply remove them in the bottom part of the nixops.nix file.
Then run nixops deploy with -k:
./Cardano.hs deploy
$ nixops list
$ nixops info -d <deployment-name>
$ nixops ssh -d <deployment-name> <machine-name>
Replace <machine-name> with the machine you want to connect to (from info call).
$ ./CardanoCSL.hs destroy
$ ./CardanoCSL.hs ami -c config.yaml
This will update modules/amis.nix so make sure to commit it.
Append https://github.com/input-output-hk/pos-prototype-deployment/blob/master/lib.nix#L46 and submit a PR.
$ ./scripts/generate-explorer-frontend.sh
$ cat explorer-production.yaml
deploymentName: csl-testnet-explorer-live
nixPath: nixpkgs=https://github.com/NixOS/nixpkgs/archive/763e21e982370f67c126f92a1113ea949db3b6e0.tar.gz
deploymentFiles:
- deployments/cardano-explorer.nix
- deployments/cardano-explorer-ec2.nix
$ ./CardanoCSL.hs deploy -c explorer-production.yaml