Skip to content

Commit

Permalink
test(sdk): build random image for tune.
Browse files Browse the repository at this point in the history
Signed-off-by: Electronic-Waste <[email protected]>
  • Loading branch information
Electronic-Waste committed Aug 1, 2024
1 parent 71d3aac commit 6ae4616
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/e2e/v1beta1/scripts/gh-actions/build-load.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ _install_tools() {
fi
}

setup_for_tune() {
docker pull $DEFAULT_IMAGE_FOR_TUNE
_build_containers "suggestion-hyperopt" "$CMD_PREFIX/suggestion/hyperopt/$VERSION/Dockerfile"
}

run() {
CONTAINER_NAME=${1:-"katib-controller"}
DOCKERFILE=${2:-"$CMD_PREFIX/katib-controller/$VERSION/Dockerfile"}
Expand Down Expand Up @@ -164,8 +169,8 @@ for name in "${TRIAL_IMAGE_ARRAY[@]}"; do
done

# Testing image for tune function
echo -e "\nPulling testing image for tune function..."
docker pull $DEFAULT_IMAGE_FOR_TUNE
echo -e "\nPulling and building testing image for tune function..."
setup_for_tune

echo -e "\nCleanup Build Cache...\n"
docker buildx prune -f
Expand Down

0 comments on commit 6ae4616

Please sign in to comment.