-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c41fcd9
commit f48c73c
Showing
8 changed files
with
56 additions
and
51 deletions.
There are no files selected for viewing
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,33 +1,27 @@ | ||
#!/usr/bin/env bash | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
kfp_directory=kfp | ||
boto_directory=boto3 | ||
# easy for troubleshooting | ||
tmp_dir=tmp | ||
|
||
mkdir -p "$kfp_directory" | ||
mkdir -p "$boto_directory" | ||
|
||
# Download kfp package | ||
pip download kfp==2.7.0 -d "$kfp_directory" | ||
|
||
# Download boto3 package | ||
pip download boto3 -d "$boto_directory" | ||
mkdir -p "$tmp_dir" | ||
|
||
# Download packages | ||
for python_version in "3.9" "3.10" "3.11" "3.12"; do | ||
for package in "kfp" "numpy"; do | ||
# If we don't set the --python-version it will use the one from the computer that may not be the one that the | ||
# pipeline is running | ||
pip download $package -d "$tmp_dir" --only-binary=:all: --python-version $python_version | ||
done | ||
done | ||
|
||
# Print the pods in the namespace | ||
oc -n test-pypiserver get pods | ||
|
||
pod_name=$(oc -n test-pypiserver get pod | grep pypi | awk '{print $1}') | ||
|
||
# Copy kfp packages | ||
for kfp_entry in "$kfp_directory"/*; do | ||
echo oc -n test-pypiserver cp "$kfp_entry" $pod_name:/opt/app-root/packages | ||
oc -n test-pypiserver cp "$kfp_entry" $pod_name:/opt/app-root/packages | ||
done | ||
|
||
# Copy boto3 packages | ||
for boto_entry in "$boto_directory"/*; do | ||
echo oc -n test-pypiserver cp "$boto_entry" $pod_name:/opt/app-root/packages | ||
oc -n test-pypiserver cp "$boto_entry" $pod_name:/opt/app-root/packages | ||
# Copy packages | ||
for entry in "$tmp_dir"/*; do | ||
oc -n test-pypiserver cp "$entry" $pod_name:/opt/app-root/packages | ||
done |
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
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
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
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