Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

Commit ea8b04d

Browse files
authored
Merge pull request #30 from uswitch/fix-hermod
Fix dockerfile and update client go version
2 parents 55bdccb + ea55a76 commit ea8b04d

File tree

4 files changed

+286
-72
lines changed

4 files changed

+286
-72
lines changed

.drone.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ workspace:
44

55
pipeline:
66
test:
7-
image: golang:1.16
7+
image: golang:1.18
88
commands:
99
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go test -v -cover $(go list ./...)
1010
build:
11-
image: golang:1.16
11+
image: golang:1.18
1212
commands:
1313
- make build
1414

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
FROM alpine:3 as base
2+
3+
RUN apk add -U --no-cache ca-certificates
4+
15
FROM scratch
26

7+
COPY --from=base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
8+
39
ADD bin/hermod-linux-amd64 hermod
410

511
ENTRYPOINT ["/hermod"]

go.mod

Lines changed: 48 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,57 @@
11
module github.com/uswitch/hermod
22

3-
go 1.16
3+
go 1.18
44

55
require (
6-
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
7-
github.com/alecthomas/units v0.0.0-20210208195552-ff826a37aa15 // indirect
86
github.com/getsentry/sentry-go v0.12.0
9-
github.com/prometheus/client_golang v1.11.0 // indirect
7+
github.com/prometheus/client_golang v1.11.0
108
github.com/sirupsen/logrus v1.8.1
119
github.com/slack-go/slack v0.9.1
1210
gopkg.in/alecthomas/kingpin.v2 v2.2.6
13-
k8s.io/api v0.21.1
14-
k8s.io/apimachinery v0.21.1
15-
k8s.io/client-go v0.21.1
16-
sigs.k8s.io/structured-merge-diff/v4 v4.1.0 // indirect
11+
k8s.io/api v0.23.10
12+
k8s.io/apimachinery v0.23.10
13+
k8s.io/client-go v0.23.10
14+
)
15+
16+
require (
17+
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
18+
github.com/alecthomas/units v0.0.0-20210208195552-ff826a37aa15 // indirect
19+
github.com/beorn7/perks v1.0.1 // indirect
20+
github.com/cespare/xxhash/v2 v2.1.1 // indirect
21+
github.com/davecgh/go-spew v1.1.1 // indirect
22+
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
23+
github.com/go-logr/logr v1.2.0 // indirect
24+
github.com/gogo/protobuf v1.3.2 // indirect
25+
github.com/golang/protobuf v1.5.2 // indirect
26+
github.com/google/go-cmp v0.5.5 // indirect
27+
github.com/google/gofuzz v1.1.0 // indirect
28+
github.com/googleapis/gnostic v0.5.5 // indirect
29+
github.com/gorilla/websocket v1.4.2 // indirect
30+
github.com/imdario/mergo v0.3.5 // indirect
31+
github.com/json-iterator/go v1.1.12 // indirect
32+
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
33+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
34+
github.com/modern-go/reflect2 v1.0.2 // indirect
35+
github.com/pkg/errors v0.9.1 // indirect
36+
github.com/prometheus/client_model v0.2.0 // indirect
37+
github.com/prometheus/common v0.26.0 // indirect
38+
github.com/prometheus/procfs v0.6.0 // indirect
39+
github.com/spf13/pflag v1.0.5 // indirect
40+
golang.org/x/net v0.0.0-20211209124913-491a49abca63 // indirect
41+
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f // indirect
42+
golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac // indirect
43+
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b // indirect
44+
golang.org/x/text v0.3.7 // indirect
45+
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
46+
google.golang.org/appengine v1.6.7 // indirect
47+
google.golang.org/protobuf v1.27.1 // indirect
48+
gopkg.in/inf.v0 v0.9.1 // indirect
49+
gopkg.in/yaml.v2 v2.4.0 // indirect
50+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
51+
k8s.io/klog/v2 v2.30.0 // indirect
52+
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65 // indirect
53+
k8s.io/utils v0.0.0-20211116205334-6203023598ed // indirect
54+
sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6 // indirect
55+
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
56+
sigs.k8s.io/yaml v1.2.0 // indirect
1757
)

0 commit comments

Comments
 (0)