forked from TrueCloudLab/frostfs-node
[#662] Add All-In-One NeoFS Docker image
We need All-In-One Docker image to simplify NeoFS deployment in development and testing environments. Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
parent
a2bb59adb8
commit
b848c9bd9f
2 changed files with 35 additions and 1 deletions
24
Dockerfile.aio
Normal file
24
Dockerfile.aio
Normal file
|
@ -0,0 +1,24 @@
|
|||
|
||||
ARG HUB_IMAGE=nspccdev/neofs
|
||||
ARG HUB_TAG=latest
|
||||
|
||||
FROM ${HUB_IMAGE}-cli:${HUB_TAG} as neofs-cli
|
||||
FROM ${HUB_IMAGE}-ir:${HUB_TAG} as neofs-ir
|
||||
FROM ${HUB_IMAGE}-storage:${HUB_TAG} as neofs-storage
|
||||
|
||||
# Executable image
|
||||
FROM alpine AS neofs-aio
|
||||
RUN apk add --no-cache \
|
||||
bash \
|
||||
ca-certificates \
|
||||
jq \
|
||||
expect \
|
||||
iputils
|
||||
|
||||
WORKDIR /
|
||||
|
||||
COPY --from=neofs-cli /bin/neofs-cli /bin/neofs-cli
|
||||
COPY --from=neofs-ir /bin/neofs-ir /bin/neofs-ir
|
||||
COPY --from=neofs-storage /bin/neofs-node /bin/neofs-node
|
||||
|
||||
CMD ["neofs-cli"]
|
12
Makefile
12
Makefile
|
@ -62,7 +62,17 @@ protoc:
|
|||
done
|
||||
rm -rf vendor
|
||||
|
||||
# Build NeoFS Storage Node docker image
|
||||
# Build all-in-one NeoFS docker image
|
||||
image-aio: images
|
||||
@echo "⇒ Build NeoFS All-In-One Docker image "
|
||||
@docker build \
|
||||
--build-arg HUB_IMAGE=$(HUB_IMAGE) \
|
||||
--build-arg HUB_TAG=$(HUB_TAG) \
|
||||
--rm \
|
||||
-f Dockerfile.aio \
|
||||
-t $(HUB_IMAGE)-aio:$(HUB_TAG) .
|
||||
|
||||
# Build NeoFS component's docker image
|
||||
image-%:
|
||||
@echo "⇒ Build NeoFS $* docker image "
|
||||
@docker build \
|
||||
|
|
Loading…
Reference in a new issue