Permalink
Please sign in to comment.
Showing
with
40 additions
and 0 deletions.
- +1 −0 .dockerignore
- +24 −0 Dockerfile
- +10 −0 docker/install.sh
- +5 −0 docker/run.sh
| @@ -0,0 +1 @@ | ||
| +.gitignore |
24
Dockerfile
| @@ -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 |
| @@ -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 |
| @@ -0,0 +1,5 @@ | ||
| +#!/bin/bash | ||
| + | ||
| +set -e | ||
| + | ||
| +java -jar $(find /cromwell | grep 'cromwell.*\.jar') server |
0 comments on commit
7a46750