Skip to content

Commit

Permalink
modified: localbuild.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillmartin committed Dec 5, 2023
1 parent f0f706f commit b983439
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions localbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
echo 'export MYSQL_PASSWORD="ivp"' >> ~/.bashrc
echo 'export MYSQL_ROOT_PASSWORD="ivp"' >> ~/.bashrc
source ~/.bashrc
sudo /usr/local/bin/service.sh

0 comments on commit b983439

Please sign in to comment.