Skip to content
Snippets Groups Projects
entrypoint.sh 444 B
Newer Older
Amir Jerbi's avatar
Amir Jerbi committed
#!/bin/sh
if [ -d /host ]; then
  mkdir -p /host/cfg/
  yes | cp -rf /cfg/* /host/cfg/
  yes | cp -rf /kube-bench /host/
  echo "==============================================="
  echo "kube-bench is now installed on your host       "
  echo "Run ./kube-bench to perform a security check   "
  echo "==============================================="
Amir Jerbi's avatar
Amir Jerbi committed
else
Amir Jerbi's avatar
Amir Jerbi committed
  echo "Usage:"
  echo "  docker run --rm -v \`pwd\`:/host aquasec/kube-bench"
Amir Jerbi's avatar
Amir Jerbi committed
  exit 
fi