Skip to content

Commit

Permalink
Merge pull request #157 from sanger-pathogens/ybendana-installamos
Browse files Browse the repository at this point in the history
Docker image fix
  • Loading branch information
trstickland authored Jan 6, 2020
2 parents 3fae2f7 + de86a28 commit e9624ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Dockerfile
.git
.gitignore
.travis.yml
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ RUN ln -s ${BUILD_DIR}/build/MUMmer3.23/show-coords /usr/local/bin

RUN circlator progcheck && circlator test /tmp/circlator-test && rm -r /tmp/circlator-test

RUN TEST_DATA_DIR=`ls -d /usr/local/lib/python3.?/dist-packages/circlator* | head -1`/circlator/data; \
if [ -f ${TEST_DATA_DIR}/test_contigs.fa ]; \
then chmod a+rX ${TEST_DATA_DIR}/*; \
else echo "Could not find test data directory ${TEST_DATA_DIR}" && exit 255; \
fi

CMD echo "Usage: docker run -v \`pwd\`:/var/data -it <IMAGE_NAME> bash" && \
echo "" && \
echo "This will place you in a shell with your current working directory accessible as /var/data." && \
Expand Down

0 comments on commit e9624ee

Please sign in to comment.