-
Notifications
You must be signed in to change notification settings - Fork 1
/
Docker-MatrixManipulation-Only
41 lines (32 loc) · 1.68 KB
/
Docker-MatrixManipulation-Only
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
##### BASE #####
# commands to run this container and display Galaxy in 127.0.0.1:8877
#$ cd /path to/git/NG-CHM_Galaxy
#$ docker stop hm_container
#$ docker rm hm_container
#$ docker rmi mdangchm
#$ docker build -f Docker-MatrixManipulation-Only -t mdangchm .
#$ docker run --name="hm_container" -d -m="2g" -p 8877:80 -p 7026:21 -e "[email protected]" mdangchm
# web browser http://127.0.0.1:8877
#
#TODO !!!!!!!!!!!!!!!!!! TEMP change to speed up test builds
FROM bgruening/galaxy-stable:17.09
##### APT-GET #####
RUN apt-get update
#RUN apt-get install python3-matplotlib
#RUN sudo apt-get build-dep python-matplotlib
#RUN apt-get install python-matplotlib
RUN echo y | sudo apt-get install python-matplotlib
#fix SSL to prevent errors https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl-py2
#RUN sudo pip install --upgrade pip
#RUN sudo pip install urllib3[secure]
##### Place Matrix Manipulation software in Tools directory #####
ADD ./Matrix_Manipulation/* /galaxy-central/tools/Matrix_Manipulation/
RUN chmod +x /galaxy-central/tools/Matrix_Manipulation/
RUN chmod 777 /galaxy-central/tools/Matrix_Manipulation
#RUN apt-get install xlrd
#RUN sudo pip install xlrd
#Dev tools for testing
RUN sed -i '/<toolbox monitor="true">/a \\t</section>' /galaxy-central/config/tool_conf.xml.sample
RUN sed -i '/<toolbox monitor="true">/a \\t\t<tool file="Matrix_Manipulation/Matrix_Filters.xml" />' /galaxy-central/config/tool_conf.xml.sample
RUN sed -i '/<toolbox monitor="true">/a \\t<section id="Matrix_Manipulation" name="Matrix Manipulation">' /galaxy-central/config/tool_conf.xml.sample
RUN sudo chmod 777 /galaxy-central/config/tool_conf.xml.sample