-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from stjude/docker_rework
Docker rework
- Loading branch information
Showing
11 changed files
with
64 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
FROM alpine:latest | ||
# build from Alpine for much smaller final image | ||
|
||
# Set working dir as /RNApeg | ||
WORKDIR /RNApeg | ||
|
||
# Tell the OS that this is a non-interactive frontend only for build | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# | ||
# Alpine-based install: | ||
# | ||
RUN apk add --no-cache openjdk8-jre | ||
# don't need full JDK, just runtime | ||
RUN apk add --no-cache curl | ||
RUN apk add --no-cache make | ||
RUN apk add --no-cache gcc | ||
RUN apk add --no-cache perl | ||
RUN apk add --no-cache perl-utils | ||
# for "cpan" command-line utility | ||
RUN apk add --no-cache perl-dev | ||
RUN apk add --no-cache musl-dev | ||
# these two for headers required to build perl DBI module | ||
RUN apk add --no-cache perl-doc | ||
# required for perl "use diagnostics", used by SampleName.pm | ||
RUN apk add --no-cache db-dev | ||
RUN apk add --no-cache expat-dev | ||
|
||
# Install perl modules | ||
RUN cpan App:cpanminus | ||
RUN cpanm --no-wget Data::Compare && chown -R root:root /root/.cpanm | ||
RUN cpanm --no-wget DB_File XML::Parser::PerlSAX XML::Twig XML::DOM | ||
RUN cpanm --no-wget Bio::Tools::CodonTable | ||
RUN cpanm --no-wget DBI | ||
RUN cpanm --no-wget Set::IntSpan | ||
|
||
# Put code into place | ||
COPY src/main/scripts /RNApeg/src/bin | ||
COPY src/main/java /RNApeg/src/javalib | ||
COPY src/main/perllib /RNApeg/src/perllib | ||
COPY dependencies/bin /RNApeg/src/bin | ||
COPY dependencies/lib/java /RNApeg/src/javalib | ||
COPY dependencies/lib/perl /RNApeg/src/perllib | ||
COPY src/main/docker/RNApeg.sh /RNApeg/src/bin | ||
|
||
# Change environment variables | ||
ENV PATH="/RNApeg/src/bin:${PATH}" | ||
ENV PERL5LIB="/RNApeg/src/perllib:${PERL5LIB}" | ||
ENV CLASSPATH=/RNApeg/src/javalib/* | ||
|
||
ENTRYPOINT ["/RNApeg/src/bin/RNApeg.sh"] | ||
CMD ["-h"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/env perl | ||
#!/usr/bin/env perl | ||
# annotate junction files re: "primary" ENSEMBL transcripts | ||
# MNE 2/2015 | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/env perl | ||
#!/usr/bin/env perl | ||
# create | ||
|
||
use strict; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/env perl | ||
#!/usr/bin/env perl | ||
# remove novel junctions present in other junction files | ||
|
||
use strict; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/env perl | ||
#!/usr/bin/env perl | ||
|
||
use strict; | ||
use warnings; | ||
|