diff --git a/ohm/templates/tiler-cache-purge/deployment.yaml b/ohm/templates/tiler-cache-purge/deployment.yaml index e04f09d6..1648c7c7 100644 --- a/ohm/templates/tiler-cache-purge/deployment.yaml +++ b/ohm/templates/tiler-cache-purge/deployment.yaml @@ -25,7 +25,12 @@ spec: containers: - name: {{ .Chart.Name }}tiler-cache-sqs image: "{{ .Values.ohm.tilerCache.image.name }}:{{ .Values.ohm.tilerCache.image.tag }}" - command: ["tiler-purge"] + command: + - sh + - -c + - | + set -x + cd /app/tiler-purge/main.py env: - name: REGION_NAME value: {{ .Values.ohm.tilerCachePurge.env.REGION_NAME | quote }} diff --git a/ohm/templates/tiler-cache-seed/cronjob.yaml b/ohm/templates/tiler-cache-seed/cronjob.yaml index ae9a2a64..778389bc 100644 --- a/ohm/templates/tiler-cache-seed/cronjob.yaml +++ b/ohm/templates/tiler-cache-seed/cronjob.yaml @@ -24,7 +24,19 @@ spec: containers: - name: {{ .Release.Name }}-tiler-cache-seed-job image: {{ .Values.ohm.tilerCache.image.name }}:{{ .Values.ohm.tilerCache.image.tag }} - command: ["tiler-seed"] + command: + - sh + - -c + - | + set -x + cd /app/tiler-seed && \ + python main.py --geojson-url "$GEOJSON_URL" \ + --feature-type "$FEATURE_TYPE" \ + --zoom-levels "$ZOOM_LEVELS" \ + --concurrency "$CONCURRENCY" \ + --s3-bucket "$S3_BUCKET" \ + --log-file "$OUTPUT_FILE" + {{- if .Values.ohm.tilerCacheSeed.resources.enabled }} resources: requests: