Skip to content

Commit

Permalink
fix golang-http example (#112)
Browse files Browse the repository at this point in the history
Signed-off-by: Seth Malaki <[email protected]>
  • Loading branch information
electricjesus authored Sep 9, 2024
1 parent 7888a9b commit d2e1a45
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ EXAMPLE_TESTS = [
"ext_authz",
# "fault-injection",
"front-proxy",
# "golang-http",
"golang-http",
# "golang-network",
"grpc-bridge",
"gzip",
Expand Down
11 changes: 6 additions & 5 deletions golang-http/docker-compose-go.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions golang-http/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

export NAME=golang
export UID
export GID
export MANUAL=true
export PORT_PROXY="${GOLANG_PORT_PROXY:-10710}"

Expand Down

0 comments on commit d2e1a45

Please sign in to comment.