From 93744fb66615abe782dd2dfb9a1df5306b34c6c7 Mon Sep 17 00:00:00 2001 From: Andy Miles Date: Thu, 5 Dec 2024 12:08:34 -0800 Subject: [PATCH] use pip to install poetry in own venv called sys --- terraform/main.tf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/terraform/main.tf b/terraform/main.tf index c7928ef..ab15e7c 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -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 &