-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove several unused build files and update the docker images to work.
- Loading branch information
Showing
14 changed files
with
121 additions
and
208 deletions.
There are no files selected for viewing
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
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 /caduceus 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 caduceus | ||
if [ "${1:0:1}" = '-' ]; then | ||
set -- /caduceus "$@" | ||
fi | ||
|
||
# skip setup if they aren't running /caduceus or want an option that stops /caduceus | ||
if [ "$1" = '/caduceus' ] && ! _want_help "$@"; then | ||
echo "Entrypoint script for caduceus Server ${VERSION} started." | ||
|
||
if [ ! -s /etc/caduceus/caduceus.yaml ]; then | ||
echo "Building out template for file" | ||
/bin/spruce merge /tmp/caduceus_spruce.yaml > /etc/caduceus/caduceus.yaml | ||
fi | ||
fi | ||
|
||
exec "$@" | ||
} | ||
|
||
_main "$@" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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.
Oops, something went wrong.