You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/workloads/cortex/serve/run.sh
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,18 @@
16
16
17
17
set -e
18
18
19
+
# CORTEX_VERSION x1
20
+
export EXPECTED_CORTEX_VERSION=0.18.1
21
+
22
+
if [ "$CORTEX_VERSION"!="$EXPECTED_CORTEX_VERSION" ];then
23
+
if [ "$CORTEX_PROVIDER"=="local" ];then
24
+
echo"your Cortex CLI version ($CORTEX_VERSION) doesn't match your predictor image version ($EXPECTED_CORTEX_VERSION); please update your predictor image by modifying the \`image\` field in your API configuration file (e.g. cortex.yaml) and re-running \`cortex deploy\`, or update your CLI by following the instructions at https://docs.cortex.dev/cluster-management/update#upgrading-to-a-newer-version-of-cortex"
25
+
else
26
+
echo"your Cortex operator version ($CORTEX_VERSION) doesn't match your predictor image version ($EXPECTED_CORTEX_VERSION); please update your predictor image by modifying the \`image\` field in your API configuration file (e.g. cortex.yaml) and re-running \`cortex deploy\`, or update your cluster by following the instructions at https://docs.cortex.dev/cluster-management/update#upgrading-to-a-newer-version-of-cortex"
27
+
fi
28
+
exit 1
29
+
fi
30
+
19
31
mkdir -p /mnt/workspace
20
32
mkdir -p /mnt/requests
21
33
@@ -66,18 +78,6 @@ if [ -f "/mnt/project/conda-packages.txt" ]; then
66
78
fi
67
79
fi
68
80
69
-
# CORTEX_VERSION x1
70
-
export EXPECTED_CORTEX_VERSION=0.18.1
71
-
72
-
if [ "$CORTEX_VERSION"!="$EXPECTED_CORTEX_VERSION" ];then
73
-
if [ "$CORTEX_PROVIDER"=="local" ];then
74
-
echo"your Cortex CLI version ($CORTEX_VERSION) doesn't match your predictor image version ($EXPECTED_CORTEX_VERSION); please update your predictor image by modifying the \`image\` field in your API configuration file (e.g. cortex.yaml) and re-running \`cortex deploy\`, or update your CLI by following the instructions at https://docs.cortex.dev/cluster-management/update#upgrading-to-a-newer-version-of-cortex"
75
-
else
76
-
echo"your Cortex operator version ($CORTEX_VERSION) doesn't match your predictor image version ($EXPECTED_CORTEX_VERSION); please update your predictor image by modifying the \`image\` field in your API configuration file (e.g. cortex.yaml) and re-running \`cortex deploy\`, or update your cluster by following the instructions at https://docs.cortex.dev/cluster-management/update#upgrading-to-a-newer-version-of-cortex"
0 commit comments