mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
13 lines
664 B
Bash
Executable File
13 lines
664 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Detect host machine IP Address (we need this when run in docker container)
|
|
export CB_LOCAL_HOST_ADDR=$(ifconfig | grep -E "([0-9]{1,3}\.){3}[0-9]{1,3}" | grep -v 127.0.0.1 | awk '{ print $2 }' | cut -f2 -d: | head -n1)
|
|
|
|
launcherJar=( server/plugins/org.eclipse.equinox.launcher*.jar )
|
|
|
|
echo "Starting Cloudbeaver Server"
|
|
|
|
[ ! -d "workspace/.metadata" ] && mkdir -p workspace/GlobalConfiguration/.dbeaver && cp conf/initial-data-sources.conf workspace/GlobalConfiguration/.dbeaver/data-sources.json
|
|
|
|
java -jar ${launcherJar} -product io.cloudbeaver.product.ce.product -web-config conf/cloudbeaver.conf -nl en -registryMultiLanguage -vmargs -Xmx2048M
|