forked from stackrox/acs-fleet-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.tools
33 lines (26 loc) · 1.08 KB
/
Dockerfile.tools
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.8
ENV KUBECTL_VERSION=v1.28.1
COPY \
fleet-manager \
fleetshard-sync \
acsfleetctl \
/usr/local/bin/
RUN microdnf install tar gzip
# Install kubeval
RUN curl -LO https://github.com/instrumenta/kubeval/releases/download/v0.16.1/kubeval-linux-amd64.tar.gz
RUN curl -LO "https://github.com/instrumenta/kubeval/releases/download/v0.16.1/checksums.txt"
RUN cat checksums.txt | grep linux-amd64 | sha256sum --check
RUN tar -xf kubeval-linux-amd64.tar.gz
RUN mv kubeval /usr/bin/kubeval
RUN chmod +x /usr/bin/kubeval
RUN rm kubeval-linux-amd64.tar.gz
# Install kubeclt
RUN curl -o /usr/bin/kubectl -LO "https://dl.k8s.io/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl"
RUN chmod +x /usr/bin/kubectl
RUN curl -LO "https://dl.k8s.io/$KUBECTL_VERSION/bin/linux/amd64/kubectl.sha256"
RUN echo "$(cat kubectl.sha256) /usr/bin/kubectl" | sha256sum --check
LABEL name="fleet-manager-tools" \
vendor="Red Hat" \
version="0.0.1" \
summary="FleetManagerTools" \
description="RHACS fleet-manager tools used for CI pipelines"