-
Notifications
You must be signed in to change notification settings - Fork 4
Some changes - Bump base image version & more #8
base: master
Are you sure you want to change the base?
Conversation
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explain it?
There was a problem hiding this 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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does it mean?