mirror of
https://github.com/bitnami/containers.git
synced 2026-10-18 18:13:42 +02:00
[bitnami/tensorflow-serving] Add VIB tests (#34973)
* [bitnami/tensorflow-serving] Add initial tests Signed-off-by: Cori Avila <amisericordi@vmware.com> * [bitnami/tensorflow-serving] Add change in docker-compose file to trigger tests Signed-off-by: Cori Avila <amisericordi@vmware.com> * [bitnami/tensorflow-serving] Add missing binary and add owner and group for directories check Signed-off-by: Cori Avila <amisericordi@vmware.com> * [bitnami/tensorflow-serving] Delete trigger in docker-compose file Signed-off-by: Cori Avila <42420333+corico44@users.noreply.github.com> --------- Signed-off-by: Cori Avila <amisericordi@vmware.com> Signed-off-by: Cori Avila <42420333+corico44@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
gossfile:
|
||||
# Goss tests exclusive to the current container
|
||||
../../tensorflow-serving/goss/tensorflow-serving.yaml: {}
|
||||
# Load scripts from .vib/common/goss/templates
|
||||
../../common/goss/templates/check-app-version.yaml: {}
|
||||
../../common/goss/templates/check-binaries.yaml: {}
|
||||
../../common/goss/templates/check-broken-symlinks.yaml: {}
|
||||
../../common/goss/templates/check-ca-certs.yaml: {}
|
||||
../../common/goss/templates/check-directories.yaml: {}
|
||||
../../common/goss/templates/check-linked-libraries.yaml: {}
|
||||
../../common/goss/templates/check-sed-in-place.yaml: {}
|
||||
../../common/goss/templates/check-spdx.yaml: {}
|
||||
@@ -0,0 +1,6 @@
|
||||
group:
|
||||
tensorflow:
|
||||
exists: true
|
||||
user:
|
||||
tensorflow:
|
||||
exists: true
|
||||
@@ -0,0 +1,18 @@
|
||||
binaries:
|
||||
- render-template
|
||||
- tensorflow_model_server
|
||||
directories:
|
||||
- mode: "0775"
|
||||
owner: tensorflow
|
||||
group: root
|
||||
paths:
|
||||
- /opt/bitnami/tensorflow-serving
|
||||
- /opt/bitnami/tensorflow-serving/tmp
|
||||
- /opt/bitnami/tensorflow-serving/bin
|
||||
- /opt/bitnami/tensorflow-serving/conf
|
||||
- /opt/bitnami/tensorflow-serving/logs
|
||||
- /bitnami/tensorflow-serving
|
||||
root_dir: /opt/bitnami
|
||||
version:
|
||||
bin_name: tensorflow_model_server
|
||||
flag: --version
|
||||
@@ -3,7 +3,8 @@
|
||||
"resources": {
|
||||
"url": "{VIB_ENV_CONTAINER_URL}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
@@ -33,6 +34,21 @@
|
||||
},
|
||||
"verify": {
|
||||
"actions": [
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "tensorflow-serving/goss/goss.yaml",
|
||||
"vars_file": "tensorflow-serving/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-tensorflow-serving"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"resources": {
|
||||
"url": "{SHA_ARCHIVE}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
@@ -29,6 +30,21 @@
|
||||
},
|
||||
"verify": {
|
||||
"actions": [
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib"
|
||||
},
|
||||
"tests_file": "tensorflow-serving/goss/goss.yaml",
|
||||
"vars_file": "tensorflow-serving/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-tensorflow-serving"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
|
||||
Reference in New Issue
Block a user