Skip to content

Commit

Permalink
use pip to install poetry in own venv called sys
Browse files Browse the repository at this point in the history
  • Loading branch information
proquickly committed Dec 5, 2024
1 parent 16cda88 commit 93744fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,16 @@ resource "aws_instance" "py_server" {
#!/bin/bash
sudo apt-get update
sudo apt-get install -y python3 python3-pip git curl
curl -sSL https://install.python-poetry.org | python3 -
python3 -m venv /home/ubuntu/sys
/home/ubuntu/sys/bin/python3 -m pip install poetry
# Clone the GitHub repository
cd /home/ubuntu
git clone https://github.com/proquickly/tfgha.git
cd /home/ubuntu/tfgha
/home/ubuntu/.local/bin/poetry lock
/home/ubuntu/.local/bin/poetry install
/home/ubuntu/sys/bin/poetry lock
/home/ubuntu/sys/bin/poetry install
cd /home/ubuntu/tfgha/src/tfgha
nohup python3 app.py &
Expand Down

0 comments on commit 93744fb

Please sign in to comment.