From 8d461138132599f713d780b9ec07bc474219ef6b Mon Sep 17 00:00:00 2001 From: Tanuj Kushwah Date: Mon, 16 Dec 2024 20:21:43 +0530 Subject: [PATCH 1/2] NodeAccount/Password migrated to env. variable --- local-test-node/appsettings.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local-test-node/appsettings.json b/local-test-node/appsettings.json index 17e3293..60d0349 100644 --- a/local-test-node/appsettings.json +++ b/local-test-node/appsettings.json @@ -9,8 +9,8 @@ "StateDb": "InMemory" }, "Account": { - "NodeAccount": "W1ptWN5n5mfdVvh3khTRm9KMJCAUdge9txNyVtyvZaYRYcqc1", - "NodeAccountPassword": "admin123" + "NodeAccount": "${NODE_ACCOUNT}", + "NodeAccountPassword": "${NODE_ACCOUNT_PASSWORD}" }, "Network": { "BootNodes": [], From 6e1ce740a1c8dc0f4f93f165d7f03f459bc0dfbb Mon Sep 17 00:00:00 2001 From: Tanuj Kushwah Date: Mon, 16 Dec 2024 20:24:17 +0530 Subject: [PATCH 2/2] hygiene fix --- local-test-node/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/local-test-node/README.md b/local-test-node/README.md index c229ed6..391eb90 100644 --- a/local-test-node/README.md +++ b/local-test-node/README.md @@ -13,6 +13,8 @@ docker build -t aelf/standalone-testing-node . ``` docker run --name aelf-node --restart always \ + -e NODE_ACCOUNT="W1ptWN5n5mfdVvh3khTRm9KMJCAUdge9txNyVtyvZaYRYcqc1" \ + -e NODE_ACCOUNT_PASSWORD="admin123" \ -itd -p 6801:6801 -p 8000:8000 -p 5001:5001 -p 5011:5011 \ --platform linux/amd64 \ --ulimit core=-1 \