
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 <andrew.walters@att.com>
23 lines
585 B
Docker
23 lines
585 B
Docker
ARG GO_IMAGE=docker.io/golang:1.12.6-stretch
|
|
ARG RELEASE_IMAGE=scratch
|
|
FROM ${GO_IMAGE} as builder
|
|
|
|
SHELL [ "/bin/bash", "-cex" ]
|
|
ADD . /usr/src/kubernetes-entrypoint
|
|
WORKDIR /usr/src/kubernetes-entrypoint
|
|
ENV GO111MODULE=on
|
|
|
|
RUN make get-modules
|
|
|
|
ARG MAKE_TARGET=build
|
|
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" ]
|