-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·25 lines (25 loc) · 778 Bytes
/
run.sh
File metadata and controls
executable file
·25 lines (25 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
source_tests=./docs/image-tests.yml
source_image="openjdk:9.0.1-11"
if [[ ! -z "$1" ]]
then
source_tests=$1
fi
if [[ ! -z "$2" ]]
then
source_image=$2
fi
mvn -P github package
version=1.1.0
app=docker-unittests-${version}.jar
shade_app=docker-unittests-app-${version}.jar
JAVA_OPTS="${JAVA_OPTS} -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=10050"
JAVA_OPTS="${JAVA_OPTS} -XX:+UnlockCommercialFeatures"
JAVA_OPTS="${JAVA_OPTS} -XX:+FlightRecorder"
JAVA_OPTS="${JAVA_OPTS} -XX:+UnlockDiagnosticVMOptions"
JAVA_OPTS="${JAVA_OPTS} -XX:+DebugNonSafepoints"
sleep 2
set -e
unzip -l target/${app}
unzip -l target/${shade_app} | grep "App.class\|MANIFEST.MF"
java ${JAVA_OPTS} -jar target/${shade_app} -f ${source_tests} -i ${source_image}