This repository has been archived by the owner on Aug 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3315 from input-output-hk/devops-978-demo-cluster…
…-client-cert-disabled [DEVOPS-978] Add option to demo cluster to disable client auth
- Loading branch information
Showing
6 changed files
with
48 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# How to launch a local demo cluster with nix | ||
|
||
1. Make sure nix is installed and IOHK binary cache is configured [nix setup] (https://github.com/input-output-hk/cardano-sl/blob/develop/docs/how-to/build-cardano-sl-and-daedalus-from-source-code.md#nix-build-mode-recommended) | ||
2. To generate a script that will launch the demo cluster run `nix-build -A demoCluster -o launch_demo_cluster` | ||
3. To generate a script that will launch demo cluster suitable for Daedalus development, run `nix-build -A demoClusterDaedalusDev -o launch_demo_cluster` | ||
4. To launch cluster, run `./launch_demo_cluster` | ||
5. To stop, hit `ctrl-c` and it will terminate all the nodes. | ||
6. A `state-demo` state folder will be automatically created relative to your current | ||
working directory. | ||
* Logs will be found in `state-demo/logs` | ||
* TLS certs/keys will be found in `state-demo/tls` | ||
* 11 genesis wallets will be pre-loaded with 37 million Ada each |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
if ! [ -x "$(command -v nix-build)" ]; then | ||
echo 'Error: nix is not installed.' >&2 | ||
# shellcheck disable=SC2016 | ||
echo 'Run `curl https://nixos.org/nix/install | sh` and re-run this script' >&2 | ||
exit 1 | ||
fi | ||
|
||
GITREV=$(git rev-parse HEAD) | ||
|
||
nix-build -A demoClusterDaedalusDev --argstr gitrev "$GITREV" -o "launch_$GITREV" | ||
exec ./launch_"$GITREV" |