Skip to content

Instantly share code, notes, and snippets.

@dave-tucker
Last active August 29, 2015 14:01
Show Gist options
  • Save dave-tucker/50930ba668cb9f8dd2e3 to your computer and use it in GitHub Desktop.
Save dave-tucker/50930ba668cb9f8dd2e3 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
# OVS_VERSION is passed in my Jenkins Multi-Configuration Job
echo "---> Starting OVS $OVS_VERSION"
# Assume all containers are already downloaded
CID=$(docker run -p 6640:6640 -p 6633:6633 -p 6644:6644 --privileged=true -d -i -t davetucker/docker-ovs:$OVS_VERSION /bin/supervisord -n)
echo "---> Running Tests"
# Assume we are in source directory
cd library
mvn -Pintegrationtest -Dovsdbserver.ipaddress=127.0.0.1 -Dovsdbserver.port=6640 verify
echo "---> Cleaning up"
docker stop $CID
docker rm $CID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment