API
Monarch build services leverage the monarch-c2-sdk python package for handling build requests. Under the hood, a build service is a simple HTTP server that handles post requests from the build client that comes pre-installed in monarch builder containers.
Each request is automatically reformatted into a BuildRequest
object, predefined by the monarch package, that contains the build parameters as a dictionary of values.
After this, a registered callback, your build routine, is called with the BuildRequest
passed as a parameter. Your callback is expected to return a BuildResponse
object, which tells Monarch's build client whether build was successful, if any errors were reported, and if none, the actual binary that was built.
Last updated