version 1
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..6d7169f
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,51 @@
+FROM centos:7.2.1511
+
+USER root
+
+RUN yum install -y openssh-server openssh-clients unzip git which
+
+# Set up for SSH daemon
+RUN sed -ri -e 's/UsePAM yes/#UsePAM yes/g' \
+ -e 's/#UsePAM no/UsePAM no/g' \
+ -e 's/^GSS/#GSS/' \
+ -e '/ssh_host_ed25519_key/d' \
+ /etc/ssh/sshd_config && \
+ ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N '' -t ecdsa && \
+ ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa && \
+ ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa
+
+# -e 's@#HostKey /etc/ssh/ssh_host_dsa_key@HostKey /etc/ssh/ssh_host_dsa_key@g' \
+
+# JDK.
+RUN mkdir /tmp/deploy && \
+ cd /tmp/deploy && \
+ curl -L --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \
+ http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-linux-x64.rpm \
+ -o jdk.rpm && \
+ yum localinstall -y jdk.rpm && \
+ cd /tmp && rm -rf deploy
+ENV JAVA_HOME=/usr/java/latest
+
+# create jenkins user
+RUN groupadd -g1000 jenkins && \
+ useradd jenkins -g jenkins -u1000 -m -s /bin/bash && \
+ echo "jenkins:$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo)" | chpasswd
+
+COPY startup.sh /usr/sbin/
+COPY ssh/* /home/jenkins/.ssh/
+RUN chown -R jenkins:jenkins /home/jenkins/.ssh && \
+ chmod 600 /home/jenkins/.ssh/*
+
+# Configure password-less ssh for user jenkins
+USER jenkins
+RUN ssh-keygen -q -t rsa -P "" < /dev/zero && \
+ cat /home/jenkins/.ssh/id_rsa.pub >> /home/jenkins/.ssh/authorized_keys && \
+ chmod 600 /home/jenkins/.ssh/authorized_keys
+
+# Configure the Jenkins non-interactive logins with UTF-8
+RUN echo "export LANG=en_US.UTF-8" >> /home/jenkins/.bashrc
+
+USER root
+ENTRYPOINT [ "/usr/sbin/startup.sh" ]
+CMD [ "default" ]
+EXPOSE 22 8000-8003
diff --git a/go b/go
new file mode 100755
index 0000000..99c24ae
--- /dev/null
+++ b/go
@@ -0,0 +1,5 @@
+#!/bin/sh
+docker kill ucislave_$1
+docker rm ucislave_$1
+docker build -t mblow/ucislave-centos7
+docker run -p $1:22 mblow/ucislave-centos7 --name ucislave_$1
diff --git a/ssh/authorized_keys b/ssh/authorized_keys
new file mode 100644
index 0000000..8cf69a8
--- /dev/null
+++ b/ssh/authorized_keys
@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEA1CRSx1dGVFhIWdaK81VROIMTKq0Y27pBWGUCvi1ZxmGGgB5UdrqEVODFFIJTJdVFXOWCIkECuIaF2CpTje5p2Fkd1dqp9F3luKW7hFcEwehOOueQmY7KJ9hFvX9Q/Dcu2Zj+gdnn+LGOZbjQpeDTQLD9WF/e5nRixRQgqdWHcwnjTBvQI/LMpQlZSqm9ukqMMFf3xMnFRRN3RdT66z/BveMQ3zf/GO5lVD2y4b+uo73SYpDZWCue9gNJm5ebePsgxGQWpvb2hLJqMgPRqXtWOK/We2yxR5kYTrH9CLEn+jM5FJSQcva5A5SvIvVk6EGqNDU+k+jEvk0xHdnqk2uzv2+GhFb9xoWvVBwnyXjap/6kViJTcOUbJ0olukcOZjg2J0YiEtVUwit9/3hR97+xGJLFKq7I14yI4FzeM+QDQQNYI/KKuPpGzp9Li7Wmlye8qkKu8cQ8h4BBcG4mgPpI0FAh/JYIiPcllh3/haoiD6sbuPap5KyTwA3rPztyid1JELWAAxyQm43WBcylZtVaciPN2bFJ8t4Txcjhkm/Uflx8LAC1LJTkQF+q6hTb2L6TFSYT3nHDcufv8wqS/I3Z/5xmxUa+gtJhrenM3gAm0HvXNZDUM6K+Ln1g9dleVk3FYgRbd+A6zNmDkSOe7+yQqrP9zSuzcrwbI09pjXmlAak= jenkins@fulliautomatix.ics.uci.edu
diff --git a/ssh/config b/ssh/config
new file mode 100644
index 0000000..fc832d4
--- /dev/null
+++ b/ssh/config
@@ -0,0 +1,4 @@
+Host *
+ StrictHostKeyChecking no
+ UserKnownHostsFile /dev/null
+ LogLevel ERROR
diff --git a/startup.sh b/startup.sh
new file mode 100755
index 0000000..b8300d9
--- /dev/null
+++ b/startup.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+[[ "$1" == "default" ]] && {
+ /usr/sbin/sshd -D
+}
+
+exec "$@"