-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
64 lines (51 loc) · 1.84 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
ARG MERCURY_VER="1.0.9"
FROM google/cloud-sdk:480.0.0-slim
ARG MERCURY_VER
LABEL base.image="google/cloud-sdk:480.0.0-slim"
LABEL software="mercury"
LABEL software.version=${MERCURY_VER}
LABEL description="Mercury_Prep_N_Batch"
LABEL website="https://github.com/theiagen/mercury"
LABEL license="https://github.com/theiagen/mercury/blob/main/LICENSE"
LABEL maintainer="Sage Wright"
LABEL maintainer.email="[email protected]"
ARG DEBIAN_FRONTEND=noninteractive
# Tell gcloud to save state in /.config so it's easy to override as a mounted volume.
ENV HOME=/
# install stuff via apt; cleanup apt garbage
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
wget \
python3 \
python3-pip \
python3-setuptools \
gawk \
git && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
# clone broad/terra-tools repo
# copying scripts dir to `/scripts` for consistency
# make all scripts within /scripts exectuable to all users
RUN git clone https://github.com/broadinstitute/terra-tools.git && \
mkdir /scripts && \
cp -vr /terra-tools/scripts/* /scripts && \
chmod +x /scripts/*
# we are installing updated versions of each of the following via pip3/pypi:
RUN pip3 install --break-system-packages firecloud \
google-auth-httplib2 \
gcs-oauth2-boto-plugin \
google-api-python-client \
google-cloud-storage \
google-cloud-bigquery \
pandas \
numpy
ENV LC_ALL=C
# copy in all of the tb-profiler-parsing code
RUN wget https://github.com/theiagen/mercury/archive/refs/tags/v${MERCURY_VER}.tar.gz && \
tar -xzvf v${MERCURY_VER}.tar.gz && \
mv -v mercury-${MERCURY_VER} /mercury
# final working directory is /data
WORKDIR /data
# put broadinstitute/terra-tools scripts onto the PATH
ENV PATH=${PATH}:/scripts
# check that we have stuff installed
RUN gcloud storage --help && pip3 list && python3 /mercury/mercury/mercury.py --help