From 8dd0185263330aa6cb4e223e9195caccf4dc4fd2 Mon Sep 17 00:00:00 2001 From: Robert Date: Mon, 21 Oct 2024 23:12:14 -0700 Subject: [PATCH] Fix for postgres dep that isn't needed. --- Dockerfile | 1 + Helper_Scripts/Dockerfiles/tldw-nvidia_amd64_Dockerfile | 8 +++++--- requirements.txt | 5 +++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 10b50c958..4ffccc126 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,6 +40,7 @@ RUN apt-get update && apt-get install -y \ portaudio19-dev \ python3-venv \ && rm -rf /var/lib/apt/lists/* +# libpq-dev is needed for psycopg2 - which is needed for Postgres # Set the working directory in the container WORKDIR /tldw diff --git a/Helper_Scripts/Dockerfiles/tldw-nvidia_amd64_Dockerfile b/Helper_Scripts/Dockerfiles/tldw-nvidia_amd64_Dockerfile index 6689b5003..bf8410bc3 100644 --- a/Helper_Scripts/Dockerfiles/tldw-nvidia_amd64_Dockerfile +++ b/Helper_Scripts/Dockerfiles/tldw-nvidia_amd64_Dockerfile @@ -1,10 +1,10 @@ # Usage -# docker build -t tldw-nvidia_amd64_Dockerfile . -# docker run --gpus=all -p 7860:7860 -v tldw_volume:/tldw tldw-nvidia_amd64_Dockerfile +# docker build -t tldw-nvidia_amd64 . +# docker run --gpus=all -p 7860:7860 -v tldw_volume:/tldw tldw-nvidia_amd64 # # If the above command doesn't work and it hangs on start, use the following command: # -# sudo docker run -it -p 7860:7860 -v tldw_volume:/tdlw nvidia_tldw bash +# sudo docker run -it -p 7860:7860 -v tldw_volume:/tdlw tldw-nvidia_amd64 bash # # Once in the container, run the following command: # @@ -31,12 +31,14 @@ RUN apt-get update && apt-get install -y \ build-essential \ git \ python3 \ + python3-dev \ python3-pyaudio \ portaudio19-dev \ python3-pip \ portaudio19-dev \ python3-venv \ && rm -rf /var/lib/apt/lists/* +# libpq-dev is needed for psycopg2 - which is needed for Postgres # Set the working directory in the container WORKDIR /tldw diff --git a/requirements.txt b/requirements.txt index 7880c405e..902567438 100644 --- a/requirements.txt +++ b/requirements.txt @@ -28,8 +28,9 @@ openai pandas Pillow playwright -psycopg2 -psycopg2-binary +# I'm not using postgres yet... +#psycopg2 +#psycopg2-binary psutil #psycopg2-binary pyannote.audio