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

This commit is contained in:
xiangpengzhao 2016-06-12 00:01:46 -04:00
parent fae7285b00
commit 57011da088

View File

@ -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