-
Notifications
You must be signed in to change notification settings - Fork 1
/
run-all.sh
executable file
·25 lines (20 loc) · 1.33 KB
/
run-all.sh
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
set -e -o pipefail -o errtrace -o functrace
function wait_for_ispn() {
until `docker exec -t infinispan /opt/jboss/infinispan-server/bin/ispn-cli.sh -c ":read-attribute(name=server-state)" | grep -q running`; do
sleep 3
echo "Waiting for the server to start..."
done
}
mvn clean install
docker run -v $PWD/entities/target:/opt/jboss/infinispan-server/standalone/deployments \
-v $PWD/client/config:/opt/jboss/infinispan-server/standalone/configuration/demo \
-p 8080:8080 -p 11211-11222:11211-11222 \
-e "APP_USER=dev" -e "APP_PASS=dev" -e "JAVA_OPTS=-Dinfinispan.deserialization.whitelist.regexps=.\*" \
--name infinispan -d jboss/infinispan-server:9.4.1.Final demo/clustered.xml
wait_for_ispn
mvn -pl client exec:java -Dexec.mainClass=org.infinispan.interop.JsonInterop -Dexec.cleanupDaemonThreads=false
mvn -pl client exec:java -Dexec.mainClass=org.infinispan.interop.MarshalledStorageInterop -Dexec.cleanupDaemonThreads=false
mvn -pl client exec:java -Dexec.mainClass=org.infinispan.interop.ObjectStorageInterop -Dexec.cleanupDaemonThreads=false
mvn -pl client exec:java -Dexec.mainClass=org.infinispan.interop.ProtobufInterop -Dexec.cleanupDaemonThreads=false
mvn -pl client exec:java -Dexec.mainClass=org.infinispan.interop.StringInterop -Dexec.cleanupDaemonThreads=false
docker rm -f infinispan