From b98343974f8f6a36ff8bdf42ced743abbce68bad Mon Sep 17 00:00:00 2001 From: jwillmartin Date: Tue, 5 Dec 2023 14:57:05 -0500 Subject: [PATCH] modified: localbuild.sh --- localbuild.sh | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/localbuild.sh b/localbuild.sh index 70c9533b6..4ad473965 100644 --- a/localbuild.sh +++ b/localbuild.sh @@ -3,30 +3,32 @@ directory=$(pwd) # install dependencies -$directory/scripts/install_dependencies.sh +sudo sed -i 's|http://archive.ubuntu.com|http://us.archive.ubuntu.com|g' /etc/apt/sources.list +sudo $directory/scripts/install_dependencies.sh # build out ext components cd $directory/ext/ -./build.sh +sudo ./build.sh cp $directory/container/wait-for-it.sh /usr/local/bin/ cp $directory/container/service.sh /usr/local/bin/ cd $directory/container/ -./database.sh -./library.sh -ldconfig +sudo ./database.sh +sudo ./library.sh +sudo ldconfig # build internal components cd $directory/src/ -./build.sh release -ldconfig -$directory/scripts/deployment_dependencies.sh +sudo ./build.sh release +sudo ldconfig +sudo $directory/scripts/deployment_dependencies.sh # package plugins -cd $directory/src/v2i-hub/ -./package_plugins.sh -$directory/container/setup.sh +sudo $directory/container/setup.sh # start -/usr/local/bin/service.sh \ No newline at end of file +echo 'export MYSQL_PASSWORD="ivp"' >> ~/.bashrc +echo 'export MYSQL_ROOT_PASSWORD="ivp"' >> ~/.bashrc +source ~/.bashrc +sudo /usr/local/bin/service.sh