Skip to content

Commit

Permalink
升级Nacos go sdk 2.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jianwei.wjw committed Oct 25, 2024
1 parent 0296ce8 commit b54418a
Show file tree
Hide file tree
Showing 6 changed files with 1,429 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM golang:1.15.3 AS build
FROM golang:1.22.2 AS build


WORKDIR /src
COPY . .
RUN go env -w GOPROXY=https://goproxy.cn,direct
RUN STATIC=0 GOOS=linux GOARCH=amd64 LDFLAGS='-extldflags -static -s -w' go build -o main ./cmd/nacos-k8s-sync

FROM ubuntu:20.04
FROM ubuntu:24.04
WORKDIR /
COPY --from=build /src/main /main
CMD ["./main"]
2 changes: 1 addition & 1 deletion cmd/nacos-k8s-sync/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/nacos-group/nacos-sdk-go/common/constant"
"github.com/nacos-group/nacos-sdk-go/v2/common/constant"
"github.com/spf13/cobra"
v1 "k8s.io/api/core/v1"

Expand Down
7 changes: 4 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
module github.com/nacos-group/nacos-k8s-sync

go 1.15
go 1.22

require (
github.com/hashicorp/go-multierror v1.1.0
github.com/nacos-group/nacos-sdk-go v1.0.7-0.20210312023737-9edc707e7511
github.com/nacos-group/nacos-sdk-go/v2 v2.2.7
github.com/natefinch/lumberjack v2.0.0+incompatible
github.com/spf13/cobra v1.0.0
github.com/spf13/pflag v1.0.5
go.uber.org/zap v1.16.0
go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee // indirect
go.uber.org/zap v1.21.0
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
k8s.io/api v0.19.3
k8s.io/apimachinery v0.19.3
Expand Down
Loading

0 comments on commit b54418a

Please sign in to comment.