Build Image
POST/containers/build_image
Builds a Docker image from a tar file containing the application code.
Args: app_id (str): The ID of the application to build the image for. base_name (str): The base name of the image to build. tar_file (UploadFile): The tar file containing the application code. stoken_session (SessionContainer): The session container for the user making the request.
Returns: Image: The Docker image that was built.
Request
Query Parameters
app_id App Idrequired
base_name Base Namerequired
- multipart/form-data
Body
required
tar_file binaryrequired
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD1
- MOD1
type
object
required
anyOf
string
docker_id Docker Id (string)required
tags Tags (string)required
organization_id
object
anyOf
string
workspace_id
object
anyOf
string
{
"type": "string",
"docker_id": "string",
"tags": "string",
"organization_id": "string",
"workspace_id": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...