From 34a97985b2ec6637dd8ae466b564143789c9b634 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Fri, 22 Jan 2021 20:48:38 +0300 Subject: [PATCH] [#341] Add shell in docker images It is much easier to debug and solve issues in-place with interactive command line. Signed-off-by: Alex Vanin --- Dockerfile.cli | 1 + Dockerfile.ir | 3 ++- Dockerfile.storage | 3 ++- Dockerfile.storage-testnet | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile.cli b/Dockerfile.cli index b78dae2b..76f40469 100644 --- a/Dockerfile.cli +++ b/Dockerfile.cli @@ -12,6 +12,7 @@ RUN make bin/neofs-cli # Executable image FROM alpine AS neofs-cli +RUN apk add --update bash WORKDIR / diff --git a/Dockerfile.ir b/Dockerfile.ir index 98860dbf..1ba1af44 100644 --- a/Dockerfile.ir +++ b/Dockerfile.ir @@ -11,7 +11,8 @@ COPY . /src RUN make bin/neofs-ir # Executable image -FROM scratch AS neofs-ir +FROM alpine AS neofs-ir +RUN apk add --update bash WORKDIR / diff --git a/Dockerfile.storage b/Dockerfile.storage index 60cb95a2..98bbd158 100644 --- a/Dockerfile.storage +++ b/Dockerfile.storage @@ -11,7 +11,8 @@ COPY . /src RUN make bin/neofs-node # Executable image -FROM scratch AS neofs-node +FROM alpine AS neofs-node +RUN apk add --update bash WORKDIR / diff --git a/Dockerfile.storage-testnet b/Dockerfile.storage-testnet index 22f67fdb..5f6917cd 100644 --- a/Dockerfile.storage-testnet +++ b/Dockerfile.storage-testnet @@ -11,7 +11,8 @@ COPY . /src RUN make bin/neofs-node # Executable image -FROM scratch AS neofs-node +FROM alpine AS neofs-node +RUN apk add --update bash WORKDIR /