annotate toolfactory/docker/Dockerfile @ 46:f8700bed1e17 draft

Uploaded
author fubar
date Tue, 18 Aug 2020 08:25:43 -0400
parents f8c1694190f0
children
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
46
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
6 FROM quay.io/bgruening/galaxy:20.05
41
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"
46
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
11 ADD tfwelcome.html /export/welcome.html
41
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
12 # RUN add-tool-shed --url 'http://testtoolshed.g2.bx.psu.edu/' --name 'Test Tool Shed'
46
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
13 RUN mkdir -p /tftools \
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
14 && mkdir -p /tftools/toolfactory \
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
15 && mkdir -p /tftools/planemo_test
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
16
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
17 ADD ./tftools/toolfactory /tftools/toolfactory
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
18 ADD ./tftools/tf_tool_conf.xml /tftools/tf_tool_conf.xml
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
19 ADD ./tftools/planemo_test /tftools/planemo_test
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
20 ADD TF_example_wf.ga /tftools/TF_example_wf.ga
41
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
21
46
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
22 ADD my_tool_list.yml /tftools/toolfactory_tools.yaml
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
23
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
24 ENV GALAXY_AUTO_UPDATE_TOOLS=/tftools/toolfactory_tools.yaml
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
25 # NOTE above does work but takes 1-2 minutes
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
26
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
27 # ENV GALAXY_CONFIG_TOOL_CONFIG_FILE=config/tool_conf.xml.sample,config/tf_tool_conf.xml,config/shed_tool_conf.xml.sample
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
28 #ENV GALAXY_CONFIG_TOOL_CONFIG_FILE=/tftools/tf_tool_conf.xml,config/tool_conf.xml.sample
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
29 # works but does not install dependencies
41
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
30 # Add workflows to the Docker image
46
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
31
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
32 ENV $GALAXY_DEFAULT_ADMIN_USER="admin"
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
33 # ensure triggering post-start-actions.sh
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
34
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
35 ADD tftools/datatypes_conf.xml $GALAXY_ROOT/conf/datatypes_conf.xml.sample
41
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
36 ADD post-start-actions.sh /export/post-start-actions.sh
46
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
37 ADD post-start-actions.sh $GALAXY_ROOT/config/post-start-actions.sh
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
38
41
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
39 RUN chmod a+xr /export/post-start-actions.sh \
46
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
40 && chmod a+xr /tftools/TF_example_wf.ga \
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
41 && chmod a+xr $GALAXY_ROOT/config/post-start-actions.sh
41
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
42 # Add Galaxy interactive tours
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
43 # ADD ./rna-workbench-tours/* $GALAXY_ROOT/config/plugins/tours/
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
44 # Add data library definition file
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
45 # ADD library_data.yaml $GALAXY_ROOT/library_data.yaml
46
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
46
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
47 VOLUME ["/export/", "/data/", "/var/lib/docker"]
41
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
48 EXPOSE :80
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
49 EXPOSE :21
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
50 EXPOSE :8800
46
f8700bed1e17 Uploaded
fubar
parents: 41
diff changeset
51
41
f8c1694190f0 Uploaded
fubar
parents:
diff changeset
52 CMD ["/usr/bin/startup"]