From 71f203e47c941147d69600a4a1409ba262128084 Mon Sep 17 00:00:00 2001 From: Henning Bredel Date: Wed, 2 Aug 2023 15:39:50 +0200 Subject: [PATCH] Temporary overloading entry point Closes #37 --- .../geonode/templates/geoserver/geoserver-deploy.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deployment/geonode/templates/geoserver/geoserver-deploy.yaml b/deployment/geonode/templates/geoserver/geoserver-deploy.yaml index 1ca46cd..1042e33 100644 --- a/deployment/geonode/templates/geoserver/geoserver-deploy.yaml +++ b/deployment/geonode/templates/geoserver/geoserver-deploy.yaml @@ -50,6 +50,13 @@ spec: containers: - name: {{ .Values.geoserver.container_name }} image: "{{ .Values.geoserver.image.name }}:{{ .Values.geoserver.image.tag }}" + # temporary overloading entry point to fix j2 template: https://github.com/GeoNode/geonode/issues/11318 + command: + - sh + - -c + - | + {{`sed -i "s/db:5432/{{DATABASE_HOST}}:5432/g" /templates/geofence/geofence-datasource-ovr.properties.j2`}} + /usr/local/tomcat/tmp/entrypoint.sh ports: - containerPort: {{ .Values.geoserver.port }}