mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-26 07:29:31 +00:00
Merge pull request #779 from akuker/akuker-precache-pip
Download and cache pip packages as part of easyinstall
This commit is contained in:
commit
4b874ab135
|
@ -83,6 +83,15 @@ function installPackages() {
|
||||||
sudo apt-get update && sudo apt-get install git libspdlog-dev libpcap-dev genisoimage python3 python3-venv python3-dev python3-pip nginx libpcap-dev protobuf-compiler bridge-utils libev-dev libevdev2 -y </dev/null
|
sudo apt-get update && sudo apt-get install git libspdlog-dev libpcap-dev genisoimage python3 python3-venv python3-dev python3-pip nginx libpcap-dev protobuf-compiler bridge-utils libev-dev libevdev2 -y </dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# cache the pip packages
|
||||||
|
function cachePipPackages(){
|
||||||
|
pushd $WEB_INSTALL_PATH
|
||||||
|
# Refresh the sudo authentication, which shouldn't trigger another password prompt
|
||||||
|
sudo -v
|
||||||
|
sudo pip install -r ./requirements.txt
|
||||||
|
popd
|
||||||
|
}
|
||||||
|
|
||||||
# compile the RaSCSI binaries
|
# compile the RaSCSI binaries
|
||||||
function compileRaScsi() {
|
function compileRaScsi() {
|
||||||
cd "$BASE/src/raspberrypi" || exit 1
|
cd "$BASE/src/raspberrypi" || exit 1
|
||||||
|
@ -1060,6 +1069,7 @@ function runChoice() {
|
||||||
echo "Detected rascsi control board service; will run the installation steps for the control board ui."
|
echo "Detected rascsi control board service; will run the installation steps for the control board ui."
|
||||||
installRaScsiCtrlBoard
|
installRaScsiCtrlBoard
|
||||||
fi
|
fi
|
||||||
|
cachePipPackages
|
||||||
installRaScsiWebInterface
|
installRaScsiWebInterface
|
||||||
installWebInterfaceService
|
installWebInterfaceService
|
||||||
showRaScsiScreenStatus
|
showRaScsiScreenStatus
|
||||||
|
@ -1190,6 +1200,7 @@ function runChoice() {
|
||||||
createCfgDir
|
createCfgDir
|
||||||
installPackages
|
installPackages
|
||||||
preparePythonCommon
|
preparePythonCommon
|
||||||
|
cachePipPackages
|
||||||
installRaScsiWebInterface
|
installRaScsiWebInterface
|
||||||
echo "Configuring RaSCSI Web Interface stand-alone - Complete!"
|
echo "Configuring RaSCSI Web Interface stand-alone - Complete!"
|
||||||
echo "Launch the Web Interface with the 'start.sh' script. To use a custom port for the web server: 'start.sh --web-port=8081"
|
echo "Launch the Web Interface with the 'start.sh' script. To use a custom port for the web server: 'start.sh --web-port=8081"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user