mirror of
https://github.com/apache/lucene.git
synced 2025-02-13 13:35:37 +00:00
* Removed docker plugin from gradle builds. * Removed package docker image. * Tasks now have correct inputs/outputs/dependencies. * Move gradle help text to docker folder. * Reduce duplicated Docker layer by doing file removal and chmod in another stage. Co-authored-by: David Smiley <dsmiley@apache.org>
32 lines
830 B
Bash
Executable File
32 lines
830 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# start solr in the foreground
|
|
set -e
|
|
|
|
if [[ "$VERBOSE" == "yes" ]]; then
|
|
set -x
|
|
fi
|
|
|
|
echo "Starting Solr $SOLR_VERSION"
|
|
# determine TINI default. If it is already set, assume the user knows what they want
|
|
if [[ -z "${TINI:-}" ]]; then
|
|
if [[ "$$" == 1 ]]; then
|
|
# Default to running tini, so we can run with an OOM script and have 'kill -9' work
|
|
TINI=yes
|
|
else
|
|
# Presumably we're already running under tini through 'docker --init', in which case we
|
|
# don't need to run it twice.
|
|
# It's also possible that we're run from a wrapper script without exec,
|
|
# in which case running tini would not be ideal either.
|
|
TINI=no
|
|
fi
|
|
fi
|
|
if [[ "$TINI" == yes ]]; then
|
|
exec tini -- solr -f "$@"
|
|
elif [[ "$TINI" == no ]]; then
|
|
exec solr -f "$@"
|
|
else
|
|
echo "invalid value TINI=$TINI"
|
|
exit 1
|
|
fi
|