From 0e8cf5c63aba7f6cf15814a195d9c9f53f2bbaa8 Mon Sep 17 00:00:00 2001 From: Bastien Riviere Date: Tue, 15 Oct 2024 22:37:56 +0200 Subject: [PATCH] feat: add krew plugins --- Containerfile | 11 ++++++++--- krew-plugins | 4 ++++ extra-packages => packages | 2 ++ 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 krew-plugins rename extra-packages => packages (95%) diff --git a/Containerfile b/Containerfile index 897da87..79c9e8e 100644 --- a/Containerfile +++ b/Containerfile @@ -7,17 +7,22 @@ LABEL com.github.containers.toolbox="true" \ RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories -COPY extra-packages / +COPY packages / RUN apk update && \ apk upgrade && \ - grep -v '^#' /extra-packages | xargs apk add -RUN rm /extra-packages + grep -v '^#' /packages | xargs apk add +RUN rm /packages COPY go-packages / RUN grep -v '^#' /go-packages | xargs -n1 go install RUN rm /go-packages RUN mv /root/go/bin/* /usr/local/bin/ +COPY krew-plugins / +RUN grep -v '^#' /krew-plugins | xargs -n1 kubectl krew install +RUN rm /krew-plugins +RUN mv /root/.krew/bin/* /usr/local/bin/ + RUN ln -fs /bin/sh /usr/bin/sh && \ ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/docker && \ ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/flatpak && \ diff --git a/krew-plugins b/krew-plugins new file mode 100644 index 0000000..9b1c344 --- /dev/null +++ b/krew-plugins @@ -0,0 +1,4 @@ +cilium +node-shell +popeye +rook-ceph diff --git a/extra-packages b/packages similarity index 95% rename from extra-packages rename to packages index 77c9610..f3835d6 100644 --- a/extra-packages +++ b/packages @@ -28,6 +28,7 @@ k9s kakoune kubectl kubectl-bash-completion +kubectl-krew kubectx kubectx-bash-completion kustomize @@ -40,6 +41,7 @@ ncurses plocate podman-tui ripgrep +cargo rust sad sops