comparison Dockerfile @ 1202:61106ead36fc

Separate build/deploy and javadoc.
author Tom Gottfried <tom@intevation.de>
date Thu, 01 Dec 2016 16:36:04 +0100
parents d56706c33269
children 28a39466e4eb
comparison
equal deleted inserted replaced
1201:530a33fffa28 1202:61106ead36fc
72 72
73 # 73 #
74 # Build and deploy LADA-server 74 # Build and deploy LADA-server
75 # 75 #
76 ENV LADA_VERSION 2.4.1-SNAPSHOT 76 ENV LADA_VERSION 2.4.1-SNAPSHOT
77 RUN mvn clean compile package javadoc:javadoc 77 RUN mvn clean compile package && \
78 RUN mv target/lada-server-$LADA_VERSION.war $JBOSS_HOME/standalone/deployments 78 mv target/lada-server-$LADA_VERSION.war \
79 RUN touch $JBOSS_HOME/standalone/deployments/lada-server-$LADA_VERSION.war.dodeploy 79 $JBOSS_HOME/standalone/deployments && \
80 touch $JBOSS_HOME/standalone/deployments/lada-server-$LADA_VERSION.war.dodeploy
80 81
81 ##configure lighttpd for apidoc 82 ##configure lighttpd for apidoc
83 RUN mvn javadoc:javadoc
82 RUN sed -i 's|server.document-root = "/var/www/html"|server.document-root = "/usr/src/lada-server/target/site/apidocs"|' /etc/lighttpd/lighttpd.conf 84 RUN sed -i 's|server.document-root = "/var/www/html"|server.document-root = "/usr/src/lada-server/target/site/apidocs"|' /etc/lighttpd/lighttpd.conf
83 85
84 ## Start the webserver manually, when the container is started 86 ## Start the webserver manually, when the container is started
85 # service lighttpd start 87 # service lighttpd start
86 88
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)