diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..57af0cdc --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,24 @@ +@Library("security_stages") _ + +pipeline { + agent any + stages { + stage('Setup') { // Install any dependencies you need to perform testing + steps { + script { + sh """ + python3 -m venv ./venv + . ./venv/bin/activate + pip install poetry + poetry install --extras "ui vector-stores-qdrant" --no-root + """ + } + } + } + stage ("Attempting security stages") { + steps { + shared() + } + } + } +} diff --git a/docker-compose.yaml b/docker-compose.yaml index f86d2380..05dfe5b3 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,13 +2,22 @@ services: private-gpt: build: dockerfile: Dockerfile.local + volumes: - - ./local_data/:/home/worker/app/local_data - - ./models/:/home/worker/app/models + - /srv/dev-disk-by-uuid-17681c56-e3a1-4eb9-95da-2196a64acca3/configs/privateGPT/local_data/conf:/home/worker/app/local_data + - /srv/dev-disk-by-uuid-17681c56-e3a1-4eb9-95da-2196a64acca3/configs/privateGPT/models/:/home/worker/app/models + networks: + - gpt-net ports: - - 8001:8080 + - 80:80 + restart: on-failure environment: - PORT: 8080 + PORT: 80 PGPT_PROFILES: docker PGPT_MODE: local +networks: + gpt-net: + name: macvlan0 + driver: macvlan + external: true