-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 879 Bytes
/
Makefile
File metadata and controls
34 lines (25 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
vendor:
rm -rf .cargo
cargo vendor --manifest-path Cargo.toml --respect-source-config
mkdir -p .cargo && cp config.toml .cargo/
build:target
rm -rf target
cargo build --target wasm32-wasi --release
cp target/wasm32-wasi/release/plugin.wasm ./plugin.wasm
target:
rustup target add wasm32-wasi
REPO?=sealos.hub:5000 #reg.
IMG?=wasm/wasm-auth:latest
docker-build:
docker build -t $(REPO)/$(IMG) -f Dockerfile .
docker push $(REPO)/$(IMG)
echo $(REPO)/$(IMG) > deploy/images/shim/wasmImage
sed -i 's#wasm:latest#$(IMG)#g' deploy/charts/istio-wasm/values.yaml
oci-build:
sealos build -t $(REPO)/$(IMG) -f Sealfile .
sealos push $(REPO)/$(IMG)
echo $(REPO)/$(IMG) > deploy/images/shim/wasmImage
sed -i 's#wasm:latest#$(IMG)#g' deploy/charts/istio-wasm/values.yaml
sealos-push:
cd deploy && sealos build -t $(REPO)/$(IMG) .
sealos push $(REPO)/$(IMG)