JWS-128 patch out log4j references in the compbio.FileUtil class, and corresponding...
[jabaws.git] / docker / Dockerfile
1 ### JABAWS 2.2 ###
2
3 FROM tomcat:8.5
4
5 RUN apt-get update; apt-get -y install g++ && apt-get -y install make && \
6   apt-get -y install libargtable2-dev && apt-get -y install gfortran
7
8 RUN wget --no-check-certificate https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz && \
9   tar -xzf Python-2.7.13.tgz && cd Python-2.7.13 && ./configure && make && make install
10
11 ENV WAR http://www.compbio.dundee.ac.uk/jabaws22/archive/jabaws.war
12 RUN wget $WAR -O ./jabaws.war
13 RUN mkdir -p $CATALINA_HOME/webapps/jabaws
14 RUN unzip ./jabaws.war -d $CATALINA_HOME/webapps/jabaws
15
16 ENV EXEC http://www.compbio.dundee.ac.uk/jabaws22/archive/docker/Executable.properties
17 RUN wget $EXEC -O ./Executable.properties
18 RUN mv ./Executable.properties $CATALINA_HOME/webapps/jabaws/conf/
19
20 RUN mkdir -p $CATALINA_HOME/webapps/jabaws/jobsout
21
22 WORKDIR $CATALINA_HOME/webapps/jabaws/binaries/src/
23
24 # compile the binaries
25 #RUN chmod +x ./compilebin.sh && ./compilebin.sh
26 RUN chmod +x ./setexecflag.sh && ./setexecflag.sh
27
28 WORKDIR $CATALINA_HOME
29
30 EXPOSE 8080
31 CMD ["catalina.sh", "run"]