Revision 273f3c686ad2c2a8b659e7f7c3a5d02ab76c946a authored by Bruno Thomas on 03 March 2020, 14:23:17 UTC, committed by Bruno Thomas on 03 March 2020, 14:23:17 UTC
1 parent 5e0a641
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
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=8000,suspend=n -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 ...