Created
December 17, 2019 12:47
-
-
Save wshihadeh/dfda391b96f9b4609139e0c9b0481321 to your computer and use it in GitHub Desktop.
Clair entrypoint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
/usr/local/bin/envsubst < /etc/clair/config.yaml.tpl > /etc/clair/config.yaml | |
case $1 in | |
clair) | |
/usr/bin/dumb-init -- /clair -config /etc/clair/config.yaml | |
;; | |
*) | |
exec "$@" | |
;; | |
esac | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment