Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| FROM stackbrew/ubuntu:13.10 | |
| MAINTAINER Brad Chapman "https://github.com/chapmanb" | |
| # Setup a base system | |
| RUN apt-get update && apt-get install -y build-essential zlib1g-dev wget curl python-setuptools git | |
| # Fake a fuse install; openjdk pulls this in | |
| # https://github.com/dotcloud/docker/issues/514 | |
| # https://gist.github.com/henrik-muehe/6155333 | |
| RUN mkdir -p /tmp/fuse-hack && cd /tmp/fuse-hack && \ | |
| apt-get install libfuse2 && \ | |
| apt-get download fuse && \ | |
| dpkg-deb -x fuse_* . && \ | |
| dpkg-deb -e fuse_* && \ | |
| rm fuse_*.deb && \ | |
| echo -en '#!/bin/bash\nexit 0\n' > DEBIAN/postinst && \ | |
| dpkg-deb -b . /fuse.deb && \ | |
| dpkg -i /fuse.deb && \ | |
| rm -rf /tmp/fuse-hack | |
| # bcbio-nextgen installation | |
| RUN mkdir -p /tmp/bcbio-nextgen-install && cd /tmp/bcbio-nextgen-install && \ | |
| wget --no-check-certificate \ | |
| https://raw.github.com/chapmanb/bcbio-nextgen/master/scripts/bcbio_nextgen_install.py && \ | |
| python bcbio_nextgen_install.py /usr/local/share/bcbio-nextgen --tooldir=/usr/local \ | |
| --toolplus data --nodata --nosudo -u development && \ | |
| bcbio_nextgen.py upgrade --isolate -u development && \ | |
| echo 'export PATH=/usr/local/bin:$PATH' >> /etc/profile && \ | |
| echo 'export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH' >> /etc/profile && \ | |
| echo 'export PERL5LIB=/usr/local/lib/perl5:/usr/local/lib/perl5/site_perl:${PERL5LIB}' >> /etc/profile && \ | |
| apt-get clean && \ | |
| rm -rf /var/lib/apt/lists/* /var/tmp/* && \ | |
| /usr/local/share/bcbio-nextgen/anaconda/bin/conda remove --yes qt && \ | |
| /usr/local/share/bcbio-nextgen/anaconda/bin/conda clean --yes --tarballs && \ | |
| rm -rf /usr/local/share/bcbio-nextgen/anaconda/pkgs/qt* && \ | |
| rm -rf $(brew --cache) && \ | |
| rm -rf /.cpanm && \ | |
| rm -rf /tmp/bcbio-nextgen-install | |
| # Create directories and symlinks for data | |
| RUN mkdir -p /mnt/biodata && \ | |
| mkdir -p /tmp/bcbio-nextgen && \ | |
| mv /usr/local/share/bcbio-nextgen/galaxy/bcbio_system.yaml /usr/local/share/bcbio-nextgen/config && \ | |
| rmdir /usr/local/share/bcbio-nextgen/galaxy && \ | |
| ln -s /mnt/biodata/galaxy /usr/local/share/bcbio-nextgen/galaxy && \ | |
| ln -s /mnt/biodata/gemini_data /usr/local/share/bcbio-nextgen/gemini_data && \ | |
| ln -s /mnt/biodata/genomes /usr/local/share/bcbio-nextgen/genomes && \ | |
| ln -s /mnt/biodata/liftOver /usr/local/share/bcbio-nextgen/liftOver && \ | |
| chmod a+rwx /usr/local/share/bcbio-nextgen && \ | |
| chmod a+rwx /usr/local/share/bcbio-nextgen/config && \ | |
| chmod a+rwx /usr/local/share/bcbio-nextgen/config/*.yaml && \ | |
| chmod a+rwx /usr/local/share/bcbio-nextgen/gemini-config.yaml | |
| EXPOSE 8085 | |
| ENTRYPOINT ["/usr/local/bin/bcbio_nextgen.py", "server", "--port", "8085", "--biodata_dir", "/mnt/biodata"] |