Add support of server mode in the Docker entrypoint
# limitations under the License.
################################################################################
+if [ "$1" = "server" ]; then
+ echo "Starting Apache Karaf (server mode)"
+ exec $KARAF_HOME/bin/karaf server
+else
echo "Starting Apache Karaf"
exec $KARAF_HOME/bin/karaf
+fi
exec "$@"
