chore: new kubernetes packages
This commit is contained in:
parent
0cb4130bb4
commit
d53c764293
5 changed files with 12 additions and 6 deletions
|
@ -1,5 +1,4 @@
|
|||
#!/bin/sh
|
||||
apt install apt-transport-https sudo wget curl gnupg
|
||||
echo "deb [signed-by=/etc/apt/trusted.gpg.d/elasticsearch.gpg] https://artifacts.elastic.co/packages/7.x/apt stable main"| \
|
||||
tee /etc/apt/sources.list.d/elastic-7.x.list
|
||||
curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | \
|
||||
|
|
2
packages/helm/linux
Executable file
2
packages/helm/linux
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
|
|
@ -1,16 +1,15 @@
|
|||
#!/bin/sh
|
||||
set -eo pipefail
|
||||
#!/bin/sh -e
|
||||
# From https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=instalee-git
|
||||
_pkgname='instalee'
|
||||
cd "$(readlink /proc/$(ps -o ppid= $(ps -o ppid= $PPID) | tr -d ' ')/cwd || $dir_home)"
|
||||
pkgdir=/tmp
|
||||
cd "$(readlink /proc/$(ps -o ppid= $PPID | tr -d ' ')/cwd || $dir_home)"
|
||||
#cd "$(readlink /proc/$(ps -o ppid= $(ps -o ppid= $PPID) | tr -d ' ')/cwd || $dir_home)"
|
||||
usrdir="${pkgdir}/usr/local"
|
||||
bin="${usrdir}/bin"
|
||||
sudo install -D --target-directory "${usrdir}/share/doc/${_pkgname}/" *.md
|
||||
sudo install -D --target-directory "${usrdir}/share/man/man1/" "${_pkgname}.1"
|
||||
sudo install -D --target-directory "$bin" "${_pkgname}"
|
||||
|
||||
pkgver="$(git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")"
|
||||
pkgver="$({ git describe --long --tags 2>/dev/null || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"; } | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' )"
|
||||
sudo sed -i "s/r%s.%s/version ${pkgver}/" "$bin/${_pkgname}"
|
||||
|
||||
echo -n "Installed "
|
||||
|
|
2
packages/k9s/linux
Executable file
2
packages/k9s/linux
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
curl -sS https://webi.sh/k9s | sh
|
4
packages/kubectl/apt
Executable file
4
packages/kubectl/apt
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh -e
|
||||
sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg
|
||||
echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
|
||||
echo kubectl
|
Loading…
Add table
Reference in a new issue