Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ test.examples:
| xargs -I {} bash -c 'dirname {}' \
| xargs -I {} bash -c 'cd {} && go test ./...'

.PHONY: test.e2e
test.e2e:
@go test -v ./e2e -count=1

.PHONY: test.e2e.single
test.e2e.single:
@go test -v ./e2e -run '/${name}' -count=1

.PHONY: run
run:
@envoy -c ./examples/${name}/envoy.yaml --concurrency 2 --log-format '%v'
Expand Down Expand Up @@ -63,35 +55,6 @@ check:
git diff --exit-code; \
fi

# Build docker images of *compat* variant of Wasm Image Specification with built example binaries,
# and push to ghcr.io/tetratelabs/proxy-wasm-go-sdk-examples.
# See https://github.com/solo-io/wasm/blob/master/spec/spec-compat.md for details.
# Only-used in github workflow on the main branch, and not for developers.
repository := ghcr.io/tetratelabs/proxy-wasm-go-sdk-example

.PHONY: wasm_image.build_push
wasm_image.build_push:
@for f in `find ./examples -type f -name "main.go"`; do \
name=`echo $$f | sed -e 's/\\//-/g' | sed -e 's/\.-examples-//g' -e 's/\-main\.go//g'` ; \
ref=${repository}:$$name; \
docker build -t $$ref . -f examples/wasm-image.Dockerfile --build-arg WASM_BINARY_PATH=$$(dirname $$f)/main.wasm; \
docker push $$ref; \
done

# Build OCI images of *compat* variant of Wasm Image Specification with built example binaries,
# and push to ghcr.io/tetratelabs/proxy-wasm-go-sdk-examples.
# See https://github.com/solo-io/wasm/blob/master/spec/spec-compat.md for details.
# Only-used in github workflow on the main branch, and not for developers.
# Requires "buildah" CLI.
.PHONY: wasm_image.build_push_oci
wasm_image.build_push_oci:
@for f in `find ./examples -type f -name "main.go"`; do \
name=`echo $$f | sed -e 's/\\//-/g' | sed -e 's/\.-examples-//g' -e 's/\-main\.go//g'` ; \
ref=${repository}:$$name-oci; \
buildah bud -f examples/wasm-image.Dockerfile --build-arg WASM_BINARY_PATH=$$(dirname $$f)/main.wasm -t $$ref .; \
buildah push $$ref; \
done

.PHONY: tidy
tidy: ## Runs go mod tidy on every module
@find . -name "go.mod" \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
> such as Lua or External Processing which should be comparable or better or worse depending on the use case.
>
> If you are already using this SDK, but still want to continue using Wasm for some reason instead of Lua or External Processing,
> we strongly recommend migrating to the Rust or C++ SDK due to the memory issue of TinyGo described in the like above.
> we strongly recommend migrating to the Rust or C++ SDK due to the memory issue of TinyGo described in the link above.
>
> We keep this repository open and not archived for the existing users, but we cannot provide any support or guarantee for the future development of this SDK.

Expand Down
Loading