From fd4119d6e879ad7199013abe48d61643c6f78883 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Wed, 5 Mar 2025 08:27:23 +0100 Subject: [PATCH] chore(kb): add installation methods after experimenting with automation in pipelines --- knowledge base/lefthook.md | 8 ++++++-- knowledge base/pulumi.md | 14 ++++++++++++++ knowledge base/task.md | 2 ++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/knowledge base/lefthook.md b/knowledge base/lefthook.md index 1e907f4..d1497da 100644 --- a/knowledge base/lefthook.md +++ b/knowledge base/lefthook.md @@ -1,5 +1,7 @@ # Lefthook +Git hooks manager. + 1. [TL;DR](#tldr) 1. [Configuration](#configuration) 1. [Extend other files](#extend-other-files) @@ -11,10 +13,12 @@ ```sh # Installation. +brew install 'lefthook' +gem install 'lefthook' go install 'github.com/evilmartians/lefthook@latest' npm install 'lefthook' --save-dev -gem install 'lefthook' -brew install 'lefthook' +pip install --user 'lefthook' +yay -S 'lefthook-bin' # Get help about any command. lefthook help diff --git a/knowledge base/pulumi.md b/knowledge base/pulumi.md index 8d77d03..5ce379a 100644 --- a/knowledge base/pulumi.md +++ b/knowledge base/pulumi.md @@ -49,6 +49,7 @@ Target single resources with `-t`, `--target`. Target also those that depend on # Install. brew install 'pulumi/tap/pulumi' choco install 'pulumi' +docker pull 'pulumi/pulumi' # pulumi/pulumi-[nodejs|python|java|…]:3.148.0 # Create completions for the shell. source <(pulumi gen-completion 'zsh') @@ -61,6 +62,17 @@ pulumi gen-completion 'fish' > "$HOME/.config/fish/completions/pulumi.fish" Usage ```sh +# Run in Docker +docker container run --rm --name 'pulumi' \ + --volume 'pulumi-home:/root/.pulumi:rw' \ + --volume "${PWD}:/pulumi/projects:rw" \ + --env 'PULUMI_SKIP_UPDATE_CHECK=true' \ + --volume "${HOME}/.aws:/root/.aws:ro" \ + --env 'AWS_REGION' --env 'AWS_ACCESS_KEY_ID' --env 'AWS_SECRET_ACCESS_KEY' \ + --volume "${HOME}/.config/gcloud:/root/.config/gcloud:ro" \ + 'pulumi/pulumi-nodejs:3.153.1' \ + pulumi … + # List available templates. pulumi new -l pulumi new --list-templates @@ -935,6 +947,7 @@ Solution: follow the suggestion in the warning message: - [Resources reference] - [Things I wish I knew earlier about Pulumi] - [Enable pulumi refresh to solve pending creates] +- [Docker images] ### Sources @@ -1000,4 +1013,5 @@ Solution: follow the suggestion in the warning message: [assigning tags by default on aws with pulumi]: https://blog.scottlowe.org/2023/09/11/assigning-tags-by-default-on-aws-with-pulumi/ +[docker images]: https://hub.docker.com/u/pulumi [things i wish i knew earlier about pulumi]: https://vsupalov.com/pulumi-learnings/ diff --git a/knowledge base/task.md b/knowledge base/task.md index 40f32df..dafc7c9 100644 --- a/knowledge base/task.md +++ b/knowledge base/task.md @@ -49,8 +49,10 @@ variables** with the same name. # Install the executable. brew install 'go-task' choco install 'go-task' +docker pull 'taskfile/task' dnf install 'go-task' go install 'github.com/go-task/task/v3/cmd/task@latest' +pip install --user 'go_task_bin' snap install 'task' --classic zypper install 'https://github.com/go-task/task/releases/download/v3.39.2/task_linux_amd64.rpm'