-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathDockerfile
39 lines (30 loc) · 1.62 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM nfcore/base:1.13.3
LABEL authors="John Hadish, Tyler Biggs, Ben Shealy, Connor Wytko, Sai Prudhvi Oruganti, F. Alex Feltus, & Stephen Ficklin" \
description="Docker image containing all software requirements for the systemsgenetics/gemmaker pipeline"
# Install the conda environment
COPY environment.yml /
RUN conda env create --quiet -f /environment.yml && conda clean -a
# Add conda installation dir to PATH (instead of doing 'conda activate')
ENV PATH /opt/conda/envs/systemsgenetics-gemmaker-2.1.0/bin:$PATH
# Dump the details of the installed packages to a file for posterity
RUN conda env export --name systemsgenetics-gemmaker-2.1.0 > systemsgenetics-gemmaker-2.1.0.yml
# ----------------------------
# Aspera is not a conda module so we have to manually include it.
# Aspera can only be installed as a non-root user
RUN groupadd -g 61000 gemmaker \
&& useradd -g 61000 --no-log-init --create-home --shell /bin/bash -u 61000 gemmaker
USER gemmaker
WORKDIR /home/gemmaker
RUN wget -q https://download.asperasoft.com/download/sw/connect/3.8.1/ibm-aspera-connect-3.8.1.161274-linux-g2.12-64.tar.gz \
&& tar -xf ibm-aspera-connect-3.8.1.161274-linux-g2.12-64.tar.gz \
&& ./ibm-aspera-connect-3.8.1.161274-linux-g2.12-64.sh \
&& rm ibm-aspera-connect-3.8.1.161274-linux-g2.12-64.sh
USER root
WORKDIR /root
RUN mv /home/gemmaker/.aspera /opt/aspera
# Make sure the ascp command is in the path and to support future
# updates of aspera we'll add a new variable ASPERA_KEY that can be
# used in the GEMmaker bash code.
ENV PATH "$PATH:/opt/aspera/connect/bin"
ENV ASPERA_KEY "/opt/aspera/connect/etc/asperaweb_id_dsa.openssh"
WORKDIR /