Revision c9833f27ae6435c83ed4175adcf9a34820a6ea15 authored by Bruno Thomas on 31 January 2019, 14:33:45 UTC, committed by Bruno Thomas on 31 January 2019, 14:33:45 UTC
1 parent 700fa68
launchBack.sh
#!/bin/bash
VERSION=$(cat pom.xml | grep '<version>[0-9.]\+' | sed 's/<version>\([0-9.]\+\)<\/version>/\1/g' | tr -d '[:space:]')
CLASSPATH=$(find datashare-dist/target/datashare-dist-${VERSION}-all/lib/ -name '*.jar' | sort | xargs | sed 's/ /:/g')
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 dist
java -agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n -Djavax.net.ssl.trustStorePassword=changeit \
-Xmx4g -DPROD_MODE=true -cp "dist/:${CLASSPATH}" org.icij.datashare.cli.DatashareCli --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 ...