-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4affe66
commit 281b67c
Showing
6 changed files
with
57 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Information", | ||
"Microsoft.Hosting.Lifetime": "Information" | ||
} | ||
}, | ||
"Smtp": { | ||
"Sender": "cgj@andel.dk", | ||
"Host": "ismtp.seas.local", | ||
"Port": 25 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"Groups": { | ||
"DevTeam": { | ||
"Connectors": { | ||
"Smtp": { | ||
"Subject": "⏰ {{Name}} is now {{ExecutionStatus.Status}} ⏰", | ||
"Body": "<html><body> <h1>{{Name}}</h1><a href='{{RuleUrl}}'>Check the status here</a></body></html>", | ||
"Audience": [ | ||
"cgj@andel.dk", | ||
"min_pan@andel.dk", | ||
"jod@andel.dk" | ||
] | ||
}, | ||
"MsTeams": { | ||
"MessageCardJson": "{\"type\": \"AdaptiveCard\",\"body\": [{\"type\": \"TextBlock\",\"size\": \"Medium\",\"weight\": \"Bolder\",\"text\": \"{{Name}} \"},{\"type\": \"TextBlock\",\"text\": \"{{Name}} now has status: {{ExecutionStatus.Status}}.\",\"wrap\": true}],\"actions\": [{\"type\": \"Action.OpenUrl\",\"title\": \"View details\",\"url\": \"{{Ruleurl}}\"}],\"$schema\": \"http:\/\/adaptivecards.io\/schemas\/adaptive-card.json\",\"version\": \"1.6\"}", | ||
"WebHookUrl": "https://seasnve.webhook.office.com/webhookb2/56e4ba63-7031-412f-abff-4150b4bbc2fd@a6096808-b971-440e-99ff-6ea37b046566/IncomingWebhook/7672ebf45d8c46179c66efa1b917f89d/f1235af9-1871-4354-9fc2-094313946151" | ||
} | ||
} | ||
}, | ||
"Business": { | ||
"Connectors" : { | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine | ||
WORKDIR /app | ||
COPY ["/app", "/app"] | ||
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false | ||
RUN apk add --no-cache icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib tzdata | ||
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build | ||
ARG TARGETARCH | ||
WORKDIR /source | ||
|
||
ENV APP_UID=10000 | ||
ENV APP_NAME=appuser | ||
COPY . . | ||
RUN dotnet publish -a $TARGETARCH -o /app --self-contained /p:PublishTrimmed=true /p:PublishReadyToRun=true /p:PublishSingleFile=true | ||
|
||
RUN adduser -u $APP_UID --disabled-password $APP_NAME | ||
# final stage/image | ||
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0-alpine | ||
WORKDIR /app | ||
COPY --from=build /app . | ||
USER $APP_UID | ||
CMD ["./Kibana.Alerts"] | ||
# ENTRYPOINT ["dotnet", "Kibana.Alerts.dll"] | ||
ENTRYPOINT ["./Kibana.Alerts"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters