Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

Commit

Permalink
Added a script for executing the integration-tests in a dockerized Gl…
Browse files Browse the repository at this point in the history
…assfish (#10)
  • Loading branch information
lefloh authored and chkal committed May 16, 2016
1 parent 20d1be3 commit 87541e1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions bin/test-integration-gf-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

# Builds the whole project, starts a dockered nightly glassfish, deploys all test-projects and runs the integration tests.
# Expects a installed docker and a /etc/hosts entry named 'docker' pointing to your docker host.

ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/.. && pwd )"
DEPLOYMENTS=${ROOT_DIR}/test/target/deployments
DOCKER_CONTAINER=ozark_gf5

cd ${ROOT_DIR}
mvn clean install
mkdir -p ${DEPLOYMENTS}
cd ./test
find . -name \*.war -exec cp {} ${DEPLOYMENTS}/ \;
docker run --name ${DOCKER_CONTAINER} -dit -p 4848:4848 -p 8080:8080 \
-v ${DEPLOYMENTS}:/glassfish4/glassfish/domains/domain1/autodeploy glassfish/nightly
sleep 120
mvn -Pintegration -Dintegration.serverName=docker verify
docker stop ${DOCKER_CONTAINER}
docker rm -fv ${DOCKER_CONTAINER}

0 comments on commit 87541e1

Please sign in to comment.