Add flag to control download of extensions at run time
parent
ed60742751
commit
a4e3a83816
|
|
@ -12,6 +12,7 @@ ENV GS_VERSION=${GS_VERSION} \
|
||||||
INITIAL_MEMORY="2G" \
|
INITIAL_MEMORY="2G" \
|
||||||
MAXIMUM_MEMORY="4G" \
|
MAXIMUM_MEMORY="4G" \
|
||||||
JAIEXT_ENABLED=true \
|
JAIEXT_ENABLED=true \
|
||||||
|
DOWNLOAD_EXTENSIONS=false \
|
||||||
STABLE_EXTENSIONS='' \
|
STABLE_EXTENSIONS='' \
|
||||||
DEBIAN_FRONTEND=noninteractive \
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
EXTENSION_DOWNLOAD_DIR=/opt/geoserver_extension_downloads \
|
EXTENSION_DOWNLOAD_DIR=/opt/geoserver_extension_downloads \
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ Pass as environment variables. If not passed, the default values will be used.
|
||||||
* `INITIAL_MEMORY` (default: 2G)
|
* `INITIAL_MEMORY` (default: 2G)
|
||||||
* `MAXIMUM_MEMORY` (default: 4G)
|
* `MAXIMUM_MEMORY` (default: 4G)
|
||||||
* `JAIEXT_ENABLED` (default: true)
|
* `JAIEXT_ENABLED` (default: true)
|
||||||
|
* `DOWNLOAD_EXTENSIONS` (default: false)
|
||||||
* `STABLE_EXTENSIONS` as comma separated list, will be downloaded and installed on startup (default: "")
|
* `STABLE_EXTENSIONS` as comma separated list, will be downloaded and installed on startup (default: "")
|
||||||
|
|
||||||
## TODOs
|
## TODOs
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
environment:
|
environment:
|
||||||
|
- DOWNLOAD_EXTENSIONS=true
|
||||||
- STABLE_EXTENSIONS=wps
|
- STABLE_EXTENSIONS=wps
|
||||||
- INITIAL_MEMORY=1G
|
- INITIAL_MEMORY=1G
|
||||||
- MAXIMUM_MEMORY=2G
|
- MAXIMUM_MEMORY=2G
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,7 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
## install GeoServer extensions before starting the tomcat
|
## install GeoServer extensions before starting the tomcat
|
||||||
echo "Starting installation of extensions"
|
|
||||||
/scripts/install-extensions.sh
|
/scripts/install-extensions.sh
|
||||||
echo "\nFinished installation of extensions"
|
|
||||||
|
|
||||||
export GEOSERVER_OPTS="-Djava.awt.headless=true -server \
|
export GEOSERVER_OPTS="-Djava.awt.headless=true -server \
|
||||||
-Dfile.encoding=UTF8 \
|
-Dfile.encoding=UTF8 \
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,12 @@ function download_extension() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install stable plugins
|
# Install stable plugins only if DOWNLOAD_EXTENSIONS is true
|
||||||
for EXTENSION in $(echo "${STABLE_EXTENSIONS}" | tr ',' ' '); do
|
if [ "$DOWNLOAD_EXTENSIONS" = "true" ]; then
|
||||||
URL="${STABLE_PLUGIN_URL}/geoserver-${GS_VERSION}-${EXTENSION}-plugin.zip"
|
echo "Starting installation of extensions"
|
||||||
download_extension ${URL} ${EXTENSION}
|
for EXTENSION in $(echo "${STABLE_EXTENSIONS}" | tr ',' ' '); do
|
||||||
done
|
URL="${STABLE_PLUGIN_URL}/geoserver-${GS_VERSION}-${EXTENSION}-plugin.zip"
|
||||||
|
download_extension ${URL} ${EXTENSION}
|
||||||
|
done
|
||||||
|
echo "Finished installation of extensions"
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue