Finish up travis support.

Travis should:

* build the docker image
* instantiate it
* generate and ssh key and copy it into the running image
* ssh into the container and run the test suite.
diff --git a/.travis.yml b/.travis.yml
index 280cc69..4f4b991 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,13 @@
+required: sudo
+
 language: java
 
+services:
+  - docker
+
 jdk:
   - openjdk8
- 
+
 #Added to cache gradle dependencies, from the travis java manual
 before_cache:
   - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
@@ -11,3 +16,15 @@
   directories:
     - $HOME/.gradle/caches/
     - $HOME/.gradle/wrapper/
+
+script:
+  ./gradlew buildTestingImage
+  docker run -p 2222:22 -d --name geode-test geode-performance-testing
+  ssh-keygen -N "" -f ./id_rsa
+  docker cp id_rsa geode-test:/root/.ssh/id_rsa
+  docker exec -it geode-test chown root:root /root/.ssh/id_rsa
+  docker cp id_rsa.pub geode-test:/root/.ssh/id_rsa.pub
+  docker exec -it geode-test chown root:root /root/.ssh/id_rsa.pub
+  docker cp id_rsa.pub geode-test:/root/.ssh/authorized_keys
+  docker exec -it geode-test chown root:root /root/.ssh/authorized_keys
+  ssh -i id_rsa -p 2222 root@localhost "pushd /geode-performance; ./gradlew geode-benchmarks:test"
diff --git a/images/geode-performance/Dockerfile b/images/geode-performance/Dockerfile
index c8f48e6..484c8fd 100644
--- a/images/geode-performance/Dockerfile
+++ b/images/geode-performance/Dockerfile
@@ -21,13 +21,13 @@
 COPY . /geode-performance

 RUN mkdir /var/run/sshd && \

   sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \

-  sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd &&

-

-RUN ssh-keygen -N "" -f /root/.ssh/id_rsa

-RUN echo "Host localhost" > /root/.ssh/config

-RUN echo "    StrictHostKeyChecking no" >> /root/.ssh/config

-RUN chmod 600 /root/.ssh/config

-RUN cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys

-RUN chmod 600 /root/.ssh/authorized_keys

-RUN rm -f /geode-performance/Dockerfile

-CMD ["/usr/sbin/sshd", "-D"]
\ No newline at end of file
+  sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd && \

+  ssh-keygen -N "" -f /root/.ssh/id_rsa && \

+  echo "Host localhost" > /root/.ssh/config && \

+  echo "    StrictHostKeyChecking no" >> /root/.ssh/config && \

+  chmod 600 /root/.ssh/config && \

+  cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \

+  chmod 600 /root/.ssh/authorized_keys && \

+  rm -f /geode-performance/Dockerfile

+CMD ["/usr/sbin/sshd", "-D", "-E", "/var/log/sshd.log"]

+EXPOSE 22