Skip to content

Commit

Permalink
Add wait for proxy to be built to upadte_proxy.sh (istio#25651)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Van Norman authored Jul 20, 2020
1 parent 80f483f commit 49d25f1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bin/update_proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,16 @@ SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOTDIR=$(dirname "${SCRIPTPATH}")
cd "${ROOTDIR}"

# Wait for the proxy to become available
ISTIO_ENVOY_VERSION=${ISTIO_ENVOY_VERSION:-$1}
ISTIO_ENVOY_LINUX_VERSION=${ISTIO_ENVOY_LINUX_VERSION:-${ISTIO_ENVOY_VERSION}}
ISTIO_ENVOY_BASE_URL=${ISTIO_ENVOY_BASE_URL:-https://storage.googleapis.com/istio-build/proxy}
ISTIO_ENVOY_RELEASE_URL=${ISTIO_ENVOY_RELEASE_URL:-${ISTIO_ENVOY_BASE_URL}/envoy-alpha-${ISTIO_ENVOY_LINUX_VERSION}.tar.gz}

until curl --output /dev/null --silent --head --fail "$ISTIO_ENVOY_RELEASE_URL"; do
printf '.'
sleep 3
done

# Update the dependency in istio.deps
sed -i '/PROXY_REPO_SHA/,/lastStableSHA/ { s/"lastStableSHA":.*/"lastStableSHA": "'"$1"'"/ }' istio.deps

0 comments on commit 49d25f1

Please sign in to comment.