Files
containers/.vib/mlflow/vib-verify.json
Javier J. Salmerón-García 460c70ac6c [bitnami/mlflow] chore: 👷 Add VIB integration (#50293)
* [bitnami/mlflow] chore: 👷 Add VIB integration

This PR adds basic goss tests to the MLflow container. Runs:

- Common tests
- Version test
- User tests
- MLflow tracking server test

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* test:  Improve signal handling and permissions

In the `mlflow-serve` test, the timeout command must be changed to use
SIGINT as `mlflow server` does not behave correctly when using SIGTERM.

In the directory tests, the permissions of the `/opt/bitnami/python`
folder are more restricted

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

---------

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
2023-09-29 11:22:32 +02:00

67 lines
1.4 KiB
JSON

{
"context": {
"resources": {
"url": "{SHA_ARCHIVE}",
"path": "{VIB_ENV_PATH}"
},
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
},
"phases": {
"package": {
"actions": [
{
"action_id": "container-image-package",
"params": {
"application": {
"details": {
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
},
"architectures": ["linux/amd64", "linux/arm64"]
}
},
{
"action_id": "container-image-lint",
"params": {
"threshold": "error"
}
}
]
},
"verify": {
"actions": [
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "mlflow/goss/goss.yaml",
"vars_file": "mlflow/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-mlflow"
}
}
}
},
{
"action_id": "trivy",
"params": {
"threshold": "CRITICAL",
"vuln_type": ["OS"]
}
},
{
"action_id": "grype",
"params": {
"threshold": "CRITICAL",
"package_type": ["OS"]
}
}
]
}
}
}