Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Some changes - Bump base image version & more #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vakaobr
Copy link

@vakaobr vakaobr commented Oct 27, 2021

  • Adding helm chart
  • Bumping version of base image to fix CVE's
  • Adding whitelist for clair scan to some CVE's (not fixable by now)
  • Change default exposed IP to be able to accept connections from a prometheus inside a k8s cluster

… whitelist for clair scan to some CVE's, change default exposed IP
@@ -7,13 +8,15 @@ RUN dotnet restore

# Copy everything else and build
COPY ./src/* ./
COPY ./src/queries/get_daily_or_monthly_costs.json ./queries/get_daily_or_monthly_costs.json
COPY ./src/queries/get_daily_or_monthly_costs.json ./custom_queries/get_daily_or_monthly_costs.json
COPY ./src/queries/azure_billing_by_resource_group.json ./custom_queries/azure_billing_by_resource_group.json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, you should not copy these files into Docker image

You should use ConfigMap/volumeMount at helm chart to bring these files to the app

WORKDIR /app
EXPOSE 80
EXPOSE 8080
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you explain, why 8080 port?

@@ -18,8 +18,8 @@
"AzureBillingExporter": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "http://localhost:5000",
"launchUrl": "http://localhost:5000/metrics",
"applicationUrl": "http://0.0.0.0:5000",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you explain it?

Copy link
Contributor

@sfairat15 sfairat15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello! Thank you for your PR, I have some comment about it.

@@ -0,0 +1,45 @@
generalwhitelist:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does it mean?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants