Building Nodes
About 372 wordsAbout 1 min
When using cloud-native builds, you are essentially distributing build tasks to various build nodes for execution.
These nodes perform build tasks using a specified Docker image as the build environment.
Configuration Method
In the pipeline configuration, you can specify the pipeline.runner.tags property to select different build nodes.
By specifying the pipeline.runner.cpus property, you can configure the maximum number of CPU cores to be used.
The official available tags is as follows:
cnb:arch:amd64- The
CPUwith theamd64architecture. - The
runner.cpuscan be configured in the range of 1 to 64, with a default value of 8. Cloud-Native Build - Maximum Available Time20 hours.Cloud-Native Development - Maximum Available Time18 hours.
- The
cnb:arch:arm64:v8- The
CPUwith thearm64/v8architecture. - The
runner.cpuscan be configured in the range of 1 to 16, with a default value of 8. Cloud-Native Build - Maximum Available Time20 hours.Cloud-Native Development - Maximum Available Time18 hours.
- The
cnb:arch:amd64:gpu- The
CPUwith theamd64architecture. - The
runner.cpusis fixed at 16. - The
GPUmemory has a maximum of 48GB, operating in shared mode. Cloud-Native Build - Maximum Available Time4 hoursCloud-Native Development - Maximum Available Time4 hours
- The
cnb:arch:amd64:gpu:H20-- Not recommended, as H20 has been discontinued- The
CPUwith theamd64architecture. - The
runner.cpusis fixed at 32. - The
GPUmemory has a maximum of 96GB, operating in shared mode. Cloud-Native Build - Maximum Available Time4 hours.Cloud-Native Development - Maximum Available Time4 hours.
- The
cnb:arch:amd64:gpu:L40- The
CPUwith theamd64architecture. - The
runner.cpusis fixed at 16. - The
GPUmemory has a maximum of 48GB, operating in shared mode. Cloud-Native Build - Maximum Available Time4 hours.Cloud-Native Development - Maximum Available Time4 hours.
- The
Example:
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 remote development environment with GPU access
tags: cnb:arch:amd64:gpu
services:
- vscode