forked from guillaume-chervet/MLOpsPython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (19 loc) · 693 Bytes
/
Makefile
File metadata and controls
22 lines (19 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
install_mode=${1:-poetry}
download_model_version=${2:-none}
if [ $download_model_version != 'none' ]; then
# Download the model from here :
# https://github.com/guillaume-chervet/MLOpsPython/releases/download/v0.1.0/mlopspython_model.zip
# Unzip it
curl -L https://github.com/guillaume-chervet/MLOpsPython/releases/download/v$download_model_version/mlopspython_model.zip --output model.zip
unzip model.zip -d ./production/api/core/model
rm model.zip
fi
if [ $install_mode = 'pip' ]; then
echo "Installing with pip (degraded mode)"
chmod +x pip-install.sh
./pip-install.sh
else
echo "Installing with poetry (default mode)"
chmod +x poetry-install.sh
./poetry-install.sh
fi