diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0269cfd --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +FROSTFS_VERSION?=0.42.9 +FROSTFS_CONTRACTS_VERSION=0.19.4 +NEOGO_VERSION?=0.104.0 + +ADM?=bin/frostfs-adm-v$(FROSTFS_VERSION) +ADM_RELEASE_URL=https://git.frostfs.info/TrueCloudLab/frostfs-node/releases/download/v$(FROSTFS_VERSION)/frostfs-adm + +CLI?=bin/frostfs-cli-v$(FROSTFS_VERSION) +CLI_RELEASE_URL=https://git.frostfs.info/TrueCloudLab/frostfs-node/releases/download/v$(FROSTFS_VERSION)/frostfs-cli + +NEOGO?=bin/neo-go-v$(NEOGO_VERSION) +NEOGO_RELEASE_URL=https://github.com/nspcc-dev/neo-go/releases/download/v$(NEOGO_VERSION)/neo-go-linux-amd64 + +bin/frostfs-adm-v$(FROSTFS_VERSION): + mkdir -p $(dir $@) + wget -q "$(ADM_RELEASE_URL)" -O "$@" + chmod +x "$@" + +bin/frostfs-cli-v$(FROSTFS_VERSION): + mkdir -p $(dir $@) + wget -q "$(CLI_RELEASE_URL)" -O "$@" + chmod +x "$@" + +bin/neo-go-v$(NEOGO_VERSION): + mkdir -p $(dir $@) + wget -q "$(NEOGO_RELEASE_URL)" -O "$@" + chmod +x "$@" diff --git a/bin/README b/bin/README new file mode 100644 index 0000000..04abd8c --- /dev/null +++ b/bin/README @@ -0,0 +1 @@ +Empty directory for binaries not tracked in Git diff --git a/innerring/Makefile b/innerring/Makefile new file mode 100644 index 0000000..b23cb43 --- /dev/null +++ b/innerring/Makefile @@ -0,0 +1,4 @@ +SHELL=/bin/bash +.SHELLFLAGS=-euo pipefail -c + +include ../Makefile diff --git a/innerring/bin b/innerring/bin new file mode 120000 index 0000000..19f285a --- /dev/null +++ b/innerring/bin @@ -0,0 +1 @@ +../bin \ No newline at end of file diff --git a/morph/Makefile b/morph/Makefile index a56f002..2a343ea 100644 --- a/morph/Makefile +++ b/morph/Makefile @@ -1,43 +1,14 @@ -FROSTFS_VERSION?=0.42.9 -FROSTFS_CONTRACTS_VERSION=0.19.4 -NEOGO_VERSION?=0.104.0 - SHELL=/bin/bash .SHELLFLAGS=-euo pipefail -c +include ../Makefile + .PHONY: up up: morph -WALLET?=wallet/morph.json -TOOLS=$(NEOGO) $(ADM) $(CLI) - -ADM?=bin/frostfs-adm-v$(FROSTFS_VERSION) -ADM_RELEASE_URL=https://git.frostfs.info/TrueCloudLab/frostfs-node/releases/download/v$(FROSTFS_VERSION)/frostfs-adm - -CLI?=bin/frostfs-cli-v$(FROSTFS_VERSION) -CLI_RELEASE_URL=https://git.frostfs.info/TrueCloudLab/frostfs-node/releases/download/v$(FROSTFS_VERSION)/frostfs-cli - -NEOGO?=bin/neo-go-v$(NEOGO_VERSION) -NEOGO_RELEASE_URL=https://github.com/nspcc-dev/neo-go/releases/download/v$(NEOGO_VERSION)/neo-go-linux-amd64 - -bin/frostfs-adm-v$(FROSTFS_VERSION): - mkdir -p $(dir $@) - wget -q "$(ADM_RELEASE_URL)" -O "$@" - chmod +x "$@" - -bin/frostfs-cli-v$(FROSTFS_VERSION): - mkdir -p $(dir $@) - wget -q "$(CLI_RELEASE_URL)" -O "$@" - chmod +x "$@" - -bin/neo-go-v$(NEOGO_VERSION): - mkdir -p $(dir $@) - wget -q "$(NEOGO_RELEASE_URL)" -O "$@" - chmod +x "$@" - .PHONY: morph -morph: $(WALLET) | $(NEOGO) - grep -F $$($(NEOGO) wallet dump-keys -w $(WALLET)|head -n2|tail -n1) protocol.privnet.yml +morph: wallet/morph.json | $(NEOGO) + grep -F $$($(NEOGO) wallet dump-keys -w $<|head -n2|tail -n1) protocol.privnet.yml mkdir -p log $(NEOGO) node --config-path . --privnet --debug 2>&1 | tee --append log/$@ diff --git a/morph/bin b/morph/bin new file mode 120000 index 0000000..19f285a --- /dev/null +++ b/morph/bin @@ -0,0 +1 @@ +../bin \ No newline at end of file diff --git a/morph/protocol.privnet.yml b/morph/protocol.privnet.yml index 7a24269..4480996 100644 --- a/morph/protocol.privnet.yml +++ b/morph/protocol.privnet.yml @@ -5,7 +5,7 @@ ProtocolConfiguration: MemPoolSize: 50000 StandbyCommittee: # 02b3622bf4017bdfe317c58aed5f4c753f206b7db896046fa7d774bbc4bf7f8dc2 # frostfs-dev-env node - - 03fd818621bcccf083bc3e1b3985e0b0b07a7dd5bebd4cd14ad225d59e51818acb # replace this with node pubkey + - 02595996a81f4822e49e55a60bc7b6cfbe74f50c00df9205d84ba8ae9262182cd7 # replace this with node pubkey ValidatorsCount: 1 VerifyTransactions: true StateRootInHeader: true