Skip to content

Commit

Permalink
Add a cross-compile invocation to build the plugin for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
Tit Petric committed Dec 27, 2024
1 parent 0ef3ff9 commit c93e542
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ci/tests/plugin-compiler/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ rm -fv $PLUGIN_SOURCE_PATH/*.so || true
docker run --rm -v $PLUGIN_SOURCE_PATH:/plugin-source $PLUGIN_COMPILER_IMAGE plugin.so
cp $PLUGIN_SOURCE_PATH/*.so $PLUGIN_SOURCE_PATH/plugin.so

# Cross compile to arm64
docker run --rm -e GOARCH=arm64 -v $PLUGIN_SOURCE_PATH:/plugin-source $PLUGIN_COMPILER_IMAGE plugin.so

docker compose up -d --wait --force-recreate || { docker compose logs gw; exit 1; }

curl http://localhost:8080/goplugin/headers | jq -e '.headers.Foo == "Bar"' || { docker compose logs gw; exit 1; }

0 comments on commit c93e542

Please sign in to comment.