1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-12-24 15:38:06 +00:00
kube-bench/entrypoint.sh

15 lines
468 B
Bash
Raw Normal View History

2017-06-20 06:53:34 +00:00
#!/bin/sh
if [ -d /host ]; then
mkdir -p /host/cfg/
yes | cp -rf ./kube-bench/cfg/* /host/cfg/
yes | cp -rf ./kube-bench/kube-bench /host/
echo "==============================================="
echo "kube-bench is now installed on your host "
echo "Run ./kube-bench to perform a security check "
echo "==============================================="
2017-06-20 06:53:34 +00:00
else
2017-06-20 07:10:36 +00:00
echo "Usage:"
echo " docker run --rm -v \`pwd\`:/host aquasec/kube-bench"
2017-06-20 06:53:34 +00:00
exit
fi