mirror of
https://github.com/bitnami/containers.git
synced 2026-02-10 21:27:26 +08:00
[bitnami/scylladb] chore: 👷 ✅ Add VIB integration (#66492)
* [bitnami/scylladb] chore: 👷 ✅ Add VIB integration Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> * chore: 🔧 Add arm64 Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> --------- Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
This commit is contained in:
committed by
GitHub
parent
82dd6fc835
commit
d6f470b95b
14
.vib/scylladb/goss/goss.yaml
Normal file
14
.vib/scylladb/goss/goss.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
# Copyright Broadcom, Inc. All Rights Reserved.
|
||||
# SPDX-License-Identifier: APACHE-2.0
|
||||
|
||||
gossfile:
|
||||
# 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-files.yaml: {}
|
||||
../../common/goss/templates/check-linked-libraries.yaml: {}
|
||||
../../common/goss/templates/check-sed-in-place.yaml: {}
|
||||
../../common/goss/templates/check-spdx.yaml: {}
|
||||
39
.vib/scylladb/goss/vars.yaml
Normal file
39
.vib/scylladb/goss/vars.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
binaries:
|
||||
- scylla
|
||||
- supervisorctl
|
||||
- supervisord
|
||||
- cqlsh
|
||||
- python
|
||||
- java
|
||||
files:
|
||||
- mode: "0755"
|
||||
paths:
|
||||
- /opt/bitnami/scylladb/python3/bin/cqlsh
|
||||
directories:
|
||||
- mode: "0775"
|
||||
paths:
|
||||
- /.cassandra
|
||||
- /bitnami/scylladb
|
||||
- /bitnami/scylladb/conf
|
||||
- /opt/bitnami/scylladb/tmp
|
||||
- /opt/bitnami/scylladb/etc
|
||||
- /opt/bitnami/scylladb/logs
|
||||
- /docker-entrypoint-initdb.d
|
||||
- paths:
|
||||
- /opt/bitnami/scylladb/etc.default
|
||||
root_dir: /opt/bitnami
|
||||
linked_libraries:
|
||||
exclude_paths:
|
||||
# Ignore those included in the unified installer
|
||||
- /opt/bitnami/scylladb/libexec/.*
|
||||
- /opt/bitnami/scylladb/libreloc/.*
|
||||
sed_in_place:
|
||||
exclude_paths:
|
||||
# Ignore upstream scripts (non Bitnami-related)
|
||||
- /opt/bitnami/scylladb/share/cassandra/pylib/.*
|
||||
- /opt/bitnami/scylladb/scripts/.*
|
||||
- /opt/bitnami/scylladb/docker/.*
|
||||
- /opt/bitnami/scylladb/supervisor/.*
|
||||
version:
|
||||
bin_name: scylla
|
||||
flag: --version
|
||||
73
.vib/scylladb/vib-verify.json
Normal file
73
.vib/scylladb/vib-verify.json
Normal file
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"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": "scylladb/goss/goss.yaml",
|
||||
"vars_file": "scylladb/goss/vars.yaml",
|
||||
"remote": {
|
||||
"pod": {
|
||||
"workload": "deploy-scylladb"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
"threshold": "LOW",
|
||||
"vuln_type": [
|
||||
"OS"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "grype",
|
||||
"params": {
|
||||
"threshold": "CRITICAL",
|
||||
"package_type": [
|
||||
"OS"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user