Mercurial > lada > lada-server
changeset 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 | 00eae82dea5f |
children | 2ce24e2baf20 |
files | Dockerfile |
diffstat | 1 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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"] +