Skip to content

Commit

Permalink
Set commands for tiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Nov 25, 2024
1 parent f5c5a59 commit 7687607
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
7 changes: 6 additions & 1 deletion ohm/templates/tiler-cache-purge/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
14 changes: 13 additions & 1 deletion ohm/templates/tiler-cache-seed/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7687607

Please sign in to comment.