Skip to content

Commit 4e0f3c6

Browse files
committed
Merge commit '6e73f5798098766b9cf31cfd5995767a33565ad5' into 00711-D-google-storage
Signed-off-by: Jeffrey Tang <[email protected]> # Conflicts: # src/commands/network.ts
2 parents 960b993 + 6e73f57 commit 4e0f3c6

34 files changed

+326
-43
lines changed

.github/workflows/zxc-e2e-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ jobs:
167167
if: ${{ runner.os == 'linux' && (inputs.npm-test-script == 'test-e2e-node-local-hedera' || inputs.npm-test-script == 'test-e2e-node-local-ptt' || inputs.npm-test-script == 'test-e2e-node-add-local') && !cancelled() && !failure() }}
168168
run: |
169169
cd ..
170-
git clone https://github.com/hashgraph/hedera-services.git --depth 1 --branch v0.58.0
170+
git clone https://github.com/hashgraph/hedera-services.git --depth 1 --branch v0.58.1
171171
cd hedera-services
172172
ls -ltr
173173
${{ env.CG_EXEC }} ./gradlew assemble --stacktrace --info

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ An opinionated CLI tool to deploy and manage standalone test networks.
2525

2626
To run a three-node network, you will need to set up Docker Desktop with at least 8GB of memory and 4 CPUs.
2727

28-
![alt text](/docs/content/User/DockerDesktop.png)
28+
![alt text](images/DockerDesktop.png)
2929

3030
## Setup
3131

HelperTasks.yml renamed to Taskfile.helper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ tasks:
163163
if [[ "${SOLO_CHART_VERSION}" != "" ]]; then
164164
export SOLO_CHART_FLAG='--solo-chart-version ${SOLO_CHART_VERSION}'
165165
fi
166-
SOLO_HOME_DIR=${SOLO_HOME_DIR} npm run solo -- network deploy --namespace "${SOLO_NAMESPACE}" --node-aliases-unparsed {{.node_identifiers}} ${RELEASE_FLAG} ${SOLO_CHART_FLAG} ${VALUES_FLAG} ${SETTINGS_FLAG} ${LOG4J2_FLAG} ${APPLICATION_PROPERTIES_FLAG} -q
166+
SOLO_HOME_DIR=${SOLO_HOME_DIR} npm run solo -- network deploy --namespace "${SOLO_NAMESPACE}" --node-aliases-unparsed {{.node_identifiers}} ${RELEASE_FLAG} ${SOLO_CHART_FLAG} ${VALUES_FLAG} ${SETTINGS_FLAG} ${LOG4J2_FLAG} ${APPLICATION_PROPERTIES_FLAG} ${GENESIS_THROTTLES_FLAG} -q
167167
- |
168168
if [[ "${CONSENSUS_NODE_VERSION}" != "" ]]; then
169169
export CONSENSUS_NODE_FLAG='--release-tag ${CONSENSUS_NODE_VERSION}'

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 3
22
includes:
33
helper:
4-
taskfile: ./HelperTasks.yml
4+
taskfile: ./Taskfile.helper.yml
55
flatten: true
66
env:
77
SOLO_NETWORK_SIZE: 2

docs/Taskfile.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ tasks:
7272
- mkdir -p content/Developer
7373
- cp ../DEV.md content/Developer/DEV.md
7474
- mkdir -p content/User
75-
- cp ../README.md content/User/README.md
75+
- mkdir -p content/User/README
76+
- cp ../README.md content/User/README/index.md
77+
- mkdir -p content/User/README/images
78+
- cp ../images/DockerDesktop.png content/User/README/images/DockerDesktop.png
7679

7780
install:
7881
cmds:

docs/content/User/GetStarted.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ For Developers working on Hedera Application and platform development:
88

99
* [Hedera developer](HederaDeveloper.md)
1010
* [Platform developer](PlatformDeveloper.md)
11-
* [Attach JVM debugger and retrieve logs](DebugLog/debug.md)
11+
* [Attach JVM debugger and retrieve logs](DebugLog/index.md)
1212

1313
For Hedera JavaScript SDK users:
1414

docs/content/User/SDK.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Then we start with launching a local Solo network with the following commands:
88

99
```bash
1010
# launch a local Solo network with mirror node and hedera explorer
11-
task default-with-mirror-node
11+
task default-with-mirror
1212
```
1313

1414
Then create a new test account with the following command:
@@ -60,7 +60,7 @@ OPERATOR_KEY="302a300506032b65700321001d8978e647aca1195c54a4d3d5dc469b95666de14e
6060
HEDERA_NETWORK="local-node"
6161
```
6262

63-
Make sure to assign the value of accountId to `OPERATOR\_ID` and the value of privateKey to `OPERATOR\_KEY`.
63+
Make sure to assign the value of accountId to `OPERATOR_ID` and the value of privateKey to `OPERATOR_KEY`.
6464

6565
Then try the following command to run the test
6666

docs/content/User/StepByStepGuide.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Advanced User Guide
2+
23
For those who would like to have more control or need some customized setups, here are some step by step instructions of how to setup and deploy a solo network.
4+
35
### Setup Kubernetes cluster
46

57
#### Remote cluster
@@ -28,6 +30,7 @@ Then run the following command to set the kubectl context to the new cluster:
2830
```bash
2931
kind create cluster -n "${SOLO_CLUSTER_NAME}"
3032
```
33+
3134
Example output
3235

3336
```
@@ -48,7 +51,6 @@ Thanks for using kind! 😊
4851

4952
You may now view pods in your cluster using `k9s -A` as below:
5053

51-
5254
```
5355
Context: kind-solo <0> all <a> Attach <ctr… ____ __.________
5456
Cluster: kind-solo <ctrl-d> Delete <l> | |/ _/ __ \______
@@ -75,7 +77,6 @@ You may now view pods in your cluster using `k9s -A` as below:
7577
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
7678
```
7779

78-
7980
### Step by Step Instructions
8081

8182
* Initialize `solo` directories:
@@ -136,13 +137,16 @@ Kubernetes Cluster : kind-solo
136137
✔ Generate gRPC TLS Keys
137138
✔ Finalize
138139
```
140+
139141
PEM key files are generated in `~/.solo/keys` directory.
142+
140143
```
141144
hedera-node1.crt hedera-node3.crt s-private-node1.pem s-public-node1.pem unused-gossip-pem
142145
hedera-node1.key hedera-node3.key s-private-node2.pem s-public-node2.pem unused-tls
143146
hedera-node2.crt hedera-node4.crt s-private-node3.pem s-public-node3.pem
144147
hedera-node2.key hedera-node4.key s-private-node4.pem s-public-node4.pem
145148
```
149+
146150
* Setup cluster with shared components
147151

148152
```

docs/content/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ geekdocDescription: Home page for Solo Documentation
2121

2222
Solo is an opinionated CLI tool to deploy and manage standalone test networks.
2323

24-
{{< button size="large" relref="User/README.md" >}}Getting Started{{< /button >}}
24+
{{< button size="large" relref="User/README/index.md" >}}Getting Started{{< /button >}}
2525

2626
## Feature overview
2727

docs/data/menu/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
main:
33
- name: Getting Started
4-
ref: "/User/README.md"
4+
ref: "/User/README/index.md"
55
- name: Start solo network with single command
66
ref: "/User/TaskTool.md"
77
- name: Hedera Developer
88
ref: "HederaDeveloper.md"
99
- name: Platform Developer
1010
ref: "PlatformDeveloper.md"
1111
- name: Attach JVM debugger and retrieve logs
12-
ref: "/User/DebugLog.md"
12+
ref: "/User/DebugLog/index.md"
1313
- name: Using Solo with Hedera JavaScript SDK
1414
ref: "/User/SDK.md"
1515
- name: Using Solo with mirror node

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* make sure that your current kubeconfig context is pointing to the cluster that you want to deploy to
1111
* run `task` which will do the rest and deploy the network and take care of many of the pre-requisites
1212

13-
NOTES:
13+
NOTES:
1414

1515
* Some of these examples are for running against large clusters with a lot of resources available.
1616
* the `env` environment variables if set in your shell will take precedence over what is in the Taskfile.yml. e.g. `export HEDERA_SERVICES_ROOT=<path-to-hedera-services-root>`

examples/ExamplesTasks.yml renamed to examples/Taskfile.examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 3
22
includes:
33
helper:
4-
taskfile: ../HelperTasks.yml
4+
taskfile: ../Taskfile.helper.yml
55
flatten: true
66

77
tasks:

examples/custom-network-config/Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 3
22
includes:
33
main:
4-
taskfile: ../ExamplesTasks.yml
4+
taskfile: ../Taskfile.examples.yml
55
flatten: true
66
env:
77
SOLO_NETWORK_SIZE: 10

examples/performance-tuning/Latitude/Taskfile.yml renamed to examples/performance-tuning/latitude/Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 3
22
includes:
33
main:
4-
taskfile: ../../ExamplesTasks.yml
4+
taskfile: ../../Taskfile.examples.yml
55
flatten: true
66
vars:
77
solo_home_override_dir: "%HOME%/.solo"

examples/performance-tuning/solo-perf-test/Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 3
22
includes:
33
main:
4-
taskfile: ../../ExamplesTasks.yml
4+
taskfile: ../../Taskfile.examples.yml
55
flatten: true
66
env:
77
SOLO_NETWORK_SIZE: 7

examples/solo-gke-test/Taskfile.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 3
22
includes:
33
main:
4-
taskfile: ../ExamplesTasks.yml
4+
taskfile: ../Taskfile.examples.yml
55
flatten: true
66
vars:
77
solo_home_override_dir: "/Users/user/.solo-gke-test"
@@ -17,3 +17,4 @@ env:
1717
APPLICATION_PROPERTIES_FLAG: "--application-properties {{.USER_WORKING_DIR}}/application.properties"
1818
HEDERA_SERVICES_ROOT: "/Users/user/source/hedera-services"
1919
LOCAL_BUILD_FLAG: "--local-build-path {{.HEDERA_SERVICES_ROOT}}/hedera-node/data"
20+
GENESIS_THROTTLES_FLAG: "--genesis-throttles-file {{.USER_WORKING_DIR}}/throttles.json"

examples/solo-gke-test/application.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ hedera.profiles.active=TEST
1515
staking.periodMins=1
1616
nodes.updateAccountIdAllowed=true
1717
blockStream.streamMode=RECORDS
18+
19+
# Override the throttle definitions to be used during genesis.
20+
# This override is required because release <= 0.58.x use a different default path.
21+
bootstrap.throttleDefsJson.resource=data/config/genesis-throttles.json

0 commit comments

Comments
 (0)