-
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.
- Loading branch information
Showing
3 changed files
with
34 additions
and
31 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 |
---|---|---|
@@ -1,35 +1,13 @@ | ||
ARG ARCH=amd64 | ||
FROM alpine:3.20.1 | ||
|
||
FROM prom/node-exporter:v1.6.1 AS node-exporter | ||
|
||
FROM alpine:3.16.7 | ||
|
||
COPY --from=node-exporter /bin/node_exporter /bin/ | ||
|
||
ENV KUBECTL_VERSION="v1.8.8" | ||
|
||
RUN apk add --update curl bash coreutils \ | ||
&& export ARCH=$([[ "$(uname -m)" == "aarch64" ]] && echo "arm64" || echo "amd64") \ | ||
&& curl -L https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl -o /usr/local/bin/kubectl \ | ||
&& chmod +x /usr/local/bin/kubectl | ||
|
||
# add user | ||
RUN addgroup --gid 1000 dind-volume-utils && \ | ||
adduser --uid 1000 --gecos "" --disabled-password \ | ||
--ingroup dind-volume-utils \ | ||
--home /home/dind-volume-utils \ | ||
--shell /bin/bash dind-volume-utils | ||
COPY --from=prom/node-exporter:v1.8.1 /bin/node_exporter /usr/local/bin/ | ||
COPY --from=bitnami/kubectl:1.30.2 /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/ | ||
|
||
WORKDIR /home/dind-volume-utils | ||
|
||
ADD bin ./bin | ||
ADD monitor ./monitor | ||
ADD dind-metrics ./dind-metrics | ||
ADD local-volumes ./local-volumes | ||
|
||
RUN chown -R dind-volume-utils:dind-volume-utils /home/dind-volume-utils && \ | ||
chmod 755 /home/dind-volume-utils | ||
|
||
USER dind-volume-utils:dind-volume-utils | ||
COPY bin ./bin | ||
COPY monitor ./monitor | ||
COPY dind-metrics ./dind-metrics | ||
COPY local-volumes ./local-volumes | ||
|
||
CMD ["/bin/bash"] | ||
CMD ["sh"] |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM alpine:3.20.1 | ||
|
||
COPY --from=prom/node-exporter:v1.8.1 /bin/node_exporter /usr/local/bin/ | ||
COPY --from=bitnami/kubectl:1.30.2 /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/ | ||
|
||
WORKDIR /home/dind-volume-utils | ||
|
||
COPY bin ./bin | ||
COPY monitor ./monitor | ||
COPY dind-metrics ./dind-metrics | ||
COPY local-volumes ./local-volumes | ||
|
||
# add user | ||
RUN addgroup --gid 1000 dind-volume-utils && \ | ||
adduser --uid 1000 --gecos "" --disabled-password \ | ||
--ingroup dind-volume-utils \ | ||
--home /home/dind-volume-utils \ | ||
--shell /bin/bash dind-volume-utils | ||
|
||
RUN chown -R dind-volume-utils:dind-volume-utils /home/dind-volume-utils && \ | ||
chmod 755 /home/dind-volume-utils | ||
|
||
USER dind-volume-utils:dind-volume-utils | ||
|
||
CMD ["sh"] |
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 |
---|---|---|
@@ -1 +1 @@ | ||
version: 1.29.5 | ||
version: 1.30.0 |