-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d420294
commit 045444e
Showing
9 changed files
with
72 additions
and
639 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
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,11 +1,11 @@ | ||
FROM golang:1.17-alpine as builder | ||
FROM golang:1.19-alpine as builder | ||
|
||
RUN apk add --no-cache libpcap-dev libc-dev gcc linux-headers | ||
ADD . /app | ||
WORKDIR /app | ||
RUN go build -ldflags "-w -s -linkmode external -extldflags '-static'" -o /sx | ||
|
||
FROM alpine:3.15 | ||
FROM alpine:3.16 | ||
|
||
COPY --from=builder /sx /sx | ||
ENTRYPOINT ["/sx"] |
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,29 +1,52 @@ | ||
module github.com/v-byte-cpu/sx | ||
|
||
go 1.15 | ||
go 1.19 | ||
|
||
require ( | ||
github.com/docker/docker v20.10.7+incompatible | ||
github.com/golang/mock v1.6.0 | ||
github.com/google/gopacket v1.1.20-0.20210304165259-20562ffb40f8 | ||
github.com/mailru/easyjson v0.7.7 | ||
github.com/moby/moby v20.10.7+incompatible | ||
github.com/spf13/cobra v1.5.0 | ||
github.com/stretchr/testify v1.8.0 | ||
github.com/vishvananda/netlink v1.1.0 | ||
github.com/yl2chen/cidranger v1.0.2 | ||
go.uber.org/ratelimit v0.2.0 | ||
go.uber.org/zap v1.23.0 | ||
golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d | ||
) | ||
|
||
require ( | ||
github.com/Microsoft/go-winio v0.4.16 // indirect | ||
github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129 // indirect | ||
github.com/containerd/containerd v1.4.4 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/docker/distribution v2.7.1+incompatible // indirect | ||
github.com/docker/docker v20.10.7+incompatible | ||
github.com/docker/go-connections v0.4.0 // indirect | ||
github.com/docker/go-units v0.4.0 // indirect | ||
github.com/golang/mock v1.6.0 | ||
github.com/google/gopacket v1.1.20-0.20210304165259-20562ffb40f8 | ||
github.com/gogo/protobuf v1.3.2 // indirect | ||
github.com/golang/protobuf v1.5.2 // indirect | ||
github.com/gorilla/mux v1.8.0 // indirect | ||
github.com/mailru/easyjson v0.7.7 | ||
github.com/moby/moby v20.10.7+incompatible | ||
github.com/inconshreveable/mousetrap v1.0.0 // indirect | ||
github.com/josharian/intern v1.0.0 // indirect | ||
github.com/konsorten/go-windows-terminal-sequences v1.0.1 // indirect | ||
github.com/moby/term v0.0.0-20201216013528-df9cb8a40635 // indirect | ||
github.com/morikuni/aec v1.0.0 // indirect | ||
github.com/opencontainers/go-digest v1.0.0 // indirect | ||
github.com/opencontainers/image-spec v1.0.1 // indirect | ||
github.com/spf13/cobra v1.3.0 | ||
github.com/stretchr/testify v1.7.0 | ||
github.com/vishvananda/netlink v1.1.0 | ||
github.com/yl2chen/cidranger v1.0.2 | ||
go.uber.org/ratelimit v0.2.0 | ||
go.uber.org/zap v1.19.0 | ||
golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/sirupsen/logrus v1.4.2 // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df // indirect | ||
go.uber.org/atomic v1.7.0 // indirect | ||
go.uber.org/multierr v1.6.0 // indirect | ||
golang.org/x/sys v0.0.0-20211205182925-97ca703d548d // indirect | ||
golang.org/x/time v0.0.0-20220722155302-e5dcc9cfc0b9 // indirect | ||
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa // indirect | ||
google.golang.org/grpc v1.42.0 // indirect | ||
google.golang.org/protobuf v1.27.1 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
gotest.tools/v3 v3.0.3 // indirect | ||
) |
Oops, something went wrong.