I’d like to build promtail on alpine, which has no systemd. Loki builds fine, but promtail complains:
CGO_ENABLED=1 go build -ldflags "-s -w -X github.com/grafana/loki/pkg/build.Branch= -X github.com/grafana/loki/pkg/build.Version= -X github.com/grafana/loki/pkg/build.Revision= -X github.com/grafana/loki/pkg/build.BuildUser=root@3618c4eb3a99 -X github.com/grafana/loki/pkg/build.BuildDate=2021-07-01T13:30:12Z" -tags netgo -mod=vendor -o cmd/promtail/promtail ./cmd/promtail
# github.com/coreos/go-systemd/sdjournal
vendor/github.com/coreos/go-systemd/sdjournal/journal.go:27:11: fatal error: systemd/sd-journal.h: No such file or directory
27 | // #include <systemd/sd-journal.h>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
How do I build promtail without systemd support? I don’t need it on alpine.
Thanks for any help with this