Skip to content

Commit

Permalink
fix: local node not starting with tag command (#723)
Browse files Browse the repository at this point in the history
Signed-off-by: georgi-l95 <[email protected]>
  • Loading branch information
georgi-l95 authored Aug 6, 2024
1 parent fa813ec commit 7651432
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ NETWORK_NODE_IMAGE_NAME=consensus-node

#### Image Tags/Hashes ####
NETWORK_NODE_IMAGE_TAG=0.52.0
HAVEGED_IMAGE_TAG=0.52.0-alpha.6
HAVEGED_IMAGE_TAG=0.53.0-alpha.2

#### Java Process Settings ####
PLATFORM_JAVA_HEAP_MIN=256m
Expand All @@ -29,7 +29,7 @@ PYTHON_VERSION=python3.7

#### MirrorNode Prefixes & Tags ####
MIRROR_IMAGE_PREFIX=gcr.io/mirrornode/
MIRROR_IMAGE_TAG=0.110.0-rc2
MIRROR_IMAGE_TAG=0.111.0-rc1

#### MirrorNode settings ####
MIRROR_POSTGRES_IMAGE=ghcr.io/mhga24/postgres:latest
Expand All @@ -45,7 +45,7 @@ MINIO_ROOT_PASSWORD=minioadmin

#### JSON RPC Relay Prefixes & Tags ####
RELAY_IMAGE_PREFIX=ghcr.io/hashgraph/
RELAY_IMAGE_TAG=0.52.1
RELAY_IMAGE_TAG=0.53.0-rc4

#### JSON RPC Relay limits ####
RELAY_MEM_LIMIT=768m
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hashgraph/hedera-local",
"version": "2.28.1",
"version": "2.29.0",
"description": "Developer tooling for running Local Hedera Network (Consensus + Mirror Nodes).",
"main": "index.ts",
"scripts": {
Expand Down Expand Up @@ -64,7 +64,7 @@
"typescript": "^5.5.4"
},
"dependencies": {
"@hashgraph/sdk": "^2.48.1",
"@hashgraph/sdk": "^2.49.2",
"blessed": "^0.1.81",
"blessed-terminal": "^0.1.22",
"csv-parser": "^3.0.0",
Expand Down
6 changes: 3 additions & 3 deletions src/configuration/local.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"imageTagConfiguration": [
{"key": "NETWORK_NODE_IMAGE_TAG", "value": "0.52.0"},
{"key": "HAVEGED_IMAGE_TAG", "value": "0.52.0-alpha.6"},
{"key": "MIRROR_IMAGE_TAG", "value": "0.110.0-rc2"},
{"key": "RELAY_IMAGE_TAG", "value": "0.52.1"},
{"key": "HAVEGED_IMAGE_TAG", "value": "0.53.0-alpha.2"},
{"key": "MIRROR_IMAGE_TAG", "value": "0.111.0-rc1"},
{"key": "RELAY_IMAGE_TAG", "value": "0.53.0-rc4"},
{"key": "MIRROR_NODE_EXPLORER_IMAGE_TAG", "value": "24.4.0"}
],
"envConfiguration": [
Expand Down
4 changes: 3 additions & 1 deletion src/state/InitState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ export class InitState implements IState{
} {
const node = variable.key;
let tag = variable.value;
if (this.cliOptions.networkTag && (node === "NETWORK_NODE_IMAGE_TAG" || node === "HAVEGED_IMAGE_TAG")) {
// ToDo: Revert this change, when docker hub issues are resolved
// if (this.cliOptions.networkTag && (node === "NETWORK_NODE_IMAGE_TAG" || node === "HAVEGED_IMAGE_TAG")) {
if (this.cliOptions.networkTag && node === "NETWORK_NODE_IMAGE_TAG") {
tag = this.cliOptions.networkTag;
} else if(this.cliOptions.mirrorTag && node === "MIRROR_IMAGE_TAG") {
tag = this.cliOptions.mirrorTag;
Expand Down
18 changes: 9 additions & 9 deletions test/cypress/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"license": "ISC",
"devDependencies": {
"@hashgraph/sdk": "^2.49.2",
"cypress": "^13.13.1",
"cypress": "^13.13.2",
"cypress-wait-until": "^3.0.2",
"html-webpack-plugin": "^5.6.0",
"http-server": "^14.1.1",
Expand Down

0 comments on commit 7651432

Please sign in to comment.