feat: add krew plugins

This commit is contained in:
Bastien Riviere 2024-10-15 22:37:56 +02:00
parent 23e085f375
commit 0e8cf5c63a
Signed by: babariviere
GPG key ID: 4E5F0839249F162E
3 changed files with 14 additions and 3 deletions

View file

@ -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 && \

4
krew-plugins Normal file
View file

@ -0,0 +1,4 @@
cilium
node-shell
popeye
rook-ceph

View file

@ -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