Commit 4a3d291d authored by Liu Junxiao's avatar Liu Junxiao Committed by Junxiao Liu

Replace all amazonaws files to aliyun OSS

parent 084ca97d
...@@ -15,7 +15,7 @@ if [[ "$STACK" == "heroku-16" ]]; then ...@@ -15,7 +15,7 @@ if [[ "$STACK" == "heroku-16" ]]; then
fi fi
# The location of the pre-compiled libffi binary. # The location of the pre-compiled libffi binary.
VENDORED_LIBFFI="https://lang-python.s3.amazonaws.com/$STACK/libraries/vendor/libffi.tar.gz" VENDORED_LIBFFI="http://helmsman-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/libffi.tar.gz"
PKG_CONFIG_PATH="/app/.heroku/vendor/lib/pkgconfig:$PKG_CONFIG_PATH" PKG_CONFIG_PATH="/app/.heroku/vendor/lib/pkgconfig:$PKG_CONFIG_PATH"
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# This script is invoked by [`bin/compile`](/). # This script is invoked by [`bin/compile`](/).
# The location of the pre-compiled cryptography binary. # The location of the pre-compiled cryptography binary.
VENDORED_GDAL="https://lang-python.s3.amazonaws.com/$STACK/libraries/vendor/gdal.tar.gz" VENDORED_GDAL="http://helmsman-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/gdal.tar.gz"
PKG_CONFIG_PATH="/app/.heroku/vendor/lib/pkgconfig:$PKG_CONFIG_PATH" PKG_CONFIG_PATH="/app/.heroku/vendor/lib/pkgconfig:$PKG_CONFIG_PATH"
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
# This script is invoked by [`bin/compile`](/). # This script is invoked by [`bin/compile`](/).
# The location of the pre-compiled cryptography binary. # The location of the pre-compiled cryptography binary.
VENDORED_GDAL="https://lang-python.s3.amazonaws.com/$STACK/libraries/vendor/gdal.tar.gz" VENDORED_GDAL="http://helmsman-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/gdal.tar.gz"
VENDORED_GEOS="https://lang-python.s3.amazonaws.com/$STACK/libraries/vendor/geos.tar.gz" VENDORED_GEOS="http://helmsman-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/geos.tar.gz"
VENDORED_PROJ="https://lang-python.s3.amazonaws.com/$STACK/libraries/vendor/proj.tar.gz" VENDORED_PROJ="http://helmsman-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/proj.tar.gz"
PKG_CONFIG_PATH="/app/.heroku/vendor/lib/pkgconfig:$PKG_CONFIG_PATH" PKG_CONFIG_PATH="/app/.heroku/vendor/lib/pkgconfig:$PKG_CONFIG_PATH"
......
...@@ -15,7 +15,7 @@ if [[ "$STACK" == "heroku-16" ]]; then ...@@ -15,7 +15,7 @@ if [[ "$STACK" == "heroku-16" ]]; then
fi fi
# The location of the pre-compiled libmemcached binary. # The location of the pre-compiled libmemcached binary.
VENDORED_MEMCACHED="https://lang-python.s3.amazonaws.com/$STACK/libraries/vendor/libmemcache.tar.gz" VENDORED_MEMCACHED="http://helmsman-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/libmemcache.tar.gz"
# Syntax sugar. # Syntax sugar.
# shellcheck source=bin/utils # shellcheck source=bin/utils
......
...@@ -41,13 +41,13 @@ if [ ! "$SKIP_INSTALL" ]; then ...@@ -41,13 +41,13 @@ if [ ! "$SKIP_INSTALL" ]; then
mcount "version.python.$PYTHON_VERSION" mcount "version.python.$PYTHON_VERSION"
echo "http://helmsman-firmware.oss-cn-hongkong.aliyuncs.com/dokku/$STACK/$PYTHON_VERSION.tar.gz is being downloaded..." echo "http://helmsman-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-python/$STACK/runtimes/$PYTHON_VERSION.tar.gz is being downloaded..."
if ! curl "http://helmsman-firmware.oss-cn-hongkong.aliyuncs.com/dokku/$STACK/$PYTHON_VERSION.tar.gz" -s | tar zxv -C .heroku/python &> /dev/null; then if ! curl "http://helmsman-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-python/$STACK/runtimes/$PYTHON_VERSION.tar.gz" -s | tar zxv -C .heroku/python &> /dev/null; then
puts-warn "Requested runtime ($PYTHON_VERSION) is not available for this stack ($STACK)." puts-warn "Requested runtime ($PYTHON_VERSION) is not available for this stack ($STACK)."
puts-warn "Aborting. More info: https://devcenter.heroku.com/articles/python-support" puts-warn "Aborting. More info: https://devcenter.heroku.com/articles/python-support"
exit 1 exit 1
fi fi
echo "http://helmsman-firmware.oss-cn-hongkong.aliyuncs.com/dokku/$STACK/$PYTHON_VERSION.tar.gz is downloaded successfully" echo "http://helmsman-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-python/$STACK/runtimes/$PYTHON_VERSION.tar.gz is downloaded successfully"
# Record for future reference. # Record for future reference.
echo "$PYTHON_VERSION" > .heroku/python-version echo "$PYTHON_VERSION" > .heroku/python-version
......
...@@ -4,7 +4,7 @@ shopt -s nullglob ...@@ -4,7 +4,7 @@ shopt -s nullglob
# The standard library. # The standard library.
if [[ ! -f /tmp/stdlib.sh ]]; then if [[ ! -f /tmp/stdlib.sh ]]; then
curl --retry 3 -s https://lang-common.s3.amazonaws.com/buildpack-stdlib/v8/stdlib.sh > /tmp/stdlib.sh curl --retry 3 -s http://helmsman-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-common/buildpack-stdlib/v8/stdlib.sh > /tmp/stdlib.sh
fi fi
# shellcheck source=/dev/null # shellcheck source=/dev/null
source /tmp/stdlib.sh source /tmp/stdlib.sh
......
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