2015-05-09 16:01:22 +02:00
|
|
|
# Dockerizing WiseMapping: Dockerfile for building WiseMapping images
|
|
|
|
# Based on ubuntu:latest, installs WiseMapping (http://ww.wisemapping.org)
|
|
|
|
|
2022-01-23 08:50:20 +01:00
|
|
|
# Based info setup ...
|
|
|
|
FROM tomcat:9.0-jdk17-openjdk
|
|
|
|
LABEL maintainer="Paulo Gustavo Veiga <pveiga@wisemapping.com>"
|
|
|
|
|
2022-01-23 23:55:07 +01:00
|
|
|
# Build variables ...
|
2022-01-23 08:50:20 +01:00
|
|
|
ARG WEBAPP_TARGET_DIR="/usr/local/tomcat/webapps/ROOT"
|
2022-01-23 23:55:07 +01:00
|
|
|
|
|
|
|
# Defautl ENV configurations ...
|
|
|
|
ENV JAVA_OPTS="-XX:+PrintFlagsFinal -XX:InitialRAMPercentage=30 -XX:MaxRAMPercentage=80"
|
2022-01-23 08:50:20 +01:00
|
|
|
ENV database.base.url="/var/wisemapping"
|
|
|
|
|
|
|
|
# Copy wisemapping distribution ...
|
|
|
|
COPY wisemapping.war /tmp
|
|
|
|
RUN mkdir ${WEBAPP_TARGET_DIR}
|
|
|
|
RUN cd ${WEBAPP_TARGET_DIR} && jar -xvf /tmp/wisemapping.war
|
|
|
|
RUN rm /tmp/wisemapping.war
|
|
|
|
|
|
|
|
# Change logger to
|
|
|
|
RUN cp ${WEBAPP_TARGET_DIR}/WEB-INF/classes/log4j-stdout.properties ${WEBAPP_TARGET_DIR}/WEB-INF/classes/log4j.properties
|
|
|
|
|
|
|
|
# Copy default HSQL DB for testing ...
|
|
|
|
RUN mkdir -p /var/wisemapping/db
|
|
|
|
COPY db/ /var/wisemapping/db
|