Skip to content

Commit

Permalink
Fix bundler to work with distroless
Browse files Browse the repository at this point in the history
  • Loading branch information
buger authored Sep 4, 2024
1 parent 65cbc70 commit 93497c5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,13 @@ coverage:
# Builds production-ready Go plugin bundle as non-root user, using Tyk Bundler tool
.PHONY: go-bundle
go-bundle: go-build
sed "s/replace_version/$(TYK_VERSION)/g" tyk/bundle/manifest-template.json | \
sed "s/replace_platform/amd64/g" > tyk/bundle/manifest.json
docker-compose run --rm --user=$(DOCKER_USER) --entrypoint "bundle/bundle-entrypoint.sh" tyk-gateway
.PHONY: go-bundle
go-bundle: go-build
sed "s/replace_version/$(TYK_VERSION)/g" tyk/bundle/manifest-template.json | \
sed "s/replace_platform/amd64/g" > tyk/bundle/manifest.json
cp tyk/middleware/CustomGoPlugin*.so tyk/bundle/
docker-compose run --rm --user=$(DOCKER_USER) --entrypoint "tyk" tyk-gateway bundle build -y
rm tyk/bundle/CustomGoPlugin*.so

# Cleans application files
.PHONY: go-clean
Expand Down

0 comments on commit 93497c5

Please sign in to comment.