Skip to content

Commit

Permalink
Fix/0.2.0 rc3 make image standalone (#20)
Browse files Browse the repository at this point in the history
* Added missing env var to example cronjob

* Add two missing files to image, extend entrypoint to make image runable in standalone.
  • Loading branch information
cklingspor authored Nov 7, 2024
1 parent 8929267 commit 3f3bd68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ COPY src/opencost_parquet_exporter.py /app/opencost_parquet_exporter.py
COPY src/data_types.json /app/data_types.json
COPY src/rename_cols.json /app/rename_cols.json
COPY src/ignore_alloc_keys.json /app/ignore_alloc_keys.json
COPY src/storage_factory.py /app/storage_factory.py
COPY src/storage /app/storage
RUN chmod 755 /app/opencost_parquet_exporter.py && chown -R opencost /app/
USER opencost
ENV PATH="/app/.venv/bin:$PATH"
CMD ["/app/opencost_parquet_exporter.py"]
ENTRYPOINT ["/app/.venv/bin/python3"]
ENTRYPOINT ["/app/.venv/bin/python3", "/app/opencost_parquet_exporter.py"]
2 changes: 2 additions & 0 deletions examples/k8s_cron_job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ spec:
value: opencost.opencost.svc.cluster.local.
- name: OPENCOST_PARQUET_SVC_PORT
value: "9003"
- name: OPENCOST_PARQUET_STORAGE_BACKEND
value: "[aws, azure]"
image: ghcr.io/opencost/opencost-parquet-exporter:latest
imagePullPolicy: Always
name: export-opencost
Expand Down

0 comments on commit 3f3bd68

Please sign in to comment.