-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
43 lines (31 loc) · 1.72 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
40
41
42
##############################################################################################################################
#
# This container includes all necessary components for initializing the NemaScan Nextflow pipeline in Google Cloud
# Additional configuration options can be passed in via environment variables
#
##############################################################################################################################
# Base image includes Google Cloud SDK tools
FROM google/cloud-sdk:slim
# Install OpenJDK JRE for Nextflow
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends openjdk-11-jre wget procps
LABEL Name="NemaScan-NXF" Author="Sam Wachspress"
# Specify Nextflow version and mode
# (21.05.0-edge is the first version to support configuring which service account acts as pipeline-runner)
ENV NXF_VER=21.05.0-edge \
NXF_MODE=google \
NXF_EDGE=1
WORKDIR /nemascan
# Run the Nextflow install script (version and mode must be piped in to bash during install
# or nextflow will initially download the latest version and only download and switch to NXF_VER when the container runs)
RUN NXF_VER=21.05.0-edge NXF_MODE=google NXF_EDGE=1 \
wget -qO- https://get.nextflow.io | bash
RUN git clone https://github.com/AndersenLab/NemaScan.git
COPY NemaScan/nemascan-nxf.sh /nemascan/nemascan-nxf.sh
COPY NemaScan/nextflow.config /nemascan/nextflow.config
COPY NemaScan/main.nf /nemascan/main.nf
COPY NemaScan/conf/* /nemascan/conf/
COPY NemaScan/bin/* /nemascan/bin/
COPY NemaScan/modules/* /nemascan/modules/
# add nextflow and nemarun directory to te system path and make them executable
ENV PATH="/nemascan:${PATH}"
RUN chmod +x /nemascan/nemascan-nxf.sh /nemascan/nextflow