-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: remove upx from build to allow m1 development * chore: update go dependencies and module version to 1.18 * feat: remove dependency on workerpool
- Loading branch information
Showing
5 changed files
with
121 additions
and
57 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
FROM golang:alpine as base | ||
MAINTAINER Stefan Martinov <[email protected]> | ||
|
||
RUN apk add --no-cache git make bash upx \ | ||
RUN apk add --no-cache git \ | ||
&& rm -rf /var/cache/apk/* | ||
|
||
WORKDIR /app | ||
|
@@ -24,8 +24,6 @@ MAINTAINER Stefan Martinov <[email protected]> | |
RUN GOARCH=amd64 GOOS=linux CGO_ENABLED=0 \ | ||
go build -ldflags "-X main.Version=`git rev-parse --short HEAD`" -o /pagespeed_exporter pagespeed_exporter.go | ||
|
||
# strip and compress the binary | ||
RUN upx /pagespeed_exporter | ||
|
||
############################## | ||
###### STAGE: PACKAGE ###### | ||
|
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
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 |
---|---|---|
@@ -1,13 +1,36 @@ | ||
module github.com/foomo/pagespeed_exporter | ||
|
||
go 1.12 | ||
go 1.18 | ||
|
||
require ( | ||
github.com/gammazero/workerpool v0.0.0-20190521015540-3b91a70bc0a1 | ||
github.com/pkg/errors v0.8.1 | ||
github.com/prometheus/client_golang v1.5.1 | ||
github.com/sirupsen/logrus v1.4.2 | ||
github.com/pkg/errors v0.9.1 | ||
github.com/prometheus/client_golang v1.12.2 | ||
github.com/sirupsen/logrus v1.8.1 | ||
github.com/stretchr/testify v1.7.0 | ||
golang.org/x/oauth2 v0.0.0-20220524215830-622c5d57e401 | ||
google.golang.org/api v0.82.0 | ||
golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb | ||
google.golang.org/api v0.83.0 | ||
) | ||
|
||
require ( | ||
cloud.google.com/go/compute v1.6.1 // indirect | ||
github.com/beorn7/perks v1.0.1 // indirect | ||
github.com/cespare/xxhash/v2 v2.1.2 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect | ||
github.com/golang/protobuf v1.5.2 // indirect | ||
github.com/googleapis/gax-go/v2 v2.4.0 // indirect | ||
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/prometheus/client_model v0.2.0 // indirect | ||
github.com/prometheus/common v0.34.0 // indirect | ||
github.com/prometheus/procfs v0.7.3 // indirect | ||
go.opencensus.io v0.23.0 // indirect | ||
golang.org/x/net v0.0.0-20220607020251-c690dde0001d // indirect | ||
golang.org/x/sys v0.0.0-20220608164250-635b8c9b7f68 // indirect | ||
golang.org/x/text v0.3.7 // indirect | ||
google.golang.org/appengine v1.6.7 // indirect | ||
google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac // indirect | ||
google.golang.org/grpc v1.47.0 // indirect | ||
google.golang.org/protobuf v1.28.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect | ||
) |
Oops, something went wrong.