44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
|
FROSTFS_VERSION?=0.42.9
|
||
|
NEOGO_VERSION?=0.106.3
|
||
|
|
||
|
SHELL=/bin/bash
|
||
|
.SHELLFLAGS=-euo pipefail -c
|
||
|
|
||
|
.PHONY: up
|
||
|
up: morph
|
||
|
|
||
|
WALLET?=wallet.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)
|
||
|
mkdir -p log
|
||
|
$(NEOGO) node --config-path . --privnet --debug 2>&1 | tee --append log/$@
|
||
|
|
||
|
wallet.json: wallet.template | $(NEOGO)
|
||
|
$(NEOGO) wallet init --account --wallet-config $<
|