The Stack Build Resource

Attributes
  • id
    string

    The ID of the build.

  • creator
    object
    includable

    A creator object. Describes who created the resource.

    Show child fields
  • hub_id
    string

    The ID of the hub the stack is associated with.

  • stack_id
    string

    The ID of the stack the build is associated with.

  • spec
    object

    The stack spec object, as captured at time of build. For a breakdown of the stack spec, see the stack spec reference.

  • label
    string | null

    The label applied to the build, usually from a hook.

  • version
    string | null

    The version label applied to the build, usually from a hook.

  • state
    object

    Information regarding the current state of the build.

    Show child fields
  • events
    object

    A collection of timestamps for each event in the build's lifetime.

    Show child fields
  • meta
    object
    optional

    A list of meta fields that can be applied to this build. See the meta section for more details.

    Show child fields
Example Build
{
"id": "5d02f7e9b89494000108422a",
"stack_id": "5d02f7e44146380001ccc871",
"hub_id": "5a14ddd8b6393d0001976f44",
"about": {
"version": "1.0",
"description": "A redis applicaiton"
},
"instructions": {},
"spec": {
"version": "1.0",
"containers": {
"redis": {
"name": "redis",
"image": {
"name": "redis",
"origin": {
"type": "docker-hub",
"details": {
"target": "redis:latest"
}
}
},
"stateful": false,
"config": {
"network": {
"public": "disable",
"hostname": "redis",
"ports": [
"6379:6379"
]
},
"deploy": {
"instances": 1
},
"runtime": {
"environment_vars": {
"TEST_VAR": "test_vaar_one"
},
"privileged": false
}
},
"volumes": []
},
"web": {
"name": "web",
"image": {
"name": "node",
"origin": {
"type": "docker-file",
"details": {
"context_dir": "/",
"build_file": "/Dockerfile"
}
}
},
"stateful": false,
"config": {
"network": {
"public": "enable",
"hostname": "web",
"ports": [
"80:8081"
]
},
"deploy": {
"instances": 1
},
"runtime": {
"environment_vars": {
"TEST_VAR": "test_var"
},
"privileged": false
}
},
"volumes": []
}
},
"annotations": {}
},
"events": {
"created": "2019-06-14T01:27:05.486Z",
"updated": "0001-01-01T00:00:00Z",
"deleted": "0001-01-01T00:00:00Z"
},
"state": {
"changed": "2019-06-14T01:29:01.238Z",
"current": "live"
},
"meta": {
"containers_count": {
"state": {
"new": 0,
"starting": 0,
"running": 0,
"stopping": 0,
"stopped": 0,
"reimaging": 0,
"deleting": 0,
"deleted": 0
},
"total": 0,
"available": 0
}
}
}