|
|
@ -10,12 +10,12 @@ if [[ ! -f "${venv}/bin/python" ]]; then |
|
|
|
echo "Creating virtualenv" |
|
|
|
mkdir -p "${venv}" |
|
|
|
python3 -m venv "${venv}" |
|
|
|
"${venv}/bin/pip" install --upgrade pip setuptools |
|
|
|
"${venv}/bin/pip" install --upgrade --no-cache-dir pip setuptools |
|
|
|
fi |
|
|
|
|
|
|
|
echo "Installing dependencies" |
|
|
|
apt-get update && apt-get install -y g++ unixodbc-dev # pyodbc build dependencies |
|
|
|
"${venv}/bin/pip" install -r "${root}/requirements.txt" |
|
|
|
"${venv}/bin/pip" install --no-cache-dir -r "${root}/requirements.txt" |
|
|
|
|
|
|
|
echo "Initializing database" |
|
|
|
"${venv}/bin/python" "${app}/manage.py" wait_for_db |
|
|
|