forked from kubernetes/node-problem-detector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add crictl and kubectl as deps for plugins
- Loading branch information
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]>" | ||
|
||
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 | ||
|