Revision 56354f1976ed09a727d99fe9d38f6722128ea1c2 authored by Bruno Thomas on 26 August 2020, 13:43:03 UTC, committed by Bruno Thomas on 26 August 2020, 13:43:03 UTC
1 parent 6d99cb9
launchBack.sh
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
VERSION=$(cat $DIR/pom.xml | grep '<version>[0-9.]\+' | sed 's/<version>\([0-9.]\+\)<\/version>/\1/g' | tr -d '[:space:]')
CLASSPATH=$DIR/datashare-dist/target/datashare-dist-${VERSION}-all.jar
JDWP_TRANSPORT_PORT=${JDWP_TRANSPORT_PORT:-8000}
if [ -z "$JAVA_HOME" ]; then
JAVA=java
else
JAVA=${JAVA_HOME}/bin/java
fi
export DS_DOCKER_PREVIEW_HOST="http://localhost:5000"
export DS_DOCKER_BACK_HOST="http://localhost:$(docker ps|grep 8080|sed 's/.*0.0.0.0:\(.*\)->8080.*/\1/g')"
export DS_DOCKER_FRONT_HOST="http://localhost:$(docker ps|grep 9090|sed 's/.*0.0.0.0:\(.*\)->9090.*/\1/g')"
mkdir -p $DIR/dist
$JAVA -agentlib:jdwp=transport=dt_socket,server=y,address=$JDWP_TRANSPORT_PORT,suspend=n -Djava.system.class.loader=org.icij.datashare.DynamicClassLoader \
-Djavax.net.ssl.trustStorePassword=changeit \
-Xmx4g -DPROD_MODE=true -cp "$DIR/dist/:${CLASSPATH}" org.icij.datashare.Main --cors '*' \
--oauthAuthorizeUrl http://xemx:3001/oauth/authorize \
--oauthTokenUrl http://xemx:3001/oauth/token \
--oauthApiUrl http://xemx:3001/api/v1/me.json "$@"
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...