Skip to content

Commit

Permalink
add .dockerignore and combine Docker RUN steps
Browse files Browse the repository at this point in the history
  • Loading branch information
stevekm committed Nov 11, 2020
1 parent 0cd112f commit f6335c8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.sif
.dockerignore
IGV_2.4.10/
*.zip
igv.jar
snapshots/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,4 @@ bin*
test.py
target.bed
*.sif
snapshots/
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ ADD . /IGV-snapshot-automator
ENV PATH="/IGV-snapshot-automator/:/IGV-snapshot-automator/IGV_2.4.10/:${PATH}"

# install IGV via the Makefile
RUN cd /IGV-snapshot-automator && make install

# make a dummy batch script in order to load the hg19 genome into the container
# then make a dummy batch script in order to load the hg19 genome into the container
# https://software.broadinstitute.org/software/igv/PortCommands
RUN printf 'new\ngenome hg19\nexit\n' > /genome.bat
RUN xvfb-run --auto-servernum --server-num=1 igv.sh -b /genome.bat
RUN cd /IGV-snapshot-automator && \
make install && \
printf 'new\ngenome hg19\nexit\n' > /genome.bat && \
xvfb-run --auto-servernum --server-num=1 igv.sh -b /genome.bat

0 comments on commit f6335c8

Please sign in to comment.