Add support for quick and dirty Docker image build

Docker containers are supposed to be used for clean image building
without side effects from local execution environment, though it may be
useful to save some time and have a dirty image built quick.

For those young and inpatient there is a way to do it now.

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
Stanislav Bogatyrev 2021-03-17 19:58:31 +03:00 committed by Alex Vanin
parent 1ce0505575
commit 99d9544a64
4 changed files with 28 additions and 1 deletions

8
Dockerfile.dirty-cli Normal file
View file

@ -0,0 +1,8 @@
FROM alpine
RUN apk add --no-cache bash ca-certificates
WORKDIR /
COPY bin/neofs-cli /bin/neofs-cli
CMD ["neofs-cli"]

8
Dockerfile.dirty-ir Normal file
View file

@ -0,0 +1,8 @@
FROM alpine
RUN apk add --no-cache bash ca-certificates
WORKDIR /
COPY bin/neofs-ir /bin/neofs-ir
CMD ["neofs-ir"]

8
Dockerfile.dirty-storage Normal file
View file

@ -0,0 +1,8 @@
FROM alpine
RUN apk add --no-cache bash ca-certificates
WORKDIR /
COPY bin/neofs-node /bin/neofs-node
CMD ["neofs-node"]

View file

@ -82,7 +82,10 @@ image-%:
# Build all Docker images
images: image-storage image-ir image-cli
# Run all code formaters
# Build dirty local Docker images
dirty-images: image-dirty-storage image-dirty-ir image-dirty-cli
# Run all code formatters
fmts: fmt imports
# Reformat code