|
1 | 1 | FROM ubuntu/apache2:2.4-20.04_beta
|
2 | 2 |
|
3 |
| -RUN ln -sf /dev/stdout /var/log/apache2/access.log && ln -sf /dev/stderr /var/log/apache2/error.log && a2enmod cgi |
4 |
| -RUN apt update -y && apt install -y mongodb ca-certificates curl python python3-pip && rm -rf /var/lib/apt/lists/* && curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | python |
5 |
| -RUN pip install --no-cache-dir numpy==1.11.2 pymongo==3.8.0 requests==2.22.0 && pip3 install --no-cache-dir numpy==1.17.2 pymongo==3.8.0 requests==2.20.0 Jinja2==2.10.1 GitPython==3.0.5 |
| 3 | +# Match Docker expectations for logging like the Docker Library nginx image |
| 4 | +RUN ln -sf /dev/stdout /var/log/apache2/access.log && \ |
| 5 | + ln -sf /dev/stderr /var/log/apache2/error.log && \ |
| 6 | +# Enable Common Gateway Interface scripts that comprise much of FORCAST's backend |
| 7 | + a2enmod cgi |
| 8 | +RUN apt update -y && \ |
| 9 | + apt install -y \ |
| 10 | +# MongoDB 3.6 for storing guides and primers |
| 11 | + mongodb \ |
| 12 | +# General downloads here, unzip JBrowse |
| 13 | + ca-certificates curl unzip \ |
| 14 | +# Convenient downloads for Dicey from GEAR Genomics Tracy |
| 15 | + wget rename \ |
| 16 | +# FORCAST uses both Python 2 and 3 for some reason |
| 17 | + python python3-pip \ |
| 18 | +# Bioinformatics tools used when installing new genomes |
| 19 | + bwa bedtools samtools ncbi-blast+ && \ |
| 20 | +# FORCAST primer design feature after setup |
| 21 | + primer3 && \ |
| 22 | +# Remove lists pulled by apt update for consistent images |
| 23 | + rm -rf /var/lib/apt/lists/* && \ |
| 24 | +# python-pip is no longer included in the distribution as Python 2 is out of support |
| 25 | + curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | python |
| 26 | +RUN mkdir -p /opt/dicey/bin && \ |
| 27 | + mkdir -p /opt/dicey/dicey_tempfiles && \ |
| 28 | + curl -Lo /opt/dicey/bin/dicey https://github.com/gear-genomics/dicey/releases/download/v0.1.8/dicey_v0.1.8_linux_x86_64bit && \ |
| 29 | + chmod +x /opt/dicey/bin/dicey |
| 30 | +ARG JBROWSE_VERSION=1.12.3 |
| 31 | +RUN curl -LO https://jbrowse.org/releases/JBrowse-${JBROWSE_VERSION}/JBrowse-${JBROWSE_VERSION}.zip && \ |
| 32 | + unzip JBrowse-${JBROWSE_VERSION}.zip && \ |
| 33 | + mv JBrowse-${JBROWSE_VERSION} /var/www/html/jbrowse && \ |
| 34 | + rm JBrowse-${JBROWSE_VERSION}.zip && \ |
| 35 | + cd /var/www/html/jbrowse && ./setup.sh |
| 36 | +RUN pip install --no-cache-dir numpy==1.11.2 pymongo==3.8.0 requests==2.22.0 && \ |
| 37 | + pip3 install --no-cache-dir numpy==1.17.2 pymongo==3.8.0 requests==2.20.0 Jinja2==2.10.1 GitPython==3.0.5 |
| 38 | +COPY config-template /var/www/html/config |
6 | 39 |
|
7 | 40 | CMD service mongodb start && exec apache2-foreground
|
8 |
| -# Install JBrowse |
9 |
| -# Install GuideFinder dependencies? |
10 |
| -# Install Primer3, NCBI Blast, Dicey |
11 |
| - |
12 |
| - |
13 |
| - |
14 |
| -#FROM ubuntu:16.04 |
15 |
| -#LABEL maintainer="[email protected]" |
16 |
| -#ENV DEBIAN_FRONTEND noninteractive |
17 |
| - |
18 |
| -# INSTALL BASE REQUIREMENTS |
19 |
| -#RUN apt-get update && \ |
20 |
| -# apt-get install -y git sudo apache2 && \ |
21 |
| -# cd /var/www/html && \ |
22 |
| -# rm index.html |
23 |
| - |
24 |
| -# CHANGE DOCUMENT ROOT AND SERVERNAME |
25 |
| -#WORKDIR /etc/apache2 |
26 |
| -#RUN sed -i -e "/DocumentRoot/a \ \t\<Directory \'\/var\/www\/html\'\>\n\t\tOptions +ExecCGI\n\t\tAddHandler cgi-script .py\n\t\tAllow from all\n\t</Directory\>" sites-available/000-default.conf |
27 |
| -#RUN sed -i '1 i\ServerName FORCAST' apache2.conf |
28 |
| - |
29 |
| -# GET HOST CODE |
30 |
| -#COPY . /var/www/html/ |
31 |
| -#WORKDIR /var/www/html/ |
32 |
| - |
33 |
| -# INSTALL DEPENDENCIES |
34 |
| -#RUN cd src/installation && \ |
35 |
| -# ./install.sh /var/www/html && \ |
36 |
| -# ./setPermissions.sh |
|
0 commit comments