DemandFlow Support Centre

DOCKERBUILD: Docker Build

ReferenceEntity Reference16/04/2026Updated 16/04/2026
A Docker image build execution recording the pipeline run, source commit, build steps, test results, and output artifacts.

DOCKERBUILD: Docker Build

A Docker image build execution recording the pipeline run, source commit, build steps, test results, and output artifacts.

Default definition. This article describes the default DOCKERBUILD definition shipped with DemandFlow. Administrators can add, remove, rename, or re-type fields, change which ones are required, and alter the layout from the Definitions screen in Settings. Your tenant's current schema may differ from what is shown here. To read the current definition at any time, GET the DEFINITION object whose id matches DOCKERBUILD.

Entity properties

PropertyValue
Entity codeDOCKERBUILD
Display nameDocker Build
PluralDocker Builds
Level422

Use cases

DOCKERBUILD represents a single build execution, distinct from DOCKERIMAGE which is the resulting artifact. The General panel links to the target DOCKERIMAGE (objectLookup), captures build number, status (Pending, Running, Success, Failed, Cancelled, Timeout), git repository/branch/commit, Dockerfile path, build context, and trigger type. Build Timing records start/end times, duration, queue time, build agent, and who triggered it -- essential for CI/CD pipeline analytics. Build Steps captures the pipeline as JSON with pre-build and post-build steps, enabling complex multi-stage workflows. Build Arguments handles Docker build args, multi-stage target, platform selection for multi-arch builds, environment variables, secrets, and SSH keys. Cache & Optimization configures BuildKit, cache sources/destinations, cache mode, layer squashing, parallel builds, and resource limits (CPU, memory, timeout), because build performance directly impacts developer productivity. Output records the destination registry (objectLookup to DOCKERREGISTRY), output tags, push status, image size, and layer count, plus artifacts like SBOM and build attestations for supply chain security. Testing covers unit, integration, security, smoke, and performance tests with pass/fail/skip counts and code coverage. Security provides vulnerability scanning with severity counts, signing configuration, and security policy enforcement. Logs stores the complete build output and error logs. Notifications configures per-build alerting. Metrics tracks build resource consumption and efficiency.

Fields

Build Information

FieldTypeRequiredNotes
nametextYesBuild Name.
targetImagereference → DOCKERIMAGEYesTarget Image.
buildNumbernumberBuild Number. Read only.
buildIdtextBuild ID. Read only.
statusenumYesValid ids: 1 (Pending), 2 (Running), 3 (Success), 4 (Failed), 5 (Cancelled), 6 (Timeout).

Build Configuration

FieldTypeRequiredNotes
gitRepositorytext (URL)YesGit Repository.
gitBranchtextGit Branch.
gitCommittextGit Commit.
dockerfilePathtextPath to Dockerfile
buildContexttextBuild context directory
triggerTypeenumValid ids: 1 (Manual), 2 (Git Push), 3 (Pull Request), 4 (Tag), 5 (Schedule), 6 (API), 7 (Webhook).
targetClusterreference → K8SCLUSTERDeploy to Cluster.
targetNamespacereference → K8SNAMESPACEDeploy to Namespace.

Build Timing

FieldTypeRequiredNotes
startTimedatetimeStart Time. Read only.
endTimedatetimeEnd Time. Read only.
durationnumberDuration (min). Read only.
queueTimenumberQueue Time (min). Read only.
buildAgenttextBuild Agent. Read only.
triggeredByreference → userTriggered By. Read only.

Build Pipeline

FieldTypeRequiredNotes
buildStepstext (multi-line)Build pipeline steps (JSON)
preBuildStepstext (multi-line)Steps before Docker build
postBuildStepstext (multi-line)Steps after Docker build
currentSteptextCurrent Step. Read only.
totalStepsnumberTotal Steps. Read only.

Build Arguments

FieldTypeRequiredNotes
buildArgstext (multi-line)Docker build arguments (JSON)
buildTargettextMulti-stage target
buildPlatformmultiselectBuild Platforms.

Environment Variables

FieldTypeRequiredNotes
envVarstext (multi-line)Build environment (JSON)
secretstext (multi-line)Secret references
sshKeystext (multi-line)SSH agent forwarding

Build Optimization

FieldTypeRequiredNotes
cacheEnabledbooleanCache Enabled.
cacheFromtext (multi-line)Images to use as cache sources
cacheTotextCache export destination
cacheModeenumValid ids: 1 (Min), 2 (Max), 3 (Inline), 4 (Registry).
buildKitbooleanBuildKit Enabled.
squashbooleanSquash Layers.
parallelBuildsnumberParallel Builds.
cpuLimitnumberCPU cores
memoryLimitnumberMemory Limit (GB).
timeoutnumberTimeout (min).

Build Output

FieldTypeRequiredNotes
outputRegistryreference → DOCKERREGISTRYOutput Registry.
outputTagstext (multi-line)Tags to apply to built image
pushEnabledbooleanAuto Push.
pushStatusenumValid ids: 1 (Not Pushed), 2 (Pushing), 3 (Pushed), 4 (Failed).
imageSizenumberImage Size (MB). Read only.
layerCountnumberLayer Count. Read only.

Artifacts

FieldTypeRequiredNotes
artifactstext (multi-line)Additional artifacts produced
sbomtext (multi-line)Software Bill of Materials
attestationstext (multi-line)Build attestations
exportPathtextLocal export path

Build Testing

FieldTypeRequiredNotes
testEnabledbooleanTesting Enabled.
testTypemultiselectTest Types.
testResultstext (multi-line)Test Results. Read only.
testsPassednumberTests Passed. Read only.
testsFailednumberTests Failed. Read only.
testsSkippednumberTests Skipped. Read only.
codeCoveragegaugeCode Coverage %. Read only.

Security Scanning

FieldTypeRequiredNotes
securityScanbooleanSecurity Scan Enabled.
scanResultstext (multi-line)Scan Results. Read only.
criticalVulnsnumberCritical. Read only.
highVulnsnumberHigh. Read only.
mediumVulnsnumberMedium. Read only.
lowVulnsnumberLow. Read only.
securityPoliciestext (multi-line)Applied security policies
signImagebooleanSign Image.
signingKeytextSigning Key.

Build Logs

FieldTypeRequiredNotes
buildLogtext (multi-line)Complete build output Read only.
errorLogtext (multi-line)Error messages Read only.
logSizenumberLog Size (KB). Read only.
downloadLogtext (URL)Download Log. Read only.

Build Notifications

FieldTypeRequiredNotes
notifyOnCompletebooleanNotify on Complete.
notifyOnFailurebooleanNotify on Failure.
notifyChannelsmultiselectNotification Channels.
notifyRecipientstext (multi-line)Notification recipients
webhookURLtext (URL)Webhook URL.
slackChanneltextSlack Channel.
teamsChanneltextTeams Channel.

Build Metrics

FieldTypeRequiredNotes
cpuUsagegaugeCPU Usage %. Read only.
memoryUsagegaugeMemory Usage %. Read only.
diskIOnumberDisk I/O (MB/s). Read only.
networkIOnumberNetwork I/O (MB/s). Read only.
cacheHitRategaugeCache Hit Rate %. Read only.
layerReusegaugeLayer Reuse %. Read only.
buildEfficiencygaugeBuild Efficiency %. Read only.
costnumberBuild Cost. Read only.

Relationships

  • Lookup: targetImage (reference → DOCKERIMAGE).
  • Lookup: targetCluster (reference → K8SCLUSTER).
  • Lookup: targetNamespace (reference → K8SNAMESPACE).
  • Lookup: outputRegistry (reference → DOCKERREGISTRY).

Creating a Docker Build via the API

POST /v1/objects
Authorization: Bearer <your-pat>
Content-Type: application/json

{
  "entity":   "DOCKERBUILD",
  "level":    422,
  "comboKey": "SUB:<your-sub-id>|ENT:",
  "name": "Example name",
  "targetImage": "",
  "status": "1",
  "gitRepository": "https://example.com"
}

Listing Docker Builds records

GET /v1/entities/DOCKERBUILD/SUB:<your-sub-id>

See also

dockerbuilddockerbuildbuildsimageexecutionrecordingpipelinesourcecommit

Was this article helpful?

← Back to Knowledge Base