chore(kb): add installation methods after experimenting with automation in pipelines

This commit is contained in:
Michele Cereda
2025-03-05 08:27:23 +01:00
parent f693484b98
commit fd4119d6e8
3 changed files with 22 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
# Lefthook # Lefthook
Git hooks manager.
1. [TL;DR](#tldr) 1. [TL;DR](#tldr)
1. [Configuration](#configuration) 1. [Configuration](#configuration)
1. [Extend other files](#extend-other-files) 1. [Extend other files](#extend-other-files)
@@ -11,10 +13,12 @@
```sh ```sh
# Installation. # Installation.
brew install 'lefthook'
gem install 'lefthook'
go install 'github.com/evilmartians/lefthook@latest' go install 'github.com/evilmartians/lefthook@latest'
npm install 'lefthook' --save-dev npm install 'lefthook' --save-dev
gem install 'lefthook' pip install --user 'lefthook'
brew install 'lefthook' yay -S 'lefthook-bin'
# Get help about any command. # Get help about any command.
lefthook help lefthook help

View File

@@ -49,6 +49,7 @@ Target single resources with `-t`, `--target`. Target also those that depend on
# Install. # Install.
brew install 'pulumi/tap/pulumi' brew install 'pulumi/tap/pulumi'
choco install 'pulumi' choco install 'pulumi'
docker pull 'pulumi/pulumi' # pulumi/pulumi-[nodejs|python|java|…]:3.148.0
# Create completions for the shell. # Create completions for the shell.
source <(pulumi gen-completion 'zsh') source <(pulumi gen-completion 'zsh')
@@ -61,6 +62,17 @@ pulumi gen-completion 'fish' > "$HOME/.config/fish/completions/pulumi.fish"
<summary>Usage</summary> <summary>Usage</summary>
```sh ```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. # List available templates.
pulumi new -l pulumi new -l
pulumi new --list-templates pulumi new --list-templates
@@ -935,6 +947,7 @@ Solution: follow the suggestion in the warning message:
- [Resources reference] - [Resources reference]
- [Things I wish I knew earlier about Pulumi] - [Things I wish I knew earlier about Pulumi]
- [Enable pulumi refresh to solve pending creates] - [Enable pulumi refresh to solve pending creates]
- [Docker images]
### Sources ### Sources
@@ -1000,4 +1013,5 @@ Solution: follow the suggestion in the warning message:
<!-- Others --> <!-- Others -->
[assigning tags by default on aws with pulumi]: https://blog.scottlowe.org/2023/09/11/assigning-tags-by-default-on-aws-with-pulumi/ [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/ [things i wish i knew earlier about pulumi]: https://vsupalov.com/pulumi-learnings/

View File

@@ -49,8 +49,10 @@ variables** with the same name.
# Install the executable. # Install the executable.
brew install 'go-task' brew install 'go-task'
choco install 'go-task' choco install 'go-task'
docker pull 'taskfile/task'
dnf install 'go-task' dnf install 'go-task'
go install 'github.com/go-task/task/v3/cmd/task@latest' go install 'github.com/go-task/task/v3/cmd/task@latest'
pip install --user 'go_task_bin'
snap install 'task' --classic snap install 'task' --classic
zypper install 'https://github.com/go-task/task/releases/download/v3.39.2/task_linux_amd64.rpm' zypper install 'https://github.com/go-task/task/releases/download/v3.39.2/task_linux_amd64.rpm'