forked from TrueCloudLab/frostfs-node
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:
parent
1ce0505575
commit
99d9544a64
4 changed files with 28 additions and 1 deletions
8
Dockerfile.dirty-cli
Normal file
8
Dockerfile.dirty-cli
Normal 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
8
Dockerfile.dirty-ir
Normal 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
8
Dockerfile.dirty-storage
Normal 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"]
|
5
Makefile
5
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue