-
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.
- Loading branch information
Chris Warth
committed
Nov 6, 2015
1 parent
b207586
commit 31cff2c
Showing
31 changed files
with
156 additions
and
15 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
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 |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# Create an image with that looks like a naive user on the rhino servers. | ||
# | ||
# This Dockerfile will compile and install both Beast and | ||
# | ||
FROM r-base | ||
MAINTAINER Chris Warth [email protected] | ||
|
||
ENV HOME /root | ||
WORKDIR ${HOME} | ||
|
||
ADD Dockerfile ${HOME}/Dockerfile | ||
|
||
RUN apt-get update -qq | ||
RUN apt-get dist-upgrade -y | ||
|
||
# Install tools needed to compile Beast and Beagle. | ||
# | ||
RUN apt-get install -y ant build-essential autoconf automake libtool subversion pkg-config | ||
|
||
RUN apt-get install -y \ | ||
python-dev \ | ||
wget \ | ||
openssh-client \ | ||
git \ | ||
pandoc \ | ||
lmodern \ | ||
openjdk-7-jdk \ | ||
openjdk-7-jre-headless \ | ||
cmake \ | ||
samtools \ | ||
freetype* \ | ||
pkg-config \ | ||
libcurl4-openssl-dev \ | ||
libxml2-dev \ | ||
libssl-dev | ||
|
||
RUN wget -q https://bootstrap.pypa.io/get-pip.py | ||
RUN python get-pip.py | ||
RUN pip install --upgrade distribute | ||
|
||
RUN pip install virtualenv | ||
|
||
# # Make ssh dir | ||
WORKDIR /root | ||
|
||
# Make ssh dir | ||
RUN mkdir /root/.ssh/ | ||
|
||
# Copy over private key, and set permissions | ||
ADD id_rsa-github_readonly_user /root/.ssh/id_rsa | ||
RUN chmod 700 /root/.ssh/id_rsa | ||
|
||
# Create known_hosts | ||
RUN touch /root/.ssh/known_hosts | ||
|
||
# Add bitbuckets key | ||
RUN ssh-keyscan -T 60 github.com >> /root/.ssh/known_hosts | ||
|
||
# clone repo and remove private key | ||
RUN git clone --recursive [email protected]:matsengrp/founder-inference-bakeoff.git | ||
RUN rm -f /root/.ssh/id_rsa | ||
|
||
ADD Dockerfile /root/Dockerfile | ||
|
||
# Clone and compile Beagle from sources | ||
RUN git clone --depth=1 https://github.com/beagle-dev/beagle-lib.git | ||
WORKDIR ${HOME}/beagle-lib | ||
RUN ./autogen.sh | ||
RUN ./configure --disable-sse --disable-march-native --prefix=/usr/local | ||
RUN make install | ||
#RUN rm -rf ${HOME}/beagle-lib | ||
|
||
# Clone and install Beast from sources | ||
WORKDIR ${HOME} | ||
RUN git clone https://github.com/beast-dev/beast-mcmc.git | ||
WORKDIR ${HOME}/beast-mcmc | ||
RUN ant linux | ||
RUN mv ${HOME}/beast-mcmc/release/Linux/BEASTv1.8.3pre ${HOME}/ | ||
#RUN rm -rf ${HOME}/beast-mcmc | ||
# this leaves the compiled BEAST jar file in ${HOME}/BEASTv1.8.3pre/ | ||
|
||
|
||
# make beagle libraries and Beast script accessible | ||
RUN echo 'export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH' >> ${HOME}/.bashrc | ||
ENV LD_LIBRARY_PATH /usr/local/lib:${LD_LIBRARY_PATH} | ||
|
||
# make beast scripts accessilbe on PATH | ||
RUN echo 'export PATH=BEASTv1.8.3pre/bin:$PATH' >> ${HOME}/.bashrc | ||
|
||
# Clean-up | ||
RUN apt-get -y autoremove | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
CMD bash | ||
|
||
|
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,27 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIEogIBAAKCAQEArwcmtWh09SOBKCqTUkGJkn3Yqycv5/K5TzhyOfIMIMtxT5sN | ||
P8B2mqy4KWqutwvQYqX/+RF8aykfRYC55MqgR00S2Uj3DVO51n5FOTD2WQOza8pI | ||
XfZMubn+MXcZxOM7f8iVgixHzjlkL92ySKKFai6od5A9pSFwZitLSJRQ8fXQNNIB | ||
N2CKmd63cdEMf3Dkn+z3Z8jnl6ZklpEvoReWP9H/JyshQHItohLLJL/g7cDxF9ba | ||
GJnfk6urBsiosF0hjhOnAms3fK8fQSJm7+VxjB6T5/GS9oXDPoRAwb5W1R4dJy6L | ||
8ANDNOcXDSriUL6c3CEXoHabXhq/lUZr3MR9TQIDAQABAoIBADs3gywrLC7oFUGe | ||
rftNexsaAt1dQ8MJBxM7eMIMF3hc/Hg/cEsadcY9G42/r17020sU+Lau6NZkslTU | ||
iZBT0cht1iu3mQZkRmLAk/EWlLJnIyQb60IHG8xWlh7sOca4TqAcICFLk/u8xR3A | ||
txoGCndzU8IoBgNBfgLDMRRcQcqqnZomogSeYswCTpafgSj2BoXo9G9h6j2KQWGq | ||
uo1kBVXcVUPh3PglLQky4qEEGuykFUnam6gNNUvS8fLIj4wzEGyVAXcxQYHEfQ9t | ||
+ixOMOTznP4P1ARYLkXC6V25GG8e+KodkkGepho4wq1n2QUa11W02IGQFiWDu7UV | ||
Df1hlU0CgYEA3vnCiWC5rrFRmVbIN20mn6yAhvMwZs/rSR1I3UdppDYLuN/Td/N+ | ||
dciWVN4So0l5QSxtuaxLN3BKPC4jpsEAGv/Ff9S9RlxIlfYminN2uyyzg/nxGzNE | ||
NFDiHrBjdiEmP6O84CAZjtLLpzT6lIEPD0f5vFEXICM+sWpPw93gzecCgYEAyPNt | ||
0QxYeKh43Bmxs0uWsgjBGVcXvVfQXRaRC3KTn+1sIwQZeoSQvGH0rTAep1U0TZBF | ||
ZhTZ4X8Jwi9zKVfDT+uoZ3wobq81MUgthfu9xjBCnmTvUl1XTZS69F/n3td3V6ok | ||
XoYdXNuUaZ6X4svAFMtOCx8POEsVH19z0iqm7KsCgYA8pi7V8ytOawjI7qPy/4t7 | ||
7w3epxNJQ9C5yG9jUONZOSIjHS6F+AMzwmWxm93x8DA9G/qUgFrNL4vhpqMn3mNK | ||
9LshtBnvo3ZS4+tDyXhIHTaO9VMxlNY+bKm0s0G6hfXDZaQgSlrpUEj4qB5oelpA | ||
S9GP+XaS1UNeOo6LtjRJjQKBgCBtqDskEuLlzRs3ykV03Uy9vOup8lrL4QQksCN4 | ||
yfn1Bo5gCvyKiBDefe205j16soYR0iE3HDIXniuIHL1/PDWZggOxNZUnER5y12XX | ||
yjhBcX6+KyDPj1cluUXWdESx4MB05ImcewCRLtIclcYzuzuf02hYCsy60R3O+ZHg | ||
8C8hAoGAcwh31ZXhfBOdGzaKXB6lbvyCuS+Lbgq/HcILx3ytOAh7DPx+/coBkVKx | ||
FS6+VdGdPvLEUflmbWGe2NFfXNoJhwxzxCaK9hSHEUnU/t7i9VF1p9IcDdQ9NJG+ | ||
mB4HtXNaiMcaGgLRI9OXquCE+p4lVcHSgXWhXBcCItTEjONPfEo= | ||
-----END RSA PRIVATE KEY----- |
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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.