Skip to content

Commit 20e15d2

Browse files
committed
build: update go and debian
1 parent 7d6ad21 commit 20e15d2

File tree

3 files changed

+66
-16
lines changed

3 files changed

+66
-16
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.16-buster AS builder
1+
FROM golang:1.19-bullseye AS builder
22
RUN apt-get update && apt-get install -y libsystemd-dev
33
COPY go.mod /tmp/src/
44
COPY go.sum /tmp/src/
@@ -8,7 +8,7 @@ COPY . /tmp/src/
88
ARG VERSION=unknown
99
RUN CGO_ENABLED=1 go install -mod=readonly -ldflags "-X main.version=$VERSION" /tmp/src
1010

11-
FROM debian:buster
11+
FROM debian:bullseye
1212
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
1313
COPY --from=builder /go/bin/coroot-node-agent /usr/bin/coroot-node-agent
1414
ENTRYPOINT ["coroot-node-agent"]

go.mod

Lines changed: 62 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,19 @@
11
module github.com/coroot/coroot-node-agent
22

3-
go 1.16
3+
go 1.19
44

55
require (
66
cloud.google.com/go v0.54.0
7-
github.com/Microsoft/go-winio v0.4.17 // indirect
8-
github.com/Microsoft/hcsshim v0.8.16 // indirect
97
github.com/aws/aws-sdk-go-v2/config v1.8.1
108
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.5.0
119
github.com/cilium/ebpf v0.6.2
1210
github.com/containerd/cgroups v1.0.1
1311
github.com/containerd/containerd v1.5.0-rc.0
14-
github.com/containerd/continuity v0.1.0 // indirect
15-
github.com/containerd/fifo v1.0.0 // indirect
16-
github.com/containerd/typeurl v1.0.2 // indirect
1712
github.com/coreos/go-systemd/v22 v22.3.2
1813
github.com/coroot/logparser v1.0.4
1914
github.com/docker/docker v20.10.8+incompatible
20-
github.com/docker/go-connections v0.4.0 // indirect
2115
github.com/florianl/go-conntrack v0.3.0
22-
github.com/google/uuid v1.2.0 // indirect
2316
github.com/mdlayher/taskstats v0.0.0-20210730152605-7c2d9360c326
24-
github.com/morikuni/aec v1.0.0 // indirect
25-
github.com/opencontainers/runc v1.0.1 // indirect
2617
github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417
2718
github.com/prometheus/client_golang v1.11.0
2819
github.com/stretchr/testify v1.7.0
@@ -36,3 +27,64 @@ require (
3627
inet.af/netaddr v0.0.0-20210903134321-85fa6c94624e
3728
k8s.io/klog/v2 v2.20.0
3829
)
30+
31+
require (
32+
github.com/Microsoft/go-winio v0.4.17 // indirect
33+
github.com/Microsoft/hcsshim v0.8.16 // indirect
34+
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
35+
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d // indirect
36+
github.com/aws/aws-sdk-go-v2 v1.9.0 // indirect
37+
github.com/aws/aws-sdk-go-v2/credentials v1.4.1 // indirect
38+
github.com/aws/aws-sdk-go-v2/internal/ini v1.2.2 // indirect
39+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.3.0 // indirect
40+
github.com/aws/aws-sdk-go-v2/service/sso v1.4.0 // indirect
41+
github.com/aws/aws-sdk-go-v2/service/sts v1.7.0 // indirect
42+
github.com/aws/smithy-go v1.8.0 // indirect
43+
github.com/beorn7/perks v1.0.1 // indirect
44+
github.com/bits-and-blooms/bitset v1.2.0 // indirect
45+
github.com/cespare/xxhash/v2 v2.1.1 // indirect
46+
github.com/containerd/continuity v0.1.0 // indirect
47+
github.com/containerd/fifo v1.0.0 // indirect
48+
github.com/containerd/ttrpc v1.0.2 // indirect
49+
github.com/containerd/typeurl v1.0.2 // indirect
50+
github.com/davecgh/go-spew v1.1.1 // indirect
51+
github.com/docker/distribution v2.7.1+incompatible // indirect
52+
github.com/docker/go-connections v0.4.0 // indirect
53+
github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c // indirect
54+
github.com/docker/go-units v0.4.0 // indirect
55+
github.com/go-logr/logr v1.0.0 // indirect
56+
github.com/godbus/dbus/v5 v5.0.4 // indirect
57+
github.com/gogo/googleapis v1.4.0 // indirect
58+
github.com/gogo/protobuf v1.3.2 // indirect
59+
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
60+
github.com/golang/protobuf v1.5.0 // indirect
61+
github.com/google/go-cmp v0.5.6 // indirect
62+
github.com/google/uuid v1.2.0 // indirect
63+
github.com/josharian/native v0.0.0-20200817173448-b6b71def0850 // indirect
64+
github.com/klauspost/compress v1.11.13 // indirect
65+
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
66+
github.com/mdlayher/genetlink v1.0.0 // indirect
67+
github.com/mdlayher/netlink v1.4.1 // indirect
68+
github.com/mdlayher/socket v0.0.0-20210307095302-262dc9984e00 // indirect
69+
github.com/moby/sys/mountinfo v0.4.1 // indirect
70+
github.com/morikuni/aec v1.0.0 // indirect
71+
github.com/opencontainers/go-digest v1.0.0 // indirect
72+
github.com/opencontainers/image-spec v1.0.1 // indirect
73+
github.com/opencontainers/runc v1.0.1 // indirect
74+
github.com/opencontainers/selinux v1.8.2 // indirect
75+
github.com/pkg/errors v0.9.1 // indirect
76+
github.com/pmezard/go-difflib v1.0.0 // indirect
77+
github.com/prometheus/client_model v0.2.0 // indirect
78+
github.com/prometheus/common v0.26.0 // indirect
79+
github.com/prometheus/procfs v0.6.0 // indirect
80+
github.com/sirupsen/logrus v1.8.1 // indirect
81+
go.opencensus.io v0.22.3 // indirect
82+
go4.org/intern v0.0.0-20210108033219-3eb7198706b2 // indirect
83+
go4.org/unsafe/assume-no-moving-gc v0.0.0-20220617031537-928513b29760 // indirect
84+
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a // indirect
85+
golang.org/x/text v0.3.6 // indirect
86+
google.golang.org/genproto v0.0.0-20201110150050-8816d57aaa9a // indirect
87+
google.golang.org/grpc v1.33.2 // indirect
88+
google.golang.org/protobuf v1.26.0 // indirect
89+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
90+
)

go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ github.com/bugsnag/bugsnag-go v0.0.0-20141110184014-b1d153021fcd/go.mod h1:2oa8n
109109
github.com/bugsnag/osext v0.0.0-20130617224835-0dd3f918b21b/go.mod h1:obH5gd0BsqsP2LwDJ9aOkm/6J86V6lyAXCoQWGw3K50=
110110
github.com/bugsnag/panicwrap v0.0.0-20151223152923-e2c28503fcd0/go.mod h1:D/8v3kj0zr8ZAKg1AQ6crr+5VwKN5eIywRkfhyM/+dE=
111111
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
112-
github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
113112
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
114113
github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY=
115114
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
@@ -212,7 +211,6 @@ github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3Ee
212211
github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
213212
github.com/coreos/go-systemd v0.0.0-20161114122254-48702e0da86b/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
214213
github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
215-
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e h1:Wf6HqHfScWJN9/ZjdUKyjop4mf3Qdd+1TvvltAvM3m8=
216214
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
217215
github.com/coreos/go-systemd/v22 v22.0.0/go.mod h1:xO0FLkIi5MaZafQlIrOotqXZ90ih+1atmu1JpKERPPk=
218216
github.com/coreos/go-systemd/v22 v22.1.0/go.mod h1:xO0FLkIi5MaZafQlIrOotqXZ90ih+1atmu1JpKERPPk=
@@ -303,7 +301,6 @@ github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh
303301
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
304302
github.com/godbus/dbus v0.0.0-20151105175453-c7fdd8b5cd55/go.mod h1:/YcGZj5zSblfDWMMoOzV4fas9FZnQYTkDnsGvmh2Grw=
305303
github.com/godbus/dbus v0.0.0-20180201030542-885f9cc04c9c/go.mod h1:/YcGZj5zSblfDWMMoOzV4fas9FZnQYTkDnsGvmh2Grw=
306-
github.com/godbus/dbus v0.0.0-20190422162347-ade71ed3457e h1:BWhy2j3IXJhjCbC68FptL43tDKIq8FladmaTs3Xs7Z8=
307304
github.com/godbus/dbus v0.0.0-20190422162347-ade71ed3457e/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4=
308305
github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
309306
github.com/godbus/dbus/v5 v5.0.4 h1:9349emZab16e7zQvpmsbtjc18ykshndd8y2PG3sgJbA=
@@ -684,8 +681,9 @@ go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
684681
go4.org/intern v0.0.0-20210108033219-3eb7198706b2 h1:VFTf+jjIgsldaz/Mr00VaCSswHJrI2hIjQygE/W4IMg=
685682
go4.org/intern v0.0.0-20210108033219-3eb7198706b2/go.mod h1:vLqJ+12kCw61iCWsPto0EOHhBS+o4rO5VIucbc9g2Cc=
686683
go4.org/unsafe/assume-no-moving-gc v0.0.0-20201222175341-b30ae309168e/go.mod h1:FftLjUGFEDu5k8lt0ddY+HcrH/qU/0qk+H8j9/nTl3E=
687-
go4.org/unsafe/assume-no-moving-gc v0.0.0-20201222180813-1025295fd063 h1:1tk03FUNpulq2cuWpXZWj649rwJpk0d20rxWiopKRmc=
688684
go4.org/unsafe/assume-no-moving-gc v0.0.0-20201222180813-1025295fd063/go.mod h1:FftLjUGFEDu5k8lt0ddY+HcrH/qU/0qk+H8j9/nTl3E=
685+
go4.org/unsafe/assume-no-moving-gc v0.0.0-20220617031537-928513b29760 h1:FyBZqvoA/jbNzuAWLQE2kG820zMAkcilx6BMjGbL/E4=
686+
go4.org/unsafe/assume-no-moving-gc v0.0.0-20220617031537-928513b29760/go.mod h1:FftLjUGFEDu5k8lt0ddY+HcrH/qU/0qk+H8j9/nTl3E=
689687
golang.org/x/crypto v0.0.0-20171113213409-9f005a07e0d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
690688
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
691689
golang.org/x/crypto v0.0.0-20181009213950-7c1a557ab941/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=

0 commit comments

Comments
 (0)