diff --git a/docker/Dockerfile b/docker/Dockerfile index 78f9f11..2c77d22 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -17,6 +17,7 @@ COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY services/ /app/services/ +COPY scripts/ /app/scripts/ COPY tests/ /app/tests/ COPY conftest.py /app/conftest.py diff --git a/infra/helm/stonks-oracle/templates/deployments.yaml b/infra/helm/stonks-oracle/templates/deployments.yaml index ac046d8..b10b2c6 100644 --- a/infra/helm/stonks-oracle/templates/deployments.yaml +++ b/infra/helm/stonks-oracle/templates/deployments.yaml @@ -93,7 +93,7 @@ spec: - name: backfill-market-data image: {{ $root.Values.image.registry }}/{{ $svc.image }}:{{ $root.Values.image.tag }} imagePullPolicy: {{ $root.Values.image.pullPolicy }} - command: ["python", "/app/scripts/backfill_market_data.py"] + command: ["sh", "-c", "python /app/scripts/backfill_market_data.py 2>/dev/null || echo 'Backfill script not available — skipping'"] securityContext: {{- include "stonks.containerSecurityContext" $root | nindent 12 }} envFrom: