🚀 Fast Track
Quick Start Examples
The Build Agent supports 4 different build types. Here are the most common scenarios to get you started quickly:
💡 Need help choosing? Check out our comprehensive Build Types Reference for detailed comparisons, parameters, and decision guidance.
🐳 Docker Image Build
Creates a Docker image for your project artifacts (from the default ArtifactsDir
).
- Map your project directory (
./
) to/workspace
- Expose the Docker host to the container, either through docker.sock volume bind (on Linux) or DOCKER_HOST environment variable.
- Optional: provide a Dockerfile in your project directory, or use a Docker Template automatically.
- Execute
docker-build
# Expose Docker host with volume bind
docker run `
-v /var/run/docker.sock:/var/run/docker.sock \
-v ./:/workspace \
-it ghcr.io/the-running-dev/build-agent:latest \
docker-build
# Expose Docker host with environment variable
& docker run `
-e DOCKER_HOST=tcp://host.docker.internal:2375 `
-v ./:/workspace `
-it ghcr.io/the-running-dev/build-agent:latest `
docker-build
This will run the Docker
forge with all it's targets and default parameters, and build your Docker image.
🟢 Node.js Application Build
- Map your project directory (
./
) to/workspace
- Define a
build:prod
npm script inside yourpackage.json
- Execute
node-build
& docker run `
-v ./:/workspace `
-it ghcr.io/the-running-dev/build-agent:latest `
node-build
This will run the Node
forge with all it's targets and default parameters, and build your Node application.
By default, the Node
build target runs 2 scripts:
- npm install
- npm run build:prod
You can customize this by specifying your own .build.scripts
, see customization.
🟢 🐳 Node.js + Docker Combined Build
- Map your project directory (
./
) to/workspace
- Expose the Docker host to the container, either through docker.sock volume bind (on Linux) or DOCKER_HOST environment variable.
- Define a
build:prod
npm script inside yourpackage.json
- Execute
node-in-docker-build
& docker run `
-e DOCKER_HOST=tcp://host.docker.internal:2375 `
-v ./:/workspace
-it ghcr.io/the-running-dev/build-agent:latest `
node-in-docker-build
This will run the Node
forge with all it's targets and default parameters, and build your Node application. And after that, it will run the Docker
forge with all it's targets and default parameters, and build your Docker image.
📚 Learn More
These examples show the most common use cases. For complete information about all build types, parameters, and advanced scenarios:
- Build Types Reference - Comprehensive guide to all 4 build commands
- Parameters - Detailed parameter documentation
- Customization - Advanced configuration options