Updating version on contributed Docker image
Updating version on contributed Docker image

FROM ubuntu:16.04

# docker build -t dnanexus/dxwdl .

# 1. DNANexus SDK (dx-toolkit)
RUN apt-get update && apt-get install -y wget git openssl python python-dev g++ default-jdk
RUN wget https://wiki.dnanexus.com/images/files/dx-toolkit-v0.276.0-ubuntu-16.04-amd64.tar.gz && \
    tar -xzvf dx-toolkit-v0.276.0-ubuntu-16.04-amd64.tar.gz && \
    /bin/bash -c "source /dx-toolkit/environment"
ENV PATH /dx-toolkit/bin:$PATH

# Python and pip (Python 2.7 is required)
RUN wget https://bootstrap.pypa.io/get-pip.py && \
    python get-pip.py && \
    pip install dxpy
RUN dx upgrade

# Upload Agent
WORKDIR /
RUN wget https://wiki.dnanexus.com/images/files/dnanexus-upload-agent-1.5.30-linux.tar.gz && \
    tar -xzvf dnanexus-upload-agent-1.5.30-linux.tar.gz && \
    cd dnanexus-upload-agent-1.5.30-linux
ENV PATH $PATH:/dnanexus-upload-agent-1.5.30-linux

# dxWDL
WORKDIR /
ARG DXWDL_VERSION=0.81
RUN wget https://github.com/dnanexus/dxWDL/releases/download/$DXWDL_VERSION/dxWDL-$DXWDL_VERSION.jar && \
    chmod +x dxWDL-$DXWDL_VERSION.jar && mv dxWDL-$DXWDL_VERSION.jar dxWDL.jar

ENTRYPOINT ["java", "-jar", "/dxWDL.jar"]
