-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #317 from xmidt-org/revamp-docker
Remove several unused build files and update the docker images to work.
- Loading branch information
Showing
12 changed files
with
73 additions
and
269 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
# check arguments for an option that would cause /argus to stop | ||
# return true if there is one | ||
_want_help() { | ||
local arg | ||
for arg; do | ||
case "$arg" in | ||
-'?'|--help|-v) | ||
return 0 | ||
;; | ||
esac | ||
done | ||
return 1 | ||
} | ||
|
||
_main() { | ||
# if command starts with an option, prepend argus | ||
if [ "${1:0:1}" = '-' ]; then | ||
set -- /argus "$@" | ||
fi | ||
|
||
# skip setup if they aren't running /argus or want an option that stops /argus | ||
if [ "$1" = '/argus' ] && ! _want_help "$@"; then | ||
echo "Entrypoint script for argus Server ${VERSION} started." | ||
|
||
if [ ! -s /etc/argus/argus.yaml ]; then | ||
echo "Building out template for file" | ||
/bin/spruce merge /tmp/argus_spruce.yaml > /etc/argus/argus.yaml | ||
fi | ||
fi | ||
|
||
exec "$@" | ||
} | ||
|
||
_main "$@" |
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.