Dagger is a CI/CD focused container scripting engine.
Using the Python/Go/TypeScript SDKs, Dagger can:
- Define container images (like
Dockerfiles) - Run containers (like
docker runanddocker-compose)
Plus everything Python/Go/TypeScript can do.
| # This hook rebuilds the Neovim python virtual | |
| # environment when the system python is upgraded. | |
| # There are 3 steps: | |
| # 1. Remove old venv | |
| # 2. Create new venv | |
| # 3. Install neovim package | |
| [Trigger] | |
| Operation = Upgrade |
| from typing import Final | |
| import os | |
| import asyncio | |
| import json | |
| import requests | |
| import websockets | |
| BASE_URL: Final = f"https://discord.com/api/v9" |
| # Updates pipx packages | |
| # Place this in the HookDir specified in your pacman.conf | |
| # See https://man.archlinux.org/man/alpm-hooks.5 for more info | |
| # (Works with Pacman v6.0.0 - libalpm v13.0.0) | |
| [Trigger] | |
| Operation = Install | |
| Operation = Upgrade | |
| Operation = Remove | |
| Type = Package | |
| Target = * |