mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-14 02:28:23 +00:00
fix: [install] unshallow clone
This commit is contained in:
parent
9828ffdbc8
commit
5c1de2d09f
2 changed files with 10 additions and 9 deletions
|
@ -15,11 +15,10 @@ if [ -z "$VIRTUAL_ENV" ]; then
|
||||||
echo export AIL_FLASK=$(pwd)/var/www/ >> ./AILENV/bin/activate
|
echo export AIL_FLASK=$(pwd)/var/www/ >> ./AILENV/bin/activate
|
||||||
echo export AIL_REDIS=$(pwd)/redis/src/ >> ./AILENV/bin/activate
|
echo export AIL_REDIS=$(pwd)/redis/src/ >> ./AILENV/bin/activate
|
||||||
echo export AIL_ARDB=$(pwd)/ardb/src/ >> ./AILENV/bin/activate
|
echo export AIL_ARDB=$(pwd)/ardb/src/ >> ./AILENV/bin/activate
|
||||||
|
fi
|
||||||
|
|
||||||
. ./AILENV/bin/activate
|
. ./AILENV/bin/activate
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
pip3 install -U pip
|
pip3 install -U pip
|
||||||
pip3 install 'git+https://github.com/D4-project/BGP-Ranking.git/@7e698f87366e6f99b4d0d11852737db28e3ddc62#egg=pybgpranking&subdirectory=client'
|
pip3 install 'git+https://github.com/D4-project/BGP-Ranking.git/@7e698f87366e6f99b4d0d11852737db28e3ddc62#egg=pybgpranking&subdirectory=client'
|
||||||
pip3 install -U -r requirements.txt
|
pip3 install -U -r requirements.txt
|
||||||
|
|
|
@ -88,16 +88,18 @@ fi
|
||||||
# create AILENV + intall python packages
|
# create AILENV + intall python packages
|
||||||
./install_virtualenv.sh
|
./install_virtualenv.sh
|
||||||
|
|
||||||
|
# force virtualenv activation
|
||||||
|
. ./AILENV/bin/activate
|
||||||
|
|
||||||
pushd ${AIL_BIN}helper/gen_cert
|
pushd ${AIL_BIN}/helper/gen_cert
|
||||||
./gen_root.sh
|
./gen_root.sh
|
||||||
wait
|
wait
|
||||||
./gen_cert.sh
|
./gen_cert.sh
|
||||||
wait
|
wait
|
||||||
popd
|
popd
|
||||||
|
|
||||||
cp ${AIL_BIN}helper/gen_cert/server.crt ${AIL_FLASK}server.crt
|
cp ${AIL_BIN}/helper/gen_cert/server.crt ${AIL_FLASK}/server.crt
|
||||||
cp ${AIL_BIN}helper/gen_cert/server.key ${AIL_FLASK}server.key
|
cp ${AIL_BIN}/helper/gen_cert/server.key ${AIL_FLASK}/server.key
|
||||||
|
|
||||||
mkdir -p $AIL_HOME/PASTES
|
mkdir -p $AIL_HOME/PASTES
|
||||||
|
|
||||||
|
@ -109,14 +111,14 @@ $AIL_HOME/doc/generate_modules_data_flow_graph.sh
|
||||||
# init update version
|
# init update version
|
||||||
pushd ${AIL_HOME}
|
pushd ${AIL_HOME}
|
||||||
# shallow clone
|
# shallow clone
|
||||||
git fetch --tags --prune --unshallow
|
git fetch --tags --prune --depth=10000
|
||||||
git describe --abbrev=0 --tags | tr -d '\n' > ${AIL_HOME}/update/current_version
|
git describe --abbrev=0 --tags | tr -d '\n' > ${AIL_HOME}/update/current_version
|
||||||
echo "AIL current version:"
|
echo "AIL current version:"
|
||||||
git describe --abbrev=0 --tags
|
git describe --abbrev=0 --tags
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# LAUNCH ARDB
|
# LAUNCH ARDB
|
||||||
bash ${AIL_BIN}LAUNCH.sh -lav &
|
bash ${AIL_BIN}/LAUNCH.sh -lav &
|
||||||
wait
|
wait
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
@ -125,6 +127,6 @@ pushd ${AIL_FLASK}
|
||||||
python3 create_default_user.py
|
python3 create_default_user.py
|
||||||
popd
|
popd
|
||||||
|
|
||||||
bash ${AIL_BIN}LAUNCH.sh -k &
|
bash ${AIL_BIN}/LAUNCH.sh -k &
|
||||||
wait
|
wait
|
||||||
echo ""
|
echo ""
|
||||||
|
|
Loading…
Reference in a new issue