diff --git a/envoy.Dockerfile b/envoy.Dockerfile index 3962a8c..2c8615f 100644 --- a/envoy.Dockerfile +++ b/envoy.Dockerfile @@ -1,2 +1,2 @@ -FROM istio/proxyv2:1.12.0-rc.1 +FROM istio/proxyv2:1.13.8 ENTRYPOINT /usr/local/bin/envoy -c /etc/envoy.yaml -l debug --service-cluster proxy diff --git a/upstream/Dockerfile b/upstream/Dockerfile index 077f426..4e51431 100644 --- a/upstream/Dockerfile +++ b/upstream/Dockerfile @@ -1,4 +1,6 @@ -FROM golang:1.13.5 as bd +# syntax=docker/dockerfile:1 + +FROM golang:1.19.1 as bd WORKDIR /github.com/layer5io/wasm-upstream ADD . . RUN GOPROXY=direct GOSUMDB=off go build -a -o /upstream . diff --git a/upstream/go.mod b/upstream/go.mod new file mode 100644 index 0000000..b4fec42 --- /dev/null +++ b/upstream/go.mod @@ -0,0 +1,3 @@ +module github.com/layer5io/wasm-filters/upstream + +go 1.19 diff --git a/upstream/main.go b/upstream/main.go index cbbda9f..ae3fd62 100644 --- a/upstream/main.go +++ b/upstream/main.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "io/ioutil" + "io" "net/http" ) @@ -10,7 +10,7 @@ var gldata = "" func store(w http.ResponseWriter, req *http.Request) { defer req.Body.Close() - data, err := ioutil.ReadAll(req.Body) + data, err := io.ReadAll(req.Body) if err != nil { return }