Building Nodes
About 235 wordsLess than 1 minute
Cloud-native builds distribute tasks to build nodes for execution. The cluster uses a specified Docker image as the build environment.
Configuration Method
Use pipeline.runner.tags to specify the build node, and pipeline.runner.cpus to configure the CPU core count.
Available Nodes
| Tags | Architecture | CPU Cores | GPU Memory | Build Max Time | Dev Max Time |
|---|---|---|---|---|---|
cnb:arch:amd64 | amd64 | 1 ~ 64 (default 8) | - | 20 hours | 18 hours |
cnb:arch:arm64:v8 | arm64/v8 | 1 ~ 16 (default 8) | - | 20 hours | 18 hours |
cnb:arch:amd64:gpu | amd64 | Fixed 16 | 48GB (shared) | 4 hours | 4 hours |
cnb:arch:amd64:gpu:H20 | amd64 | Fixed 32 | 96GB (shared) | 4 hours | 4 hours |
cnb:arch:amd64:gpu:L40 | amd64 | Fixed 16 | 48GB (shared) | 4 hours | 4 hours |
Warning
cnb:arch:amd64:gpu:H20 is not recommended as H20 has been discontinued.
Example
.cnb.yml
main:
push:
- runner:
# Execute on amd64 build node
tags: cnb:arch:amd64
cpus: 8
stages:
- name: uname
script: uname -a
- runner:
# Execute on arm64/v8 build node
tags: cnb:arch:arm64:v8
cpus: 8
stages:
- name: uname
script: uname -a
$:
vscode:
- runner:
# Start a Workspaces environment with GPU access
tags: cnb:arch:amd64:gpu
services:
- vscode