-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated kubectl & cleaned up Dockerfile
Signed-off-by: Kalle Fagerberg <kalle.fagerberg@riskident.com>
- Loading branch information
Showing
1 changed file
with
18 additions
and
7 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,8 +1,19 @@ | ||
FROM ubuntu:16.04 | ||
LABEL maintainer="OpenEBS" | ||
RUN apt-get update || true \ | ||
&& apt-get install -y curl | ||
ENV KUBE_LATEST_VERSION="v1.15.3" | ||
RUN curl -L https://storage.googleapis.com/kubernetes-release/release/${KUBE_LATEST_VERSION}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl \ | ||
&& chmod +x /usr/local/bin/kubectl | ||
FROM ubuntu:22.04 AS build | ||
RUN apt-get update \ | ||
&& apt-get install -y curl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ARG KUBE_LATEST_VERSION="v1.25.2" | ||
RUN cd /root \ | ||
&& curl -LO https://dl.k8s.io/release/${KUBE_LATEST_VERSION}/bin/linux/amd64/kubectl \ | ||
&& curl -LO https://dl.k8s.io/release/${KUBE_LATEST_VERSION}/bin/linux/amd64/kubectl.sha256 \ | ||
&& echo "$(cat kubectl.sha256) kubectl" | sha256sum --check \ | ||
&& chmod -v +x kubectl | ||
|
||
FROM ubuntu:22.04 AS final | ||
|
||
COPY --from=build /root/kubectl /usr/local/bin/kubectl | ||
COPY textfile_collector.sh / | ||
|
||
ENTRYPOINT ["/textfile_collector.sh"] | ||
LABEL maintainer="OpenEBS" |