diff --git a/images/overpass-api/Dockerfile b/images/overpass-api/Dockerfile index b2fa38e2..9528668b 100644 --- a/images/overpass-api/Dockerfile +++ b/images/overpass-api/Dockerfile @@ -1,4 +1,4 @@ FROM wiktorn/overpass-api:0.7.56.8 COPY docker-entrypoint.sh /app/ RUN chmod a+rx /app/docker-entrypoint.sh -CMD ["/app/docker-entrypoint.sh & sleep 60 && /app/bin/dispatcher --osm-base --db-dir=/db/db --attic"] +CMD ["/app/docker-entrypoint.sh"] diff --git a/osm-seed/templates/overpass-api/overpass-api-statefulset.yaml b/osm-seed/templates/overpass-api/overpass-api-statefulset.yaml index 0f5902e1..2853a238 100644 --- a/osm-seed/templates/overpass-api/overpass-api-statefulset.yaml +++ b/osm-seed/templates/overpass-api/overpass-api-statefulset.yaml @@ -26,6 +26,8 @@ spec: containers: - name: {{ .Chart.Name }}-overpass-api image: "{{ .Values.overpassApi.image.name }}:{{ .Values.overpassApi.image.tag }}" + command: ["/bin/sh", "-c"] + args: ["/app/docker-entrypoint.sh && sleep 60 && /app/bin/dispatcher --osm-base --db-dir=/db/db --attic"] ports: - name: http containerPort: 80