-
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.
Collect data from the log that can be processed into a notification a…
…nd passed to a monitoring system.
- Loading branch information
1 parent
0d0ac75
commit 21a302f
Showing
5 changed files
with
109 additions
and
9 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
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,20 +1,13 @@ | ||
# TODO: Make this dynamic | ||
ARG BASE_IMAGE=gitlab/gitlab-runner:v16.0.2 | ||
|
||
#I don't think we need chisel in here. | ||
#FROM cr.ghanima.net/applications/sanoid/chisel:latest AS chisel | ||
|
||
FROM ${BASE_IMAGE} | ||
ARG TARGETPLATFORM | ||
|
||
#ADD ./pull-server/entrypoint.sh /entrypoint.sh | ||
|
||
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=var-cache-apt-$TARGETPLATFORM \ | ||
--mount=type=cache,target=/var/lib/apt,sharing=locked,id=var-lib-apt-$TARGETPLATFORM \ | ||
--mount=type=tmpfs,target=/var/cache/apk \ | ||
--mount=type=tmpfs,target=/tmp \ | ||
apt update; apt install -y zfsutils-linux mbuffer lzop sanoid | ||
|
||
#RUN chmod +x /entrypoint.sh | ||
|
||
#ENTRYPOINT /entrypoint.sh |
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,27 @@ | ||
{ | ||
"cardsV2": [ | ||
{ | ||
"cardId": "test1", | ||
"card": { | ||
"name": "cardname", | ||
"header": { | ||
"title": "Backup Failed", | ||
"imageUrl": "https://upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Breezeicons-status-16-dropboxstatus-x.svg/1024px-Breezeicons-status-16-dropboxstatus-x.svg.png" | ||
}, | ||
"sections": [ | ||
{ | ||
"widgets": [ | ||
{ | ||
"textParagraph": { | ||
"text": "paragraph" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
|
||
|
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,27 @@ | ||
{ | ||
"cardsV2": [ | ||
{ | ||
"cardId": "test1", | ||
"card": { | ||
"name": "cardname", | ||
"header": { | ||
"title": "Backup Success", | ||
"imageUrl": "https://upload.wikimedia.org/wikipedia/commons/thumb/0/00/Breezeicons-status-16-dropboxstatus-idle.svg/1024px-Breezeicons-status-16-dropboxstatus-idle.svg.png" | ||
}, | ||
"sections": [ | ||
{ | ||
"widgets": [ | ||
{ | ||
"textParagraph": { | ||
"text": "paragraph" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
|
||
|
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,27 @@ | ||
{ | ||
"cardsV2": [ | ||
{ | ||
"cardId": "test1", | ||
"card": { | ||
"name": "cardname", | ||
"header": { | ||
"title": "Backup Warning", | ||
"imageUrl": "https://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Breezeicons-status-16-state-warning.svg/1024px-Breezeicons-status-16-state-warning.svg.png" | ||
}, | ||
"sections": [ | ||
{ | ||
"widgets": [ | ||
{ | ||
"textParagraph": { | ||
"text": "paragraph" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
|
||
|