From 99d9544a64e437f92a1ea0f429cb58597a2109e6 Mon Sep 17 00:00:00 2001 From: Stanislav Bogatyrev Date: Wed, 17 Mar 2021 19:58:31 +0300 Subject: [PATCH] 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 --- Dockerfile.dirty-cli | 8 ++++++++ Dockerfile.dirty-ir | 8 ++++++++ Dockerfile.dirty-storage | 8 ++++++++ Makefile | 5 ++++- 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 Dockerfile.dirty-cli create mode 100644 Dockerfile.dirty-ir create mode 100644 Dockerfile.dirty-storage diff --git a/Dockerfile.dirty-cli b/Dockerfile.dirty-cli new file mode 100644 index 00000000..9bcc14db --- /dev/null +++ b/Dockerfile.dirty-cli @@ -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"] diff --git a/Dockerfile.dirty-ir b/Dockerfile.dirty-ir new file mode 100644 index 00000000..a2002180 --- /dev/null +++ b/Dockerfile.dirty-ir @@ -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"] diff --git a/Dockerfile.dirty-storage b/Dockerfile.dirty-storage new file mode 100644 index 00000000..849d4bb6 --- /dev/null +++ b/Dockerfile.dirty-storage @@ -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"] diff --git a/Makefile b/Makefile index fd94c800..e1df6268 100644 --- a/Makefile +++ b/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