Permalink
Browse files

Docker files

  • Loading branch information...
1 parent 69ff522 commit 7a46750f8ac6f6d2fed0d9af2fb5d52438c006aa Scott Frazer committed with scottfrazer Jun 1, 2015
Showing with 40 additions and 0 deletions.
  1. +1 −0 .dockerignore
  2. +24 −0 Dockerfile
  3. +10 −0 docker/install.sh
  4. +5 −0 docker/run.sh
View
View
@@ -0,0 +1,24 @@
+# http://github.com/broadinstitute/scala-baseimage
+FROM broadinstitute/scala-baseimage
+
+# Cromwell's HTTP Port
+EXPOSE 8000
+
+# Install Cromwell
+ADD . /cromwell
+RUN ["/bin/bash", "-c", "/cromwell/docker/install.sh /cromwell"]
+
+# Add Cromwell as a service (it will start when the container starts)
+RUN mkdir /etc/service/cromwell
+ADD docker/run.sh /etc/service/cromwell/run
+
+# These next 4 commands are for enabling SSH to the container.
+# id_rsa.pub is referenced below, but this should be any public key
+# that you want to be added to authorized_keys for the root user.
+# Copy the public key into this directory because ADD cannot reference
+# Files outside of this directory
+
+#EXPOSE 22
+#RUN rm -f /etc/service/sshd/down
+#ADD id_rsa.pub /tmp/id_rsa.pub
+#RUN cat /tmp/id_rsa.pub >> /root/.ssh/authorized_keys
View
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+set -e
+
+CROMWELL_DIR=$1
+cd $CROMWELL_DIR
+sbt assembly
+CROMWELL_JAR=$(find target | grep 'cromwell.*\.jar')
+mv $CROMWELL_JAR .
+sbt clean
View
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+set -e
+
+java -jar $(find /cromwell | grep 'cromwell.*\.jar') server

0 comments on commit 7a46750

Please sign in to comment.