Commit 57011da0 authored by xiangpengzhao's avatar xiangpengzhao

Use host network for container gen-swagger-docs and set https_proxy if behind a proxy

parent fae7285b
......@@ -71,6 +71,7 @@ for ver in $VERSIONS; do
--rm -v "${TMP_IN_HOST}":/output:z \
-v "${SWAGGER_PATH}":/swagger-source:z \
-v "${REGISTER_FILE}":/register.go:z \
--net=host -e "https_proxy=${KUBERNETES_HTTPS_PROXY:-}" \
gcr.io/google_containers/gen-swagger-docs:v6 \
"${SWAGGER_JSON_NAME}"
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment