GUACAMOLE-682: add option to include RADIUS authentication in docker

To include library for RADIUS authentication in the docker image the
build needs to activate the maven profile "lgpl-extentions" and copy
the library into the image.
The docker start script needs to pass through settings and link the
library to GUACAMOLE_HOME.
This commit is contained in:
Joern Lentes
2018-12-21 11:15:25 +01:00
parent fd2198d62b
commit 0f31028565
2 changed files with 106 additions and 5 deletions

View File

@@ -53,7 +53,12 @@ mkdir -p "$DESTINATION"
#
cd "$BUILD_DIR"
mvn package
if [ -z "$BUILD_PROFILE" ]; then
mvn package
else
mvn -P "$BUILD_PROFILE" package
fi
#
# Copy guacamole.war to destination
@@ -107,3 +112,11 @@ tar -xzf extensions/guacamole-auth-ldap/target/*.tar.gz \
"*.jar" \
"*.ldif"
#
# Copy Radius auth extension if it was build
#
if [[ "$BUILD_PROFILE ~= "lgpl-extentions" ]]; then
mkdir -p "$DESTINATION/radius"
cp extensions/guacamole-auth-radius/target/guacamole-auth-radius*.jar "$DESTINATION/radius"
fi