mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-25 07:32:19 +00:00
ea5b925147
Signed-off-by: Ben Ridley <benridley29@gmail.com>
7 lines
292 B
Bash
Executable File
7 lines
292 B
Bash
Executable File
#!/bin/sh
|
|
container=$(buildah from prom/alertmanager)
|
|
mnt=$(buildah mount $container)
|
|
CGO_ENABLED=0 go build -ldflags="-X 'main.Version=benny'" -o alertmanager cmd/alertmanager/main.go
|
|
cp -f ./alertmanager "${mnt}/bin/alertmanager"
|
|
buildah commit $container ben-am
|
|
buildah unmount $container |