Skip to content

Commit

Permalink
chore:use wasm filter build tags add wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
baerwang committed Jun 6, 2023
1 parent 76cf95c commit 9d20488
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ENV GO111MODULE=on \
GOOS=linux \
GOARCH=amd64

RUN go build -ldflags '-r ./lib -s -w' -trimpath -o dubbo-go-pixiu ./cmd/pixiu/*.go
RUN go build -ldflags '-r ./lib -s -w' -tags="wasm" -trimpath -o dubbo-go-pixiu ./cmd/pixiu/*.go

### alpine
FROM amd64/pingcap/alpine-glibc:latest
Expand Down
5 changes: 5 additions & 0 deletions pixiu/pkg/pluginregistry/proxywasm_register.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//go:build wasm

package pluginregistry

import _ "github.com/apache/dubbo-go-pixiu/pixiu/pkg/filter/http/proxywasm"
1 change: 0 additions & 1 deletion pixiu/pkg/pluginregistry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import (
_ "github.com/apache/dubbo-go-pixiu/pixiu/pkg/filter/http/httpproxy"
_ "github.com/apache/dubbo-go-pixiu/pixiu/pkg/filter/http/loadbalancer"
_ "github.com/apache/dubbo-go-pixiu/pixiu/pkg/filter/http/proxyrewrite"
_ "github.com/apache/dubbo-go-pixiu/pixiu/pkg/filter/http/proxywasm"
_ "github.com/apache/dubbo-go-pixiu/pixiu/pkg/filter/http/remote"
_ "github.com/apache/dubbo-go-pixiu/pixiu/pkg/filter/metric"
_ "github.com/apache/dubbo-go-pixiu/pixiu/pkg/filter/network/dubboproxy"
Expand Down

0 comments on commit 9d20488

Please sign in to comment.