Skip to content

Commit

Permalink
add target for wasm files (istio#20404)
Browse files Browse the repository at this point in the history
  • Loading branch information
bianpengyuan authored and istio-testing committed Jan 22, 2020
1 parent 77b9ea4 commit df42a8e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions Makefile.core.mk
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ ${ISTIO_ENVOY_MACOS_RELEASE_PATH}: init
depend: init | $(ISTIO_OUT)

DIRS_TO_CLEAN := $(ISTIO_OUT)
DIRS_TO_CLEAN += $(ISTIO_OUT_LINUX)

$(OUTPUT_DIRS):
@mkdir -p $@
Expand Down
3 changes: 0 additions & 3 deletions bin/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,6 @@ fi

# Donwload WebAssembly plugin files
WASM_RELEASE_DIR=${ISTIO_ENVOY_LINUX_RELEASE_DIR}
if [[ "$LOCAL_OS" == "Darwin" ]]; then
WASM_RELEASE_DIR=${ISTIO_ENVOY_MACOS_RELEASE_DIR}
fi
for plugin in stats metadata_exchange
do
FILTER_WASM_URL="${ISTIO_ENVOY_BASE_URL}/${plugin}-${ISTIO_ENVOY_VERSION}.wasm"
Expand Down
4 changes: 4 additions & 0 deletions tools/istio-docker.mk
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ else
cp ${ISTIO_ENVOY_LINUX_RELEASE_PATH} ${ISTIO_ENVOY_LINUX_RELEASE_DIR}/envoy
endif

# rule for wasm extensions.
$(ISTIO_ENVOY_LINUX_RELEASE_DIR)/stats-filter.wasm: init
$(ISTIO_ENVOY_LINUX_RELEASE_DIR)/metadata-exchange-filter.wasm: init

# Default proxy image.
docker.proxyv2: BUILD_PRE=&& chmod 755 envoy pilot-agent istio-iptables
docker.proxyv2: BUILD_ARGS=--build-arg proxy_version=istio-proxy:${PROXY_REPO_SHA} --build-arg istio_version=${VERSION} --build-arg BASE_VERSION=${BASE_VERSION}
Expand Down

0 comments on commit df42a8e

Please sign in to comment.