Skip to content

Commit

Permalink
fix: Use local iperf3 binary
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFantom committed Aug 15, 2024
1 parent f2788ab commit 9ca99e3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ RUN go build -trimpath -o out/sti ./cmd/sti/*.go

FROM alpine:3.18

RUN apk add ca-certificates
RUN apk add \
ca-certificates \
iperf3
COPY --from=builder /root/sti/out/sti /usr/local/bin/sti

ENTRYPOINT ["sti"]
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ require (
github.com/sirupsen/logrus v1.9.3
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.19.0
github.com/willfantom/go-iperf v0.1.0
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
github.com/willfantom/go-iperf v0.1.0 h1:diJjOhQ1uW2M3Mod4X1oMUeJhvhfuHRFSESe06KcK7w=
github.com/willfantom/go-iperf v0.1.0/go.mod h1:iVFZtGCNccG+CZixaz2Am92t5tU1Pp3w3UVHWr7Guy0=
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
Expand Down
2 changes: 1 addition & 1 deletion pkg/iperf/iperf.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"net/netip"

iperfcli "github.com/BGrewell/go-iperf"
iperfcli "github.com/willfantom/go-iperf"
"github.com/willfantom/sti/pkg/tester"
)

Expand Down

0 comments on commit 9ca99e3

Please sign in to comment.