Skip to content

Commit 3f3bd68

Browse files
authored
Fix/0.2.0 rc3 make image standalone (#20)
* Added missing env var to example cronjob * Add two missing files to image, extend entrypoint to make image runable in standalone.
1 parent 8929267 commit 3f3bd68

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ COPY src/opencost_parquet_exporter.py /app/opencost_parquet_exporter.py
1313
COPY src/data_types.json /app/data_types.json
1414
COPY src/rename_cols.json /app/rename_cols.json
1515
COPY src/ignore_alloc_keys.json /app/ignore_alloc_keys.json
16+
COPY src/storage_factory.py /app/storage_factory.py
17+
COPY src/storage /app/storage
1618
RUN chmod 755 /app/opencost_parquet_exporter.py && chown -R opencost /app/
1719
USER opencost
1820
ENV PATH="/app/.venv/bin:$PATH"
19-
CMD ["/app/opencost_parquet_exporter.py"]
20-
ENTRYPOINT ["/app/.venv/bin/python3"]
21+
ENTRYPOINT ["/app/.venv/bin/python3", "/app/opencost_parquet_exporter.py"]

examples/k8s_cron_job.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ spec:
3535
value: opencost.opencost.svc.cluster.local.
3636
- name: OPENCOST_PARQUET_SVC_PORT
3737
value: "9003"
38+
- name: OPENCOST_PARQUET_STORAGE_BACKEND
39+
value: "[aws, azure]"
3840
image: ghcr.io/opencost/opencost-parquet-exporter:latest
3941
imagePullPolicy: Always
4042
name: export-opencost

0 commit comments

Comments
 (0)