Resolve GUI Issues in Docker Build

- 17354aa Install `pyqt` system package in Docker image to get qt dependencies
- 5d3aeba Do not start GUI when Khoj started from Docker
- 26ff66f (Re-)Enable image search via Docker image as image search issues fixed

Resolves #76
This commit is contained in:
Debanjum
2022-09-08 07:55:06 +00:00
committed by GitHub
3 changed files with 7 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ LABEL org.opencontainers.image.source https://github.com/debanjum/khoj
# Install System Dependencies # Install System Dependencies
RUN apt-get update -y && \ RUN apt-get update -y && \
apt-get -y install libimage-exiftool-perl apt-get -y install libimage-exiftool-perl python3-pyqt5
# Copy Application to Container # Copy Application to Container
COPY . /app COPY . /app

View File

@@ -20,11 +20,11 @@ content-type:
compressed-jsonl: /data/embeddings/transactions.jsonl.gz compressed-jsonl: /data/embeddings/transactions.jsonl.gz
embeddings-file: /data/embeddings/transaction_embeddings.pt embeddings-file: /data/embeddings/transaction_embeddings.pt
# image: image:
# input-directories: ["/data/images/"] input-directories: ["/data/images/"]
# embeddings-file: "/data/embeddings/image_embeddings.pt" embeddings-file: "/data/embeddings/image_embeddings.pt"
# batch-size: 50 batch-size: 50
# use-xmp-metadata: true use-xmp-metadata: false
music: music:
input-files: ["/data/music/music.org"] input-files: ["/data/music/music.org"]

View File

@@ -26,4 +26,4 @@ services:
- ./tests/data/embeddings/:/data/embeddings/ - ./tests/data/embeddings/:/data/embeddings/
- ./tests/data/models/:/data/models/ - ./tests/data/models/:/data/models/
# Use 0.0.0.0 to explicitly set the host ip for the service on the container. https://pythonspeed.com/articles/docker-connection-refused/ # Use 0.0.0.0 to explicitly set the host ip for the service on the container. https://pythonspeed.com/articles/docker-connection-refused/
command: --host="0.0.0.0" --port=8000 -c=config/khoj_docker.yml -vv command: --no-gui --host="0.0.0.0" --port=8000 -c=config/khoj_docker.yml -vv