forked from TrueCloudLab/frostfs-node
build: Simplify Docker image build
Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
parent
5873dece66
commit
783ec72d56
2 changed files with 4 additions and 14 deletions
18
Makefile
18
Makefile
|
@ -66,24 +66,14 @@ protoc:
|
||||||
rm -rf vendor
|
rm -rf vendor
|
||||||
|
|
||||||
# Build NeoFS Storage Node docker image
|
# Build NeoFS Storage Node docker image
|
||||||
image-storage:
|
image-%:
|
||||||
@echo "⇒ Build NeoFS Storage Node docker image "
|
@echo "⇒ Build NeoFS $* docker image "
|
||||||
@docker build \
|
@docker build \
|
||||||
--build-arg REPO=$(REPO) \
|
--build-arg REPO=$(REPO) \
|
||||||
--build-arg VERSION=$(VERSION) \
|
--build-arg VERSION=$(VERSION) \
|
||||||
--rm \
|
--rm \
|
||||||
-f Dockerfile \
|
-f Dockerfile.$* \
|
||||||
-t $(HUB_IMAGE)-storage:$(HUB_TAG) .
|
-t $(HUB_IMAGE)-$*:$(HUB_TAG) .
|
||||||
|
|
||||||
# Build NeoFS Storage Node docker image
|
|
||||||
image-ir:
|
|
||||||
@echo "⇒ Build NeoFS Inner Ring docker image "
|
|
||||||
@docker build \
|
|
||||||
--build-arg REPO=$(REPO) \
|
|
||||||
--build-arg VERSION=$(VERSION) \
|
|
||||||
--rm \
|
|
||||||
-f Dockerfile.ir \
|
|
||||||
-t $(HUB_IMAGE)-ir:$(HUB_TAG) .
|
|
||||||
|
|
||||||
# Build all Docker images
|
# Build all Docker images
|
||||||
images: image-storage image-ir
|
images: image-storage image-ir
|
||||||
|
|
Loading…
Reference in a new issue