annotate toolfactory/docker/Dockerfile @ 41:f8c1694190f0 draft

Uploaded
author fubar
date Sun, 16 Aug 2020 08:11:10 -0400
parents
children f8700bed1e17
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
41
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
1 # Galaxy - Toolshed Docker image
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
2 # Derived from bgruening stable galaxy
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
3 # VERSION 0.2
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
4 # patches startup so the below will install a workflow dropped into $GALAXY_ROOT/workflows
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
5 # use docker run -p 8080:80 -d -e GALAXY_AUTO_UPDATE_WORKFLOWS=/galaxy-central/workflows/TF_sample_wf.ga -v /home/ubuntu/galaxy_storage/:/export/ toolfactory
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
6 FROM bgruening/galaxy-stable
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
7 MAINTAINER Ross Lazarus ross.lazarus@gmail.com
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
8
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
9 ENV GALAXY_CONFIG_BRAND=ToolFactory
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
10 ENV GALAXY_LOGGING="full"
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
11
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
12 # RUN apt-get update -y && apt-get install -y build-essential gcc apt-utils
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
13 # needed for planemo build
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
14
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
15 RUN /galaxy_venv/bin/python -m pip install --upgrade pip
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
16 # RUN /galaxy_venv/bin/python -m pip install planemo
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
17
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
18 # RUN add-tool-shed --url 'http://testtoolshed.g2.bx.psu.edu/' --name 'Test Tool Shed'
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
19 ADD my_tool_list.yml $GALAXY_ROOT/config/toolfactory_tools.yaml
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
20 ENV GALAXY_AUTO_UPDATE_TOOLS=$GALAXY_ROOT/config/toolfactory_tools.yaml
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
21
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
22 # Add workflows to the Docker image
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
23 RUN mkdir -p $GALAXY_ROOT/workflows
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
24 ADD TF_example_wf.ga $GALAXY_ROOT/workflows/TF_example_wf.ga
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
25 ADD post-start-actions.sh /export/post-start-actions.sh
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
26 RUN chmod a+xr /export/post-start-actions.sh \
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
27 && chmod a+xr $GALAXY_ROOT/workflows/TF_example_wf.ga
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
28
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
29 # Add Galaxy interactive tours
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
30 # ADD ./rna-workbench-tours/* $GALAXY_ROOT/config/plugins/tours/
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
31 # Add data library definition file
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
32 # ADD library_data.yaml $GALAXY_ROOT/library_data.yaml
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
33 # cleanup dance
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
34 RUN apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -rf ~/.cache/ \
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
35 && find $GALAXY_ROOT/ -name '*.pyc' -delete | true \
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
36 && find /usr/lib/ -name '*.pyc' -delete | true \
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
37 && find /var/log/ -name '*.log' -delete | true \
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
38 && find $GALAXY_VIRTUAL_ENV -name '*.pyc' -delete | true \
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
39 && rm -rf /tmp/* /root/.cache/ /var/cache/* $GALAXY_ROOT/client/node_modules/ $GALAXY_VIRTUAL_ENV/src/ /home/galaxy/.cache/ /home/galaxy/.npm
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
40 ENV GALAXY_DEFAULT_ADMIN_USER=''
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
41 VOLUME ["/export/"]
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
42 EXPOSE :80
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
43 EXPOSE :21
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
44 EXPOSE :8800
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
45 CMD ["/usr/bin/startup"]
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
46