From f3ccc07e866eba463a5a6e6f3c9441fba68bdc78 Mon Sep 17 00:00:00 2001 From: Drew Walters Date: Mon, 14 Oct 2019 19:29:37 +0000 Subject: [PATCH] images: Install coreutils package The current kubernetes-entrypoint image [0] is missing the echo binary, resulting in errors: Entrypoint ERROR: 2019/10/14 18:34:58 kubernetes-entrypoint.go:38: Cannot execute command: exec: "echo": executable file not found This change installs the coreutils package to the kubernetes-entrypoint image in order to make the echo binary available. Change-Id: I9d997abb7d204f5903281784205bb19a8d2102a8 Signed-off-by: Drew Walters --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 93f971c..84a20a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,5 +14,9 @@ RUN make ${MAKE_TARGET} FROM ${RELEASE_IMAGE} as release COPY --from=builder /usr/src/kubernetes-entrypoint/bin/kubernetes-entrypoint /usr/local/bin/kubernetes-entrypoint + +RUN apt-get update +RUN apt-get install -y --no-install-recommends coreutils + USER 65534 ENTRYPOINT [ "/usr/local/bin/kubernetes-entrypoint" ]