annotate docker/Dockerfile @ 42:b938475235e3 draft

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