Merge branch 'master' of github.com:jmhbnz/tooling
This commit is contained in:
5
.bashrc
5
.bashrc
@ -100,6 +100,11 @@ elif [ -f ~/.bw_session ]; then export BW_SESSION=$(cat ~/.bw_session);
|
|||||||
# Otherwise unlock to start new session
|
# Otherwise unlock to start new session
|
||||||
else bwu; fi
|
else bwu; fi
|
||||||
|
|
||||||
|
# Helper function for tmate pane renaming
|
||||||
|
function renamepane {
|
||||||
|
printf '\033]2;%s\033\\' "${1}"
|
||||||
|
}
|
||||||
|
|
||||||
# Try connect to my default tmate socket
|
# Try connect to my default tmate socket
|
||||||
if ! tmate -S /tmp/default.tmate attach; then
|
if ! tmate -S /tmp/default.tmate attach; then
|
||||||
tmate -S /tmp/default.tmate.tmate new-session -s default -n default -d
|
tmate -S /tmp/default.tmate.tmate new-session -s default -n default -d
|
||||||
|
|||||||
@ -50,6 +50,18 @@ curl -L "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:
|
|||||||
sudo apt update && sudo apt --yes install podman
|
sudo apt update && sudo apt --yes install podman
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
|
When working with kubernetes applications we often use [[https://helm.sh][helm]], unfortunately we need an extra ~apt~ repository for this so let's add that now and install.
|
||||||
|
|
||||||
|
#+NAME: Install helm
|
||||||
|
#+BEGIN_SRC tmate
|
||||||
|
curl https://baltocdn.com/helm/signing.asc | sudo apt-key add -
|
||||||
|
echo "deb https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
|
||||||
|
sudo apt-get update && sudo apt install -y helm
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Finally, we should upgrade the python package manger ~pip~ that we installed, before using it to install [[https://github.com/containers/podman-compose][podman-compose]].
|
Finally, we should upgrade the python package manger ~pip~ that we installed, before using it to install [[https://github.com/containers/podman-compose][podman-compose]].
|
||||||
|
|
||||||
#+NAME: Upgrade pip
|
#+NAME: Upgrade pip
|
||||||
@ -132,8 +144,8 @@ For working with google cloud platform we use the [[https://cloud.google.com/sdk
|
|||||||
# Download the sdk archive
|
# Download the sdk archive
|
||||||
curl -o gcpsdk.tar -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-375.0.0-linux-x86_64.tar.gz
|
curl -o gcpsdk.tar -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-375.0.0-linux-x86_64.tar.gz
|
||||||
|
|
||||||
# Extract to a folder in path
|
# Extract to a folder in path then remove archive
|
||||||
sudo tar xvf gcpsdk.tar -C /usr/local/
|
sudo tar xvf gcpsdk.tar -C /usr/local/ && rm gcpsdk.tar
|
||||||
|
|
||||||
# Correct folder permissions
|
# Correct folder permissions
|
||||||
sudo chown -R $USER:$USER /usr/local/google-cloud-sdk
|
sudo chown -R $USER:$USER /usr/local/google-cloud-sdk
|
||||||
|
|||||||
Reference in New Issue
Block a user