[Lada-commits] [PATCH] Added lighttpd to Dockerfile in order to serve apidoc is necessary

Wald Commits scm-commit at wald.intevation.org
Wed Jan 27 16:27:13 CET 2016


# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1453908423 -3600
# Node ID 2f467a014619bf77b911fcfe84a31849ba5bad40
# Parent  00eae82dea5f8c968a1cae68aa10ba7967407e4e
Added lighttpd to Dockerfile in order to serve apidoc is necessary

diff -r 00eae82dea5f -r 2f467a014619 Dockerfile
--- a/Dockerfile	Wed Jan 27 15:44:31 2016 +0100
+++ b/Dockerfile	Wed Jan 27 16:27:03 2016 +0100
@@ -20,7 +20,7 @@
 #
 RUN apt-get update -y && \
     apt-get install -y libpostgis-java libjts-java \
-            maven
+            maven lighttpd
 
 #
 # Set up Wildfly
@@ -35,7 +35,7 @@
 
 RUN $JBOSS_HOME/bin/add-user.sh admin secret --silent
 
-EXPOSE 8080 9990
+EXPOSE 8080 9990 80
 
 #
 # Add LADA-server repo
@@ -73,12 +73,19 @@
 #
 # Build and deploy LADA-server
 #
-RUN mvn clean compile package
+RUN mvn clean compile package javadoc:javadoc
 RUN mv target/lada-server-2.2.0.war $JBOSS_HOME/standalone/deployments
 RUN touch $JBOSS_HOME/standalone/deployments/lada-server-2.2.0.war.dodeploy
 
+##configure lighttpd for apidoc
+RUN sed -i 's|server.document-root        = "/var/www/html"|server.document-root        = "/usr/src/lada-server/target/site/apidocs"|' /etc/lighttpd/lighttpd.conf
+
+## Start the webserver manually, when the container is started
+# service lighttpd start
+
 #
 # This will boot WildFly in the standalone mode and bind to all interface
 #
 CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", \
      "-bmanagement=0.0.0.0"]
+


More information about the Lada-commits mailing list