File tree 4 files changed +6
-12
lines changed
4 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish Docker Image
2
2
on :
3
- schedule :
4
- # Once weekly on Fridays at noon
5
- - cron : " 00 12 * * 5 "
3
+ release :
4
+ types :
5
+ - published
6
6
workflow_dispatch :
7
7
8
8
jobs :
59
59
github_token : ${{ github.token }}
60
60
workflow : " .github/workflows/import_packages.yml"
61
61
workflow_conclusion : success
62
- name : sqlite_vectordb_file
62
+ name : sqlite_data
63
63
name_is_regexp : true
64
64
skip_unpack : false
65
65
if_no_artifact_found : ignore
Original file line number Diff line number Diff line change 79
79
name : sqlite_vectordb_file
80
80
path : /tmp/sqlite_data/vectordb.db
81
81
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 \
64
64
# Create a non-root user
65
65
RUN useradd -m -u 1000 -r codegate
66
66
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
72
67
73
68
# Set permissions for user codegate to run nginx
74
69
RUN chown -R codegate /var/lib/nginx && \
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# those are hardcoded on the image, will not change
4
- BACKUP_PATH=" /tmp/weaviate_backup"
5
4
BACKUP_NAME=" backup"
6
5
MODEL_BASE_PATH=" /app/codegate_volume/models"
7
6
CODEGATE_DB_FILE=" /app/codegate_volume/db/codegate.db"
7
+ CODEGATE_VEC_DB_FILE=" /app/sqlite_data/vectordb.db"
8
8
CODEGATE_CERTS=" /app/codegate_volume/certs"
9
9
10
10
# Function to restore backup if paths are provided
@@ -37,7 +37,7 @@ start_application() {
37
37
# first restore the models
38
38
mkdir -p /app/codegate_volume/models
39
39
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 "
41
41
42
42
# Check and append additional URLs if they are set
43
43
[ -n " $CODEGATE_OPENAI_URL " ] && CMD_ARGS+=" --openai-url $CODEGATE_OPENAI_URL "
You can’t perform that action at this time.
0 commit comments