Move tools installation into top-level Makefile

This commit is contained in:
Vitaliy Potyarkin 2024-09-17 08:49:13 +00:00
parent c17594c4fa
commit d5ed5fb476
7 changed files with 39 additions and 34 deletions

27
Makefile Normal file
View file

@ -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 "$@"

1
bin/README Normal file
View file

@ -0,0 +1 @@
Empty directory for binaries not tracked in Git

4
innerring/Makefile Normal file
View file

@ -0,0 +1,4 @@
SHELL=/bin/bash
.SHELLFLAGS=-euo pipefail -c
include ../Makefile

1
innerring/bin Symbolic link
View file

@ -0,0 +1 @@
../bin

View file

@ -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/$@

1
morph/bin Symbolic link
View file

@ -0,0 +1 @@
../bin

View file

@ -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