⚡ Advanced
You can run various tools inside the container for reproducible environments:
docker run --rm -it \
-v "${PWD}:/workspace" \
-w "/workspace" \
build-agent:latest pwsh -Command "./build.ps1 --type docker"
🛠️ Tools Available in the Build Agent
The Build Agent Docker image comes pre-installed with a variety of tools for advanced automation and scripting:
- 🟢 Node.js & NPM
- 🅰️ Angular CLI (
ng
) - 🟣 .NET 8 SDK (
dotnet
) - 🐳 Docker CLI (
docker
) - 💻 PowerShell (
pwsh
) - 🗃️ Git
- 🔢 GitVersion
- 🏗️ Nuke Build
- 📝 TypeScript (
tsc
) - 🌐 angular-cli-ghpages
Example:
docker run --rm -it \
-v "${PWD}:/workspace" \
-w "/workspace" \
build-agent:latest <Provide a Call to Your Tool>
Below are some fictional examples of how you might call the agent to use these tools:
Example: Run Angular CLI
pwsh -Command "ng build --configuration production"
Example: Use GitVersion to get semantic version
pwsh -Command "gitversion /output json"
Example: Build and push a Docker image
docker build -t my-app:latest .
docker push my-app:latest
Example: Run a custom Nuke build target
pwsh -Command "nuke --target Publish"
Example: Compile TypeScript
tsc src/index.ts --outDir dist