Skip to content

Commit

Permalink
add crictl and kubectl as deps for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheu committed May 28, 2024
1 parent 0a1cc51 commit a48188f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,16 @@ RUN GOARCH=${TARGETARCH} make bin/node-problem-detector bin/health-checker bin/l

ARG BASEIMAGE
FROM --platform=${TARGETPLATFORM} ${BASEIMAGE}
ARG TARGETARCH

LABEL maintainer="Random Liu <lantaol@google.com>"

RUN apt-get update --fix-missing && apt-get --yes install kubernetes-client
RUN clean-install util-linux bash libsystemd-dev
ADD https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.30.0/crictl-v1.30.0-linux-${TARGETARCH}.tar.gz /crictl-v1.30.0-linux-${TARGETARCH}.tar.gz
RUN tar zxvf crictl-v1.30.0-linux-${TARGETARCH}.tar.gz -C /usr/local/bin
RUN rm -f crictl-v1.30.0-linux-${TARGETARCH}.tar.gz
RUN apt-get clean autoclean

# Avoid symlink of /etc/localtime.
RUN test -h /etc/localtime && rm -f /etc/localtime && cp /usr/share/zoneinfo/UTC /etc/localtime || true
Expand Down

0 comments on commit a48188f

Please sign in to comment.