Last active
August 14, 2024 21:34
-
-
Save tuffacton/80c8d32519a4bcb1d59608d0651a8981 to your computer and use it in GitHub Desktop.
Revisions
-
tuffacton revised this gist
Aug 14, 2024 . 1 changed file with 1 addition and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,4 @@ FROM docker:dind AS docker-cli-stage FROM moby/buildkit:master-rootless COPY --from=kubectl /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/ COPY --from=docker-cli-stage /usr/local/bin/docker /usr/local/bin/docker -
tuffacton revised this gist
Aug 14, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -7,4 +7,4 @@ COPY --from=kubectl /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/ COPY --from=docker-cli-stage /usr/local/bin/docker /usr/local/bin/docker RUN docker --version RUN kubectl version -
tuffacton revised this gist
Aug 14, 2024 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,10 @@ FROM bitnami/kubectl:1.20.9 AS kubectl FROM docker:dind AS docker-cli-stage FROM moby/buildkit:master-rootless COPY --from=kubectl /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/ COPY --from=docker-cli-stage /usr/local/bin/docker /usr/local/bin/docker RUN docker --version RUN kubectl --version -
tuffacton revised this gist
Aug 14, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ FROM bitnami/kubectl:1.20.9 AS kubectl FROM moby/buildkit:master-rootless COPY --from=kubectl /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/ -
tuffacton revised this gist
Aug 14, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ FROM bitnami/kubectl:1.20.9 AS kubectl FROM moby/buildkit:latest COPY --from=kubectl /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/ -
tuffacton revised this gist
Aug 14, 2024 . No changes.There are no files selected for viewing
-
tuffacton revised this gist
Aug 14, 2024 . 1 changed file with 3 additions and 14 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,4 @@ FROM bitnami/kubectl:1.20.9 as kubectl FROM moby/buildkit:latest COPY --from=kubectl /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/ -
tuffacton revised this gist
Aug 14, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ # Add kubectl to the Docker container FROM alpine:latest AS kubectl # Specify the kubectl version to download ARG KUBECTL_VERSION=v1.28.2 -
tuffacton created this gist
Aug 14, 2024 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # Add kubectl to the Docker container FROM alpine:${ALPINE_VERSION} AS kubectl # Specify the kubectl version to download ARG KUBECTL_VERSION=v1.28.2 # Install kubectl RUN apk add --no-cache curl && \ curl -LO "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/$(uname -m)/kubectl" && \ chmod +x kubectl && \ mv kubectl /usr/local/bin/ # Copy kubectl into the main image FROM moby/buildkit:master-rootless AS final-image COPY --from=kubectl /usr/local/bin/kubectl /usr/local/bin/kubectl