-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add curator_opensearch-0.0.13.tar.gz blob * update blob reference in package * delete old curator blob * add script to download wheels for Python packages * update script for add python wheel blobs * rename script * reformat script * update notes in packaging script * update auth-proxy blobs * add notes to curator packaging script * update curator_opensearch vendor blobs * add uploaded blob metadata * update curator blobs in packaging spec * update files reference in curator packaging spec * remove unnecessary blob * update auth-proxy blobs * add updated blob metadata * remove commented code * remove commented lines
- Loading branch information
Showing
7 changed files
with
236 additions
and
239 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
WHEEL_SRC_DIR=$1 | ||
BLOB_PREFIX=$2 | ||
|
||
if [ -z "$WHEEL_SRC_DIR" ]; then | ||
echo "path to opensearch-dashboards-cf-auth-proxy source code required as first argument. exiting" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$BLOB_PREFIX" ]; then | ||
echo "blob prefix required as second argument. exiting" | ||
exit 1 | ||
fi | ||
|
||
find "$WHEEL_SRC_DIR" \ | ||
-type f \ | ||
-name "*.whl" \ | ||
-exec bash -c 'path="$1"; blob_prefix="$2"; file_name=$(basename $1); bosh add-blob $path "$blob_prefix/$file_name"' shell {} "$BLOB_PREFIX" \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
export PYTHON_VERSION="3.12" | ||
PACKAGE_NAME=$1 | ||
|
||
if [ -z "$PACKAGE_NAME" ]; then | ||
echo "package name to download wheels for required as first argument. exiting" | ||
exit 1 | ||
fi | ||
|
||
pip download "$PACKAGE_NAME" \ | ||
--platform manylinux_2_17_x86_64 \ | ||
--platform linux_x86_64 \ | ||
--only-binary=:all: \ | ||
--python-version "$PYTHON_VERSION" \ | ||
--dest "vendor/$PACKAGE_NAME" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
export PATH="/var/vcap/packages/python3/bin:${PATH}" LD_LIBRARY_PATH="/var/vcap/packages/python3/lib:${LD_LIBRARY_PATH}" C_INCLUDE_PATH="/var/vcap/packages/python3/include:${C_INCLUDE_PATH}" | ||
export PATH="/var/vcap/packages/python3/bin:${PATH}" | ||
export LD_LIBRARY_PATH="/var/vcap/packages/python3/lib:${LD_LIBRARY_PATH}" | ||
export C_INCLUDE_PATH="/var/vcap/packages/python3/include:${C_INCLUDE_PATH}" | ||
|
||
# To download updated blobs for this package, see bin/download-wheels.sh. For example: | ||
# | ||
# ./bin/download-wheels/curator_opensearch | ||
# | ||
# Then, add the downloaded blobs to the release: | ||
# | ||
# ./bin/add-wheel-blobs.sh vendor/curator_opensearch curator_opensearch/vendor | ||
|
||
# --no-index prevents contacting pypi to download packages | ||
# --find-links tells pip where to look for the dependancies | ||
# --prefix installation prefix where lib, bin and other top-level folders are placed | ||
pip3 install --no-index "--prefix=${BOSH_INSTALL_TARGET}" curator/vendor/flit_core-3.8.0.tar.gz | ||
pip3 install --no-index --find-links ./curator/vendor/ "--prefix=${BOSH_INSTALL_TARGET}" curator/vendor/wheel-0.41.2.tar.gz | ||
pip3 install --no-index --find-links ./curator/vendor/ "--prefix=${BOSH_INSTALL_TARGET}" curator/vendor/Cython-0.29.36.tar.gz | ||
pip3 install --no-index --find-links ./curator/vendor/ "--prefix=${BOSH_INSTALL_TARGET}" curator/vendor/PyYAML-6.0.1.tar.gz | ||
pip3 install --no-index --find-links ./curator/vendor/ "--prefix=${BOSH_INSTALL_TARGET}" curator_opensearch-0.0.12-py2.py3-none-any.whl | ||
|
||
python3 -m pip install "--prefix=${BOSH_INSTALL_TARGET}" --no-index curator_opensearch/vendor/*.whl | ||
tar xzvf curator_opensearch-0.0.13.tar.gz -C "$BOSH_INSTALL_TARGET" --strip-components 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters