-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add rock goss checks on PRs (#40)
* feat: add rock goss checks on PRs * trigger ci * trigger ci * trigger ci * add new rock * trigger ci * trigger ci * trigger ci * trigger ci * trigger ci * trigger ci * trigger ci * trigger ci * add goss to readme * use workflow from main * point workflow at main * rename folder to 2.14.2 * trigger ci
- Loading branch information
Showing
3 changed files
with
62 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: mimir | ||
summary: Grafana Mimir in a rock. | ||
description: | | ||
Grafana Mimir is a horizontally scalable, highly available, | ||
multi-tenant, long-term storage for Prometheus. | ||
version: "2.14.2" | ||
base: [email protected] | ||
license: Apache-2.0 | ||
platforms: | ||
amd64: | ||
services: | ||
mimir: | ||
command: /usr/bin/mimir | ||
override: replace | ||
startup: enabled | ||
parts: | ||
mimir: | ||
plugin: go | ||
source: https://github.com/grafana/mimir | ||
source-type: git | ||
source-tag: "mimir-2.14.2" | ||
build-snaps: | ||
- go/1.22/stable | ||
build-environment: | ||
- BUILD_IN_CONTAINER: "false" | ||
override-build: | | ||
make dist | ||
install -D -m755 dist/metaconvert-linux-amd64 ${CRAFT_PART_INSTALL}/opt/mimir/bin/metaconvert | ||
install -D -m755 dist/mimir-linux-amd64 ${CRAFT_PART_INSTALL}/opt/mimir/bin/mimir | ||
install -D -m755 dist/mimirtool-linux-amd64 ${CRAFT_PART_INSTALL}/opt/mimir/bin/mimirtool | ||
install -D -m755 dist/query-tee-linux-amd64 ${CRAFT_PART_INSTALL}/opt/mimir/bin/query-tee | ||
organize: | ||
opt/mimir/bin/metaconvert: usr/bin/metaconvert | ||
opt/mimir/bin/mimir: usr/bin/mimir | ||
opt/mimir/bin/mimirtool: usr/bin/mimirtool | ||
opt/mimir/bin/query-tee: usr/bin/query-tee | ||
ca-certs: | ||
plugin: nil | ||
overlay-packages: | ||
- ca-certificates | ||
deb-security-manifest: | ||
plugin: nil | ||
after: | ||
- mimir | ||
- ca-certs | ||
override-prime: | | ||
set -x | ||
mkdir -p $CRAFT_PRIME/usr/share/rocks/ | ||
(echo "# os-release" && cat /etc/os-release && echo "# dpkg-query" && dpkg-query --admindir=$CRAFT_PRIME/var/lib/dpkg/ -f '${db:Status-Abbrev},${binary:Package},${Version},${source:Package},${Source:Version}\n' -W) > $CRAFT_PRIME/usr/share/rocks/dpkg.query |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
process: | ||
mimir: | ||
running: true | ||
package: | ||
ca-certificates: | ||
installed: true | ||
http: | ||
mimir-config: | ||
status: 200 | ||
url: http://localhost:8080/config |