diff --git a/BUILD b/BUILD index bda9198..d271833 100644 --- a/BUILD +++ b/BUILD @@ -15,7 +15,7 @@ EXAMPLE_TESTS = [ "ext_authz", # "fault-injection", "front-proxy", - # "golang-http", + "golang-http", # "golang-network", "grpc-bridge", "gzip", diff --git a/golang-http/docker-compose-go.yaml b/golang-http/docker-compose-go.yaml index db4823f..9d5021f 100644 --- a/golang-http/docker-compose-go.yaml +++ b/golang-http/docker-compose-go.yaml @@ -1,17 +1,18 @@ services: go_plugin_compile: + user: ${UID:-1000}:${GID:-1000} build: context: simple dockerfile: ../../shared/golang/Dockerfile target: golang-base command: > bash -c " - cd golang-http/simple - && go build -o simple.so -buildmode=c-shared . - && cp ./simple.so /output" + mkdir -p lib + && cd simple + && go build -o ../lib/simple.so -buildmode=c-shared ." working_dir: /source environment: - GOFLAGS=-buildvcs=false + - HOME=/tmp volumes: - - ../..:/source - - ./lib:/output + - .:/source diff --git a/golang-http/verify.sh b/golang-http/verify.sh index 8046d68..5772452 100755 --- a/golang-http/verify.sh +++ b/golang-http/verify.sh @@ -2,6 +2,7 @@ export NAME=golang export UID +export GID export MANUAL=true export PORT_PROXY="${GOLANG_PORT_PROXY:-10710}"