Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use NMT to install and start network nodes #178

Merged
merged 44 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
a5529a5
feat: add resources to run platform software inside root-container
leninmehedy Jul 13, 2023
7739727
fix: remove debug code
leninmehedy Jul 13, 2023
ce02e0a
fix: bump memory for network node
leninmehedy Jul 13, 2023
fd697f1
fix: use correct env variable
leninmehedy Jul 13, 2023
d5045d5
fix: update script and use artifacts from local-node repo
leninmehedy Jul 16, 2023
ef7331a
fix: working copy of running node using NMT
leninmehedy Jul 18, 2023
70f11b1
style: add missing new lines
leninmehedy Jul 18, 2023
83e81d8
style: add missing new lines
leninmehedy Jul 18, 2023
ee86dd3
rename script file and cleanup
leninmehedy Jul 18, 2023
c1f036a
ci: show logs from helm tests
leninmehedy Jul 18, 2023
279b270
code cleanup
leninmehedy Jul 18, 2023
d448d47
fix helm test
leninmehedy Jul 18, 2023
daaefc6
ci: cleanup
leninmehedy Jul 18, 2023
536350a
ci: remove debug code
leninmehedy Jul 18, 2023
8f09481
feat: generate address book with pod IP addresses
leninmehedy Jul 20, 2023
f54d2d6
feat: add logging of script execution time
leninmehedy Jul 20, 2023
9ebdf83
feat: add helper function to replace keys
leninmehedy Jul 20, 2023
feb3f3a
add _all suffix to functions that run for all nodes for clarity
leninmehedy Jul 20, 2023
9e54cfa
fix: config template and scripts
leninmehedy Jul 21, 2023
ebe3ff5
support address book generation for latest platform version
leninmehedy Jul 24, 2023
cc835e2
enable trace level logging
leninmehedy Jul 24, 2023
c380d4c
Merge branch 'main' into 176-use-nmt-to-install-node-software
leninmehedy Jul 24, 2023
0f932f2
fix helper script
leninmehedy Jul 25, 2023
43fa200
fix address book generation for v.0.40.0
leninmehedy Jul 25, 2023
d69bc5e
fix service ports mapping
leninmehedy Jul 27, 2023
03c8a06
fix address book generation
leninmehedy Jul 27, 2023
9dadaae
fix log4j2 for jrs and main profile
leninmehedy Jul 27, 2023
3a082d2
use temp dir for generated files
leninmehedy Jul 27, 2023
5200845
add hedera.crt for local dev
leninmehedy Jul 27, 2023
ecc8849
rename to local-node dir
leninmehedy Jul 27, 2023
1a4e037
fix helper script
leninmehedy Jul 27, 2023
8d4f288
show logs
leninmehedy Jul 27, 2023
c590b48
cleanup stopped container during stop-nodes command
leninmehedy Jul 27, 2023
7c5f609
change log level to TRACE
leninmehedy Jul 27, 2023
2d31421
add logs
leninmehedy Jul 27, 2023
5568ca6
fix logging
leninmehedy Jul 27, 2023
0f1770a
Merge branch 'main' into 176-use-nmt-to-install-node-software
leninmehedy Jul 27, 2023
8276eca
fix helper script
leninmehedy Jul 27, 2023
3914c9d
fix check
leninmehedy Jul 27, 2023
98e6f4e
add additional helper make commands
leninmehedy Jul 27, 2023
25ab43d
start account id from 0.0.3 as default
leninmehedy Jul 27, 2023
1ff8730
doc: update README
leninmehedy Jul 27, 2023
b2f3875
docs: update README
leninmehedy Jul 27, 2023
82e591b
fix: resolve minor typos
nathanklick Jul 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
support address book generation for latest platform version
Signed-off-by: Lenin Mehedy <lenin.mehedy@swirldslabs.com>
  • Loading branch information
leninmehedy committed Jul 24, 2023
commit ebe3ff57b1825bbeccee5fa6f057c323af6d0ab0
11 changes: 7 additions & 4 deletions dev/network-node/config.template
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
###############################################################################################
# Configuration file
###############################################################################################
swirld, hedera
swirld, 123
app, HederaNode.jar
###################################### ADDRESS BOOK ###########################################
# Format:
# address, <NODE_ID>, <NODE_NAME>, <NODE_STAKE_AMOUNT>, <INTERNAL_IP>, <INTERNAL_PORT>, <EXTERNAL_IP>, <EXTERNAL_PORT>, <ACCOUNT_ID>
# address, <NODE_ID>, <NODE_NICK_NAME>, <NODE_NAME>, <NODE_STAKE_AMOUNT>, <INTERNAL_IP>, <INTERNAL_PORT>, <EXTERNAL_IP>, <EXTERNAL_PORT>, <ACCOUNT_ID>
#
# Example:
# address, 0, node0, 1, <POD_IP>, 50211, <POD_IP>, 50211, 0.0.0
##############################################################################################
#address, 0, node0000, node0000, 2685636917, 10.128.0.27, 30124, 35.223.93.31, 30124, 0.0.3
#address, 1, node0001, node0001, 15745067016, 10.128.0.26, 30125, 35.238.137.246, 30125, 0.0.4
#address, 2, node0002, node0002, 15152326407, 10.128.0.15, 30126, 34.68.231.89, 30126, 0.0.5
#address, 3, node0003, node0003, 16416969660, 10.128.0.4, 30127, 35.238.246.241, 30127, 0.0.6
#nextNodeId, 4
7 changes: 5 additions & 2 deletions dev/scripts/helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ function prep_address_book() {
echo "Preparing address book"
echo "-----------------------------------------------------------------------------------------------------"

cp "${SCRIPT_DIR}/../network-node/config.template" "${SCRIPT_DIR}/../network-node/config.txt"
local config_file="${SCRIPT_DIR}/../network-node/config.txt"
cp "${SCRIPT_DIR}/../network-node/config.template" "${config_file}"

local node_IP=""
local node_id=0
Expand All @@ -330,7 +331,7 @@ function prep_address_book() {
local internal_ip="${POD_IP}"
local external_ip="${POD_IP}"
local node_stake=1
echo "address, ${node_id}, ${node_name}, ${node_stake}, ${internal_ip}, ${internal_port}, ${external_ip}, ${external_port}, ${account}" >> "${SCRIPT_DIR}/../network-node/config.txt"
echo "address, ${node_id}, ${node_name}, ${node_name}, ${node_stake}, ${internal_ip}, ${internal_port}, ${external_ip}, ${external_port}, ${account}" >> "${config_file}"
# node_ip="${node_name}_IP"
# echo "${node_IP}: ${POD_IP}"
# echo "${node_IP}=${POD_IP} envsubst '\$${node_IP}' < ${SCRIPT_DIR}/../network-node/config.txt"
Expand All @@ -341,6 +342,8 @@ function prep_address_book() {
node_id=$((node_id+1))
done

echo "nextNodeId, ${node_id}" >> "${config_file}"

echo ""
cat "${SCRIPT_DIR}/../network-node/config.txt"

Expand Down