Dockerfile 2.5 KB
Newer Older
1
2
#FROM ubuntu:18.04
FROM billyteves/ubuntu-dind:16.04
Hervé  MENAGER's avatar
Hervé MENAGER committed
3
4
5
6
7
8
9
10
11
WORKDIR /app
RUN apt-get update && apt-get install -y \
  git \
  python-dev \
  python-pip \
  gcc \
  make \
  docker.io \
  wget \
12
  curl \ 
13
14
  libpq-dev \
  vim
15
RUN git clone --depth 1 --progress https://github.com/common-workflow-language/galaxy.git /app/galaxy
16
RUN git clone --depth 1 --single-branch --branch master --progress https://github.com/EBI-metagenomics/workflow-is-cwl /app/workflow-is-cwl
Hervé  MENAGER's avatar
Hervé MENAGER committed
17
18
19
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -y yarn
Hervé  MENAGER's avatar
Hervé MENAGER committed
20
# init Galaxy (download deps and init DB...)
Hervé  MENAGER's avatar
Hervé MENAGER committed
21
RUN cd /app/galaxy && ./scripts/common_startup.sh 
Hervé  MENAGER's avatar
Hervé MENAGER committed
22
#RUN cd /app/galaxy && . .venv/bin/activate && cwltool --pack /app/workflow-is-cwl/tools/Diamond/Diamon.blastx-v0.9.21.cwl > /app/workflow-is-cwl/tools/Diamond/Diamon.blastx-v0.9.21.packed.cwl
Hervé  MENAGER's avatar
Hervé MENAGER committed
23
24
RUN cd /app/galaxy && ./create_db.sh
RUN cd /app/galaxy && ./manage_db.sh upgrade
Hervé  MENAGER's avatar
Hervé MENAGER committed
25
26
27
28
29
30
31
# DEBUG complex types
COPY representation.py /app/galaxy/lib/galaxy/tools/cwl/representation.py
COPY parser.py /app/galaxy/lib/galaxy/tools/cwl/parser.py
#COPY __init__.py /app/galaxy/lib/galaxy/tools/__init__.py
COPY process.py /app/galaxy/.venv/local/lib/python2.7/site-packages/cwltool/process.py 
COPY wrappers.py /app/galaxy/lib/galaxy/tools/wrappers.py
# local config
32
33
34
35
COPY job_conf.xml /app/galaxy/config/job_conf.xml
COPY dependency_resolvers_conf.xml /app/galaxy/config/dependency_resolvers_conf.xml
COPY galaxy.yml /app/galaxy/config/galaxy.yml
COPY tool_conf.xml /app/galaxy/config/tool_conf.xml
Hervé  MENAGER's avatar
Hervé MENAGER committed
36
COPY welcome.html /app/galaxy/static/welcome.html
Hervé  MENAGER's avatar
Hervé MENAGER committed
37
# create entry point
38
COPY start.sh /app/start.sh
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# test modified gx annotation for type
COPY Diamon.makedb-v0.9.21.cwl /app/workflow-is-cwl/tools/Diamond/Diamon.makedb-v0.9.21.cwl
COPY create_user.py /app/galaxy/create_user.py
# copy a fixed version of workflows.py to allow Workflow API uploads until
# https://github.com/common-workflow-language/galaxy/pull/105 is merged
COPY workflows.py /app/galaxy/lib/galaxy/managers/workflows.py
# create the admin user
RUN bash -c "cd /app/galaxy && . .venv/bin/activate && python create_user.py"
# upload workflows and data
RUN git clone https://github.com/vishnubob/wait-for-it.git
RUN cd /app/galaxy && . .venv/bin/activate && pip install bioblend
COPY upload_material.py /app
COPY start_galaxy_and_upload_material.sh /app
RUN bash /app/start_galaxy_and_upload_material.sh
53
CMD ["sh", "/app/start.sh"]
Hervé  MENAGER's avatar
Hervé MENAGER committed
54
EXPOSE 8080