Skip to content

Commit

Permalink
Merge pull request #66 from nlamirault/feat/opencontainers
Browse files Browse the repository at this point in the history
OpenContainer labels
  • Loading branch information
nlamirault committed Jul 12, 2022
2 parents 77054a9 + 831962c commit 5debebb
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 338 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golang-goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15
go-version: 1.17
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
Expand Down
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,20 @@ RUN go get -d -v ./...

RUN go build -o /go/bin/bbox_exporter

#####

FROM gcr.io/distroless/base

LABEL maintainer="" \
org.opencontainers.image.authors="The Bbox Prometheus Exporter Authors" \
org.opencontainers.image.title="gcr.io/nlamirault/bbox_exporter" \
org.opencontainers.image.description="A Prometheus exporter for the Bbox, a Set-Top-Box (TV box) provided by French Internet Service Provider Bouygues Telecom" \
org.opencontainers.image.documentations="https://github.com/nlamirault/bbox_exporter" \
org.opencontainers.image.url="https://github.com/nlamirault/bbox_exporter" \
org.opencontainers.image.source="git@github.com:nlamirault/bbox_exporter" \
org.opencontainers.image.licenses="Apache 2.0" \
org.opencontainers.image.vendor=""

COPY --from=build-env /go/bin/bbox_exporter /
# set the uid as an integer for compatibility with runAsNonRoot in Kubernetes
USER 65534:65534
Expand Down
4 changes: 0 additions & 4 deletions bbox_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ import (
"github.com/nlamirault/bbox_exporter/exporter"
)

const (
banner = "bbox_exporter - %s\n"
)

var (
webConfig = webflag.AddFlags(kingpin.CommandLine)
endpoint = kingpin.Flag(
Expand Down
34 changes: 27 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,32 @@
module github.com/nlamirault/bbox_exporter

go 1.12
go 1.17

require (
github.com/go-kit/kit v0.12.0
github.com/go-kit/log v0.2.0
github.com/prometheus/client_golang v1.12.1
github.com/prometheus/common v0.33.0
github.com/prometheus/exporter-toolkit v0.7.1
gopkg.in/alecthomas/kingpin.v2 v2.2.6
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/go-kit/kit v0.12.0 // indirect
github.com/go-kit/log v0.2.0 // indirect
github.com/go-logfmt/logfmt v0.5.1 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/jpillora/backoff v1.0.0 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_golang v1.11.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.30.0 // indirect
github.com/prometheus/exporter-toolkit v0.7.1 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
golang.org/x/crypto v0.0.0-20210915214749-c084706c2272 // indirect
golang.org/x/net v0.0.0-20210917221730-978cfadd31cf // indirect
golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c // indirect
golang.org/x/sys v0.0.0-20210917161153-d61c044b1678 // indirect
golang.org/x/text v0.3.7 // indirect
google.golang.org/appengine v1.6.6 // indirect
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/alecthomas/kingpin.v2 v2.2.6 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)

0 comments on commit 5debebb

Please sign in to comment.