-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dockerfile to pull manifests from different component repo
- leave notebook, modelmesh, monitoring as-is from odh-manifests - change kserve path to where it sets in source repo. - move download manifests function into a script - make Dockerfile a multi-stage build - add empty odh-amnifests for ci build - odh-modelmesh-controller has new path in odh-manifests - kserve does not have 'base' in component repo Signed-off-by: Wen Zhou <wenzhou@redhat.com>
- Loading branch information
Showing
6 changed files
with
117 additions
and
29 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# component: dsp, kserve, dashbaord, cf/ray. in the format of "repo-name:branch-name:source-folder:target-folder" | ||
# TODO: workbench, modelmesh, monitoring, etc | ||
REPO_LIST=( | ||
"distributed-workloads:main:codeflare-stack:codeflare-stack" | ||
"distributed-workloads:main:ray:ray" | ||
"data-science-pipelines-operator:main:config:data-science-pipelines-operator" | ||
"kserve:master:config:kserve" | ||
"odh-dashboard:main:manifests:odh-dashboard" | ||
) | ||
|
||
# pre-cleanup local env | ||
rm -fr ./odh-manifests/* ./.odh-manifests-tmp/ | ||
|
||
GITHUB_URL="https://github.com/" | ||
# update to use different git repo | ||
MANIFEST_ORG="opendatahub-io" | ||
|
||
# comment out below logic once we have all component manifests ready to get from source git repo | ||
MANIFEST_RELEASE="master" | ||
MANIFESTS_TARBALL_URL="${GITHUB_URL}/${MANIFEST_ORG}/odh-manifests/tarball/${MANIFEST_RELEASE}" | ||
mkdir ./.odh-manifests-tmp/ ./odh-manifests/ | ||
wget -q -c ${MANIFESTS_TARBALL_URL} -O - | tar -zxv -C ./.odh-manifests-tmp/ --strip-components 1 > /dev/null | ||
cp -r ./.odh-manifests-tmp/model-mesh/ ./odh-manifests | ||
cp -r ./.odh-manifests-tmp/odh-model-controller/ ./odh-manifests | ||
cp -r ./.odh-manifests-tmp/modelmesh-monitoring/ ./odh-manifests | ||
cp -r ./.odh-manifests-tmp/notebook-images/ ./odh-manifests | ||
cp -r ./.odh-manifests-tmp/odh-notebook-controller/ ./odh-manifests | ||
ls -lat ./odh-manifests/ | ||
rm -rf ${MANIFEST_RELEASE}.tar.gz ./.odh-manifests-tmp/ | ||
|
||
for repo_info in ${REPO_LIST[@]}; do | ||
echo "Git clone below repo ${repo_info}" | ||
repo_name=$( echo $repo_info | cut -d ":" -f 1 ) | ||
repo_branch=$( echo $repo_info | cut -d ":" -f 2 ) | ||
source_path=$( echo $repo_info | cut -d ":" -f 3 ) | ||
target_path=$( echo $repo_info | cut -d ":" -f 4 ) | ||
repo_url="${GITHUB_URL}/${MANIFEST_ORG}/${repo_name}.git" | ||
rm -rf ./.${repo_name} | ||
git clone --depth 1 --branch ${repo_branch} ${repo_url} ./.${repo_name} | ||
mkdir -p ./odh-manifests/${target_path} | ||
cp -rf ./.${repo_name}/${source_path}/* ./odh-manifests/${target_path} | ||
rm -rf ./.${repo_name} | ||
done |
Empty file.