forked from nspcc-dev/neofs-aio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (39 loc) · 1.14 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/make -f
include .env
include help.mk
# Common variables
REPO=$(notdir $(shell pwd))
VERSION ?= "$(shell git describe --tags --match "v*" 2>/dev/null || git rev-parse --short HEAD | sed 's/^v//')"
# Variables for docker
HUB_IMAGE ?= "nspccdev/neofs"
AIO_IMAGE ?= "$(HUB_IMAGE)-aio"
TESTCONTAINER_IMAGE ?= "$(AIO_IMAGE)-testcontainer"
# Build aio Docker image
image-aio:
@echo "⇒ Build aio docker image "
@docker build \
--rm \
--build-arg HUB_IMAGE=$(HUB_IMAGE) \
--build-arg HUB_TAG=$(AIO_VERSION) \
-f Dockerfile \
-t $(AIO_IMAGE):$(AIO_VERSION) .
# Build testcontainer Docker image
image-testcontainer: image-aio
@echo "⇒ Build testcontainer docker image "
@docker build \
--rm \
--build-arg NEOGO_HUB_TAG=$(NEOGO_VERSION) \
--build-arg AIO_HUB_TAG=$(AIO_VERSION) \
-f testcontainer/Dockerfile \
-t $(TESTCONTAINER_IMAGE):$(AIO_VERSION) .
# Tick new epoch in side chain
tick.epoch:
@./bin/tick.sh
# Update container fee per alphabet node
prepare.ir:
@./bin/config.sh ContainerFee 0
@./bin/config.sh ContainerAliasFee 0
# Show current version
version:
@echo $(VERSION)
@echo "neofs-node: $(AIO_VERSION)"