From f810897426c8bc73135ab9c61a5a2ab6d59c3902 Mon Sep 17 00:00:00 2001 From: James Blair Date: Sun, 6 Mar 2022 17:50:23 +1300 Subject: [PATCH 1/3] Add bashrc helper for renaming tmate panes. --- .bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.bashrc b/.bashrc index 55eb2ed..7788542 100644 --- a/.bashrc +++ b/.bashrc @@ -100,6 +100,11 @@ elif [ -f ~/.bw_session ]; then export BW_SESSION=$(cat ~/.bw_session); # Otherwise unlock to start new session else bwu; fi +# Helper function for tmate pane renaming +function renamepane { + printf '\033]2;%s\033\\' "${1}" +} + # Try connect to my default tmate socket if ! tmate -S /tmp/default.tmate attach; then tmate -S /tmp/default.tmate.tmate new-session -s default -n default -d From d6e5e39ddb6c6d2a65fc0298f039734fd483c067 Mon Sep 17 00:00:00 2001 From: James Blair Date: Sun, 6 Mar 2022 17:58:46 +1300 Subject: [PATCH 2/3] Remove the gcpsdk tar file after extracting. --- mint-setup.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mint-setup.org b/mint-setup.org index 6686d9f..7e8cbd3 100644 --- a/mint-setup.org +++ b/mint-setup.org @@ -132,8 +132,8 @@ For working with google cloud platform we use the [[https://cloud.google.com/sdk # 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 -# Extract to a folder in path -sudo tar xvf gcpsdk.tar -C /usr/local/ +# Extract to a folder in path then remove archive +sudo tar xvf gcpsdk.tar -C /usr/local/ && rm gcpsdk.tar # Correct folder permissions sudo chown -R $USER:$USER /usr/local/google-cloud-sdk From 343733dd9c563d8dbc3add408bd954e9631267f0 Mon Sep 17 00:00:00 2001 From: James Blair Date: Sun, 1 May 2022 09:30:57 +1200 Subject: [PATCH 3/3] Ensure helm is part of standard mint tooling. --- mint-setup.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mint-setup.org b/mint-setup.org index 7e8cbd3..5ae97e7 100644 --- a/mint-setup.org +++ b/mint-setup.org @@ -50,6 +50,18 @@ curl -L "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers: sudo apt update && sudo apt --yes install podman #+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]]. #+NAME: Upgrade pip