mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +01:00
27 lines
944 B
Docker
27 lines
944 B
Docker
# Dockerizing WiseMapping: Dockerfile for building WiseMapping images
|
|
# Based on ubuntu:latest, installs WiseMapping (http://ww.wisemapping.org)
|
|
|
|
# Based info setup ...
|
|
FROM tomcat:9.0-jdk17-openjdk
|
|
LABEL maintainer="Paulo Gustavo Veiga <pveiga@wisemapping.com>"
|
|
|
|
# Build variables ...
|
|
ARG WEBAPP_TARGET_DIR="/usr/local/tomcat/webapps/ROOT"
|
|
|
|
# Defautl ENV configurations ...
|
|
ENV JAVA_OPTS="-XX:+PrintFlagsFinal -XX:InitialRAMPercentage=30 -XX:MaxRAMPercentage=80"
|
|
ENV database.base.url="/var/lib/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 ${database.base.url}/db
|
|
COPY db/ ${database.base.url}/db
|