image: repository: wisemapping/wisemapping pullPolicy: IfNotPresent tag: latest@sha256:4242fce8570c3f288c664c3615e5efe197249fed9def881c35528bcc0287699e # When this is defined, the contents will be mounted # as configmap into the container at /usr/local/tomcat/webapps/ROOT/WEB-INF/app.properties. wisemappingConfig: {} securityContext: container: readOnlyRootFilesystem: false runAsNonRoot: false runAsUser: 0 runAsGroup: 0 service: main: ports: main: port: 8080 targetPort: 8080 workload: main: podSpec: initContainers: init-config: enabled: true type: init imageSelector: "image" command: - /bin/sh - -c args: - | mkdir -p /usr/local/tomcat/webapps/ROOT/WEB-INF/ if [ ! -f /usr/local/tomcat/webapps/ROOT/WEB-INF/app.properties ]; then echo "Config file not found, copying dummy..." cp /usr/local/tomcat/webapps/ROOT/WEB-INF/app.properties.dummy /usr/local/tomcat/webapps/ROOT/WEB-INF/app.properties echo "Config file copied, you can now edit it at /usr/local/tomcat/webapps/ROOT/WEB-INF/app.properties" fi containers: main: env: ADMIN_EMAIL: "change@me.com" persistence: config: # Only enable when not using wisemappingConfig enabled: false mountPath: /usr/local/tomcat/webapps/ROOT/WEB-INF/ targetSelector: main: main: {} init-config: {} cnpg: main: enabled: true user: wisemapping database: wisemapping portal: open: enabled: true