Public Repository

Last pushed: 5 months ago
Short Description
Build your war files with Maven, host with Wildfly and test with protractor and chrome/firefox
Full Description

Instructions for use

Assuming your artifact ID is called: CounterWebApp

# Create a new folder in your project root called bin and create the buildandtest.sh file in it.
cat ./bin/buildandtest.sh
#!/bin/sh
mvn -q package & PID=$!

echo "THIS MAY TAKE A WHILE, PLEASE BE PATIENT WHILE BUILD IS RUNNING..."
printf "["
# While process is running...
while kill -0 $PID 2> /dev/null; do 
    printf  "▓"
    sleep 1
done
printf "] done!"

echo "Deploying"
cp /app/target/*.war /opt/wildfly/standalone/deployments
nohup /run.sh &>/dev/null &
sleep 10
echo "Curling"
curl http://localhost:8080/CounterWebApp/
echo "Running tests"
xvfb-run protractor

#Run the image like this:
docker run -p 8080:8080 -v $(PWD):/app wildfly-live ./bin/buildandtest.sh
Docker Pull Command
Owner
gingerland