comparison Dockerfile @ 976:01ce190079e5

Adapt LADA version in Dockerfile.
author Tom Gottfried <tom@intevation.de>
date Wed, 08 Jun 2016 12:56:37 +0200
parents 27febad6fb84
children 163d1abaece7
comparison
equal deleted inserted replaced
975:5ec11036b4e2 976:01ce190079e5
7 # `docker run --name lada_wildfly --link lada_db:lada_db 7 # `docker run --name lada_wildfly --link lada_db:lada_db
8 # -dp 8181:8080 -p 1818:9990 koala/lada_wildfly' 8 # -dp 8181:8080 -p 1818:9990 koala/lada_wildfly'
9 # The linked container may be created from db_schema/Dockerfile. 9 # The linked container may be created from db_schema/Dockerfile.
10 # 10 #
11 # The LADA-server will be available under 11 # The LADA-server will be available under
12 # http://yourdockerhost:8181/lada-server-2.2.0 12 # http://yourdockerhost:8181/lada-server-$LADA_VERSION
13 # 13 #
14 14
15 FROM java:7-jdk 15 FROM java:7-jdk
16 MAINTAINER raimund.renkert@intevation.de 16 MAINTAINER raimund.renkert@intevation.de
17 17
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 ENV LADA_VERSION 2.3.0
76 RUN mvn clean compile package javadoc:javadoc 77 RUN mvn clean compile package javadoc:javadoc
77 RUN mv target/lada-server-2.2.0.war $JBOSS_HOME/standalone/deployments 78 RUN mv target/lada-server-$LADA_VERSION.war $JBOSS_HOME/standalone/deployments
78 RUN touch $JBOSS_HOME/standalone/deployments/lada-server-2.2.0.war.dodeploy 79 RUN touch $JBOSS_HOME/standalone/deployments/lada-server-$LADA_VERSION.war.dodeploy
79 80
80 ##configure lighttpd for apidoc 81 ##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 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
83 ## Start the webserver manually, when the container is started 84 ## Start the webserver manually, when the container is started
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)