Skip to content

Commit

Permalink
Update Docker file for Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Raymond Pete committed Jul 23, 2015
1 parent 9752a3d commit 02c4ad2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Expand Up @@ -8,6 +8,7 @@ MAINTAINER DSDE <dsde-engineering@broadinstitute.org>
# Integration Testing
VOLUME ["/etc/Broad_DSDE_Development-c2604f2f8d78.p12" , "/dev/shm/Broad_DSDE_Development-c2604f2f8d78.p12"]
VOLUME ["/etc/agora.conf", "/dev/shm/agora.conf"]
ENV TEST_CONFIG /dev/shm/agora.conf

# Install necessary packages including java 8 jre and sbt and clean up apt caches
RUN echo "deb http://dl.bintray.com/sbt/debian /" >> /etc/apt/sources.list.d/sbt.list && \
Expand Down Expand Up @@ -42,7 +43,7 @@ COPY src /usr/agora/src

# Run the tests then copy in the application.conf file and build the jar. Then copy the jar in to the work directory and
# do some clean up in order to minimize image size.
RUN sbt test && \
RUN sbt unitTest integration test && \
sbt assembly && \
cp /usr/agora/target/scala-2.11/agora-0.1-SNAPSHOT.jar /usr/agora && \
rm -rf /root/.embedmongo /root/.ivy2 /root/.sbt /usr/agora/target /usr/agora/src /usr/agora/build.sbt /usr/agora/assembly.sbt
Expand Down

0 comments on commit 02c4ad2

Please sign in to comment.