mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
yell function and version varible
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
2a549f5be5
commit
6c0dce7b19
2 changed files with 16 additions and 11 deletions
|
@ -1,13 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Docker Bench for Security v1.3.4
|
# Docker Bench for Security
|
||||||
#
|
#
|
||||||
# Docker, Inc. (c) 2015-
|
# Docker, Inc. (c) 2015-
|
||||||
#
|
#
|
||||||
# Checks for dozens of common best-practices around deploying Docker containers in production.
|
# Checks for dozens of common best-practices around deploying Docker containers in production.
|
||||||
# Inspired by the CIS Docker Community Edition Benchmark v1.1.0.
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
version='1.3.4'
|
||||||
|
|
||||||
# Load dependencies
|
# Load dependencies
|
||||||
. ./functions_lib.sh
|
. ./functions_lib.sh
|
||||||
. ./helper_lib.sh
|
. ./helper_lib.sh
|
||||||
|
@ -62,14 +63,7 @@ if [ -z "$logger" ]; then
|
||||||
logger="${myname}.log"
|
logger="${myname}.log"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
yell "# ------------------------------------------------------------------------------
|
yell_info
|
||||||
# Docker Bench for Security v1.3.4
|
|
||||||
#
|
|
||||||
# Docker, Inc. (c) 2015-
|
|
||||||
#
|
|
||||||
# Checks for dozens of common best-practices around deploying Docker containers in production.
|
|
||||||
# Inspired by the CIS Docker Community Edition Benchmark v1.1.0.
|
|
||||||
# ------------------------------------------------------------------------------"
|
|
||||||
|
|
||||||
# Warn if not root
|
# Warn if not root
|
||||||
ID=$(id -u)
|
ID=$(id -u)
|
||||||
|
@ -85,7 +79,7 @@ totalChecks=0
|
||||||
currentScore=0
|
currentScore=0
|
||||||
|
|
||||||
logit "Initializing $(date)\n"
|
logit "Initializing $(date)\n"
|
||||||
beginjson "1.3.4" "$(date +%s)"
|
beginjson "$version" "$(date +%s)"
|
||||||
|
|
||||||
# Load all the tests from tests/ and run them
|
# Load all the tests from tests/ and run them
|
||||||
main () {
|
main () {
|
||||||
|
|
|
@ -110,3 +110,14 @@ get_systemd_service_file(){
|
||||||
echo "/usr/lib/systemd/system/$SERVICE"
|
echo "/usr/lib/systemd/system/$SERVICE"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
yell_info() {
|
||||||
|
yell "# ------------------------------------------------------------------------------
|
||||||
|
# Docker Bench for Security v$version
|
||||||
|
#
|
||||||
|
# Docker, Inc. (c) 2015-
|
||||||
|
#
|
||||||
|
# Checks for dozens of common best-practices around deploying Docker containers in production.
|
||||||
|
# Inspired by the CIS Docker Community Edition Benchmark v1.1.0.
|
||||||
|
# ------------------------------------------------------------------------------"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue