Mercurial > lada > lada-server
view Dockerfile @ 1025:8e5dcf7156c5 schema-update
Added table betriebsart
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 04 Jul 2016 14:30:40 +0200 |
parents | 01ce190079e5 |
children | 163d1abaece7 |
line wrap: on
line source
# # Dockerfile for jboss wildfly application server cutomized for usage in the # BfS-Lada project # # Build with e.g. `docker build --force-rm=true -t koala/lada_wildfly .' # Run with e.g. # `docker run --name lada_wildfly --link lada_db:lada_db # -dp 8181:8080 -p 1818:9990 koala/lada_wildfly' # The linked container may be created from db_schema/Dockerfile. # # The LADA-server will be available under # http://yourdockerhost:8181/lada-server-$LADA_VERSION # FROM java:7-jdk MAINTAINER raimund.renkert@intevation.de # # install packages # RUN apt-get update -y && \ apt-get install -y libpostgis-java libjts-java \ maven lighttpd # # Set up Wildfly # RUN mkdir /opt/jboss RUN curl \ https://download.jboss.org/wildfly/8.2.1.Final/wildfly-8.2.1.Final.tar.gz \ | tar zx && mv wildfly-8.2.1.Final /opt/jboss/wildfly ENV JBOSS_HOME /opt/jboss/wildfly RUN $JBOSS_HOME/bin/add-user.sh admin secret --silent EXPOSE 8080 9990 80 # # Add LADA-server repo # ADD . /usr/src/lada-server WORKDIR /usr/src/lada-server # # Wildfly setup specific for LADA # RUN mkdir -p $JBOSS_HOME/modules/org/postgres/main RUN curl https://jdbc.postgresql.org/download/postgresql-9.4-1200.jdbc4.jar >\ $JBOSS_HOME/modules/org/postgres/main/postgresql.jar RUN ln -s /usr/share/java/postgis-jdbc-2.1.4.jar \ $JBOSS_HOME/modules/org/postgres/main/ RUN ln -s /usr/share/java/jts-1.11.jar \ $JBOSS_HOME/modules/system/layers/base/org/hibernate/main/ RUN curl \ http://www.hibernatespatial.org/repository/org/hibernate/hibernate-spatial/4.3/hibernate-spatial-4.3.jar > \ $JBOSS_HOME/modules/system/layers/base/org/hibernate/main/hibernate-spatial-4.3.jar RUN ln -s $PWD/wildfly/postgres-module.xml \ $JBOSS_HOME/modules/org/postgres/main/module.xml RUN ln -fs $PWD/wildfly/hibernate-module.xml \ $JBOSS_HOME/modules/system/layers/base/org/hibernate/main/module.xml RUN ln -fs $PWD/wildfly/standalone.conf $JBOSS_HOME/bin/ RUN wildfly/execute.sh RUN rm $JBOSS_HOME/standalone/configuration/standalone_xml_history/current/* # # Build and deploy LADA-server # ENV LADA_VERSION 2.3.0 RUN mvn clean compile package javadoc:javadoc RUN mv target/lada-server-$LADA_VERSION.war $JBOSS_HOME/standalone/deployments RUN touch $JBOSS_HOME/standalone/deployments/lada-server-$LADA_VERSION.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"]