forked from 0xPolygon/kurtosis-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: remove mkdocs automation (0xPolygon#196)
* remove platform * chore: add docs * chore: merge the two docs folder * chore: rename docs folder --------- Co-authored-by: Dr K Murphy <[email protected]>
- Loading branch information
1 parent
5de0e14
commit 51c7983
Showing
59 changed files
with
436 additions
and
220 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
--- | ||
comments: true | ||
--- | ||
|
||
# Manage allowlists, and more, with policies | ||
|
||
!!! important | ||
|
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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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,121 @@ | ||
--- | ||
comments: true | ||
--- | ||
|
||
Rather than executing the deployment process as a monolithic operation, you can break it down into stages and run each stage separately. | ||
|
||
### Enable or disable stages | ||
|
||
You can enable a stage by setting the boolean value to `true` and disable it by setting it to `false`, in the [`params.yml`](https://github.com/0xPolygon/kurtosis-cdk/blob/main/params.yml) file. | ||
|
||
!!! important | ||
- By default, all stages are executed. | ||
|
||
## Deployment stages | ||
|
||
Currently, the deployment process includes the following stages: | ||
|
||
1. Deploy Local L1. | ||
2. Deploy zkEVM contracts on L1. | ||
3. Deploy zkEVM node and CDK peripheral databases. | ||
4. Deploy CDK central/trusted environment. | ||
5. Deploy CDK/bridge infrastructure. | ||
6. Deploy permissionless node. | ||
|
||
## Specifying stages | ||
|
||
The example scripts below show you how to deploy the stack to enable various stage permutations. | ||
|
||
!!! tip | ||
To run the scripts, you need to have [yq](https://pypi.org/project/yq/) installed. | ||
|
||
### Disable all deployment steps | ||
|
||
```sh | ||
yq -Y --in-place 'with_entries(if .value | type == "boolean" then .value = false else . end)' params.yml | ||
``` | ||
|
||
### Deploy L1 | ||
|
||
```sh | ||
yq -Y --in-place '.deploy_l1 = true' params.yml | ||
kurtosis run --enclave cdk-v1 --args-file params.yml . | ||
yq -Y --in-place '.deploy_l1 = false' params.yml # reset | ||
# Perform additional tasks... | ||
``` | ||
|
||
### Deploy zkEVM contracts on L1 | ||
|
||
```sh | ||
yq -Y --in-place '.deploy_zkevm_contracts_on_l1 = true' params.yml | ||
kurtosis run --enclave cdk-v1 --args-file params.yml --image-download always . | ||
yq -Y --in-place '.deploy_zkevm_contracts_on_l1 = false' params.yml # reset | ||
# Perform additional tasks... | ||
``` | ||
|
||
### Deploy zkEVM node and CDK peripheral databases | ||
|
||
```sh | ||
yq -Y --in-place '.deploy_databases = true' params.yml | ||
kurtosis run --enclave cdk-v1 --args-file params.yml . | ||
yq -Y --in-place '.deploy_databases = false' params.yml # reset | ||
# Perform additional tasks... | ||
``` | ||
|
||
### Deploy CDK central environment | ||
|
||
```sh | ||
yq -Y --in-place '.deploy_cdk_central_environment = true' params.yml | ||
kurtosis run --enclave cdk-v1 --args-file params.yml . | ||
yq -Y --in-place '.deploy_cdk_central_environment = false' params.yml # reset | ||
# Perform additional tasks... | ||
``` | ||
|
||
### Deploy CDK bridge infrastructure | ||
|
||
```sh | ||
yq -Y --in-place '.deploy_cdk_bridge_infra = true' params.yml | ||
kurtosis run --enclave cdk-v1 --args-file params.yml . | ||
yq -Y --in-place '.deploy_cdk_bridge_infra = false' params.yml # reset | ||
# Perform additional tasks... | ||
``` | ||
|
||
### Deploy zkEVM permissionless node | ||
|
||
```sh | ||
yq -Y --in-place '.deploy_zkevm_permissionless_node = true' params.yml | ||
kurtosis run --enclave cdk-v1 --args-file params.yml . | ||
yq -Y --in-place '.deploy_zkevm_permissionless_node = false' params.yml # reset | ||
``` | ||
|
||
### Deploy observability stack | ||
|
||
```sh | ||
yq -Y --in-place '.deploy_observability = true' params.yml | ||
kurtosis run --enclave cdk-v1 --args-file params.yml . | ||
yq -Y --in-place '.deploy_observability = false' params.yml # reset | ||
``` | ||
|
||
### Deploy Blockscout stack | ||
|
||
```sh | ||
yq -Y --in-place '.deploy_l2_blockscout = true' params.yml | ||
kurtosis run --enclave cdk-v1 --args-file params.yml . | ||
yq -Y --in-place '.deploy_l2_blockscout = false' params.yml # reset | ||
``` | ||
|
||
### Deploy ETH load balancer | ||
|
||
```sh | ||
yq -Y --in-place '.deploy_blutgang = true' params.yml | ||
kurtosis run --enclave cdk-v1 --args-file params.yml . | ||
yq -Y --in-place '.deploy_blutgang = false' params.yml # reset | ||
``` | ||
|
||
### Apply workload | ||
|
||
```sh | ||
yq -Y --in-place '.apply_workload = true' params.yml | ||
kurtosis run --enclave cdk-v1 --args-file params.yml . | ||
yq -Y --in-place '.apply_workload = false' params.yml # reset | ||
``` |
Oops, something went wrong.