Mercurial > lada > lada-server
comparison Dockerfile @ 852:2f467a014619
Added lighttpd to Dockerfile in order to serve apidoc is necessary
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Wed, 27 Jan 2016 16:27:03 +0100 |
parents | c19bd80d1f62 |
children | 27febad6fb84 |
comparison
equal
deleted
inserted
replaced
851:00eae82dea5f | 852:2f467a014619 |
---|---|
18 # | 18 # |
19 # install packages | 19 # install packages |
20 # | 20 # |
21 RUN apt-get update -y && \ | 21 RUN apt-get update -y && \ |
22 apt-get install -y libpostgis-java libjts-java \ | 22 apt-get install -y libpostgis-java libjts-java \ |
23 maven | 23 maven lighttpd |
24 | 24 |
25 # | 25 # |
26 # Set up Wildfly | 26 # Set up Wildfly |
27 # | 27 # |
28 RUN mkdir /opt/jboss | 28 RUN mkdir /opt/jboss |
33 | 33 |
34 ENV JBOSS_HOME /opt/jboss/wildfly | 34 ENV JBOSS_HOME /opt/jboss/wildfly |
35 | 35 |
36 RUN $JBOSS_HOME/bin/add-user.sh admin secret --silent | 36 RUN $JBOSS_HOME/bin/add-user.sh admin secret --silent |
37 | 37 |
38 EXPOSE 8080 9990 | 38 EXPOSE 8080 9990 80 |
39 | 39 |
40 # | 40 # |
41 # Add LADA-server repo | 41 # Add LADA-server repo |
42 # | 42 # |
43 ADD . /usr/src/lada-server | 43 ADD . /usr/src/lada-server |
71 RUN rm $JBOSS_HOME/standalone/configuration/standalone_xml_history/current/* | 71 RUN rm $JBOSS_HOME/standalone/configuration/standalone_xml_history/current/* |
72 | 72 |
73 # | 73 # |
74 # Build and deploy LADA-server | 74 # Build and deploy LADA-server |
75 # | 75 # |
76 RUN mvn clean compile package | 76 RUN mvn clean compile package javadoc:javadoc |
77 RUN mv target/lada-server-2.2.0.war $JBOSS_HOME/standalone/deployments | 77 RUN mv target/lada-server-2.2.0.war $JBOSS_HOME/standalone/deployments |
78 RUN touch $JBOSS_HOME/standalone/deployments/lada-server-2.2.0.war.dodeploy | 78 RUN touch $JBOSS_HOME/standalone/deployments/lada-server-2.2.0.war.dodeploy |
79 | |
80 ##configure lighttpd for apidoc | |
81 RUN sed -i 's|server.document-root = "/var/www/html"|server.document-root = "/usr/src/lada-server/target/site/apidocs"|' /etc/lighttpd/lighttpd.conf | |
82 | |
83 ## Start the webserver manually, when the container is started | |
84 # service lighttpd start | |
79 | 85 |
80 # | 86 # |
81 # This will boot WildFly in the standalone mode and bind to all interface | 87 # This will boot WildFly in the standalone mode and bind to all interface |
82 # | 88 # |
83 CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", \ | 89 CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", \ |
84 "-bmanagement=0.0.0.0"] | 90 "-bmanagement=0.0.0.0"] |
91 |