-
Install python 3.6.8
-
Install the dependencies
pip3 install -r requirements.txt
-
add
config.py
in the root folder of the project. -
To start the web server
uvicorn optimization_platform.deployment.server:app --reload
-
add
config.env
in the root folder of the project. -
docker-compose -f docker-compose-optim.yaml build
-
docker-compose -f docker-compose-optim.yaml up
docker-compose -f docker-compose-optim.yaml up --build --remove-orphans
The output should be
----------------------------------------------------------------------
Ran X tests in 0.001s
OK
bash initialize_rds.sh
ssh -i "binaize-optimize.pem" [email protected]
sudo apt update
sudo apt -y install docker.io
sudo apt -y install docker-compose
git clone https://github.com/binaize/binaize-optimize.git
cd binaize-optimize
git checkout development
scp -i "binaize-optimize.pem" ./optim-dev.env [email protected]:~/binaize-optimize/
cp binaize-optimize/optim-dev.env binaize-optimize/optim.env
ssh -i "binaize-optimize.pem" [email protected]
sudo apt update
sudo apt -y install docker.io
sudo apt -y install docker-compose
git clone https://github.com/binaize/binaize-optimize.git
cd binaize-optimize
git checkout staging
scp -i "binaize-optimize.pem" ./optim-staging.env [email protected]:~/binaize-optimize/
cp binaize-optimize/optim-staging.env binaize-optimize/optim.env
ssh -i "binaize-optimize.pem" [email protected]
sudo apt update
sudo apt -y install docker.io
sudo apt -y install docker-compose
git clone https://github.com/binaize/binaize-optimize.git
cd binaize-optimize
git checkout master
scp -i "binaize-optimize.pem" ./optim-prod.env [email protected]:~/binaize-optimize/
cp binaize-optimize/optim-prod.env binaize-optimize/optim.env
nohup sudo docker-compose -f docker-compose-optim.yaml up --build --remove-orphans >> ~/optim.out&
nohup sudo docker-compose -f docker-compose-optim.yaml restart optim-server optim-scheduler >> ~/optim.out&