This repository was archived by the owner on Jun 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +6
-12
lines changed Expand file tree Collapse file tree 4 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 11name : Publish Docker Image
22on :
3- schedule :
4- # Once weekly on Fridays at noon
5- - cron : " 00 12 * * 5 "
3+ release :
4+ types :
5+ - published
66 workflow_dispatch :
77
88jobs :
5959 github_token : ${{ github.token }}
6060 workflow : " .github/workflows/import_packages.yml"
6161 workflow_conclusion : success
62- name : sqlite_vectordb_file
62+ name : sqlite_data
6363 name_is_regexp : true
6464 skip_unpack : false
6565 if_no_artifact_found : ignore
Original file line number Diff line number Diff line change 7979 name : sqlite_vectordb_file
8080 path : /tmp/sqlite_data/vectordb.db
8181 retention-days : 90
82-
Original file line number Diff line number Diff line change @@ -64,11 +64,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
6464# Create a non-root user
6565RUN useradd -m -u 1000 -r codegate
6666
67- # Copy backup if needed
68- RUN mkdir -p /tmp/weaviate_backup
69- # will not fail if the file does not exist
70- COPY weaviate_backu[p] /tmp/weaviate_backup
71- RUN chown -R codegate /tmp/weaviate_backup
7267
7368# Set permissions for user codegate to run nginx
7469RUN chown -R codegate /var/lib/nginx && \
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# those are hardcoded on the image, will not change
4- BACKUP_PATH=" /tmp/weaviate_backup"
54BACKUP_NAME=" backup"
65MODEL_BASE_PATH=" /app/codegate_volume/models"
76CODEGATE_DB_FILE=" /app/codegate_volume/db/codegate.db"
7+ CODEGATE_VEC_DB_FILE=" /app/sqlite_data/vectordb.db"
88CODEGATE_CERTS=" /app/codegate_volume/certs"
99
1010# Function to restore backup if paths are provided
@@ -37,7 +37,7 @@ start_application() {
3737 # first restore the models
3838 mkdir -p /app/codegate_volume/models
3939 cp /app/default_models/* /app/codegate_volume/models
40- CMD_ARGS=" --port 8989 --host 0.0.0.0 --model-base-path $MODEL_BASE_PATH --db-path $CODEGATE_DB_FILE "
40+ CMD_ARGS=" --port 8989 --host 0.0.0.0 --model-base-path $MODEL_BASE_PATH --db-path $CODEGATE_DB_FILE --vec-db-path $CODEGATE_VEC_DB_FILE "
4141
4242 # Check and append additional URLs if they are set
4343 [ -n " $CODEGATE_OPENAI_URL " ] && CMD_ARGS+=" --openai-url $CODEGATE_OPENAI_URL "
You can’t perform that action at this time.
0 commit comments