-
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.
feat: build kubectl UBI based image (#730)
* feat: build kubectl UBI based image Signed-off-by: Dominik Rosiek <[email protected]> * chore: build dev-builds Signed-off-by: Dominik Rosiek <[email protected]> * chore: add io.k8s.description label Signed-off-by: Dominik Rosiek <[email protected]> * chore: fix override Signed-off-by: Dominik Rosiek <[email protected]> --------- Signed-off-by: Dominik Rosiek <[email protected]>
- Loading branch information
1 parent
0d1e663
commit 4d9b9e1
Showing
6 changed files
with
97 additions
and
4 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
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
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
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,26 @@ | ||
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.6 | ||
|
||
ARG TARGETARCH | ||
ARG TARGETOS | ||
ARG BUILD_TAG | ||
|
||
ENV KUBECTL_VERSION="v1.26.4" | ||
ADD https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/${TARGETOS}/${TARGETARCH}/kubectl /usr/bin/kubectl | ||
RUN chmod +x /usr/bin/kubectl | ||
|
||
ENV SUMMARY="UBI based Kubectl Sumo Logic Tools image" \ | ||
DESCRIPTION="Sumo Logic Tools image containing kubectl binary" | ||
|
||
LABEL name="Sumo Logic Kubernetes tools" \ | ||
vendor="Sumo Logic" \ | ||
version="${BUILD_TAG}" \ | ||
release="1" \ | ||
summary="$SUMMARY" \ | ||
description="$DESCRIPTION" \ | ||
io.k8s.description="$DESCRIPTION" \ | ||
maintainer="[email protected]" | ||
|
||
ADD LICENSE \ | ||
/licenses/LICENSE | ||
|
||
USER 65532:65532 |
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
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