alertmanager/make_container.sh
ben ea5b925147 Add buildah script for test container
Signed-off-by: Ben Ridley <benridley29@gmail.com>
2021-03-01 08:30:01 +11:00

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