forked from onyx-dot-app/onyx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from stackhpc/sd109-sync
Initial sync of downstream development work into StackHPC fork
- Loading branch information
Showing
15 changed files
with
250 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Publish Danswer Helm Chart | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions | ||
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Install Helm | ||
uses: azure/setup-helm@v4 | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- name: Build Helm dependencies | ||
run: | | ||
helm repo add bitnami https://charts.bitnami.com/bitnami | ||
helm repo add vespa https://unoplat.github.io/vespa-helm-charts | ||
helm dependency build deployment/helm | ||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
with: | ||
charts_dir: deployment | ||
pages_branch: helm-publish | ||
mark_as_latest: ${{ github.ref_name == 'main' }} | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
CR_RELEASE_NAME_TEMPLATE: "danswer-helm-{{ .Version }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ FROM python:3.11.7-slim-bookworm | |
|
||
LABEL com.danswer.maintainer="[email protected]" | ||
LABEL com.danswer.description="This image is the web/frontend container of Danswer which \ | ||
contains code for both the Community and Enterprise editions of Danswer. If you do not \ | ||
have a contract or agreement with DanswerAI, you are not permitted to use the Enterprise \ | ||
Edition features outside of personal development or testing purposes. Please reach out to \ | ||
[email protected] for more information. Please visit https://github.com/danswer-ai/danswer" | ||
contains code for both the Community and Enterprise editions of Danswer. If you do not \ | ||
have a contract or agreement with DanswerAI, you are not permitted to use the Enterprise \ | ||
Edition features outside of personal development or testing purposes. Please reach out to \ | ||
[email protected] for more information. Please visit https://github.com/danswer-ai/danswer" | ||
|
||
# Default DANSWER_VERSION, typically overriden during builds by GitHub Actions. | ||
ARG DANSWER_VERSION=0.3-dev | ||
|
@@ -20,18 +20,18 @@ RUN echo "DANSWER_VERSION: ${DANSWER_VERSION}" | |
# ca-certificates for HTTPS | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
cmake \ | ||
curl \ | ||
zip \ | ||
ca-certificates \ | ||
libgnutls30=3.7.9-2+deb12u3 \ | ||
libblkid1=2.38.1-5+deb12u1 \ | ||
libmount1=2.38.1-5+deb12u1 \ | ||
libsmartcols1=2.38.1-5+deb12u1 \ | ||
libuuid1=2.38.1-5+deb12u1 \ | ||
libxmlsec1-dev \ | ||
pkg-config \ | ||
gcc && \ | ||
cmake \ | ||
curl \ | ||
zip \ | ||
ca-certificates \ | ||
libgnutls30=3.7.9-2+deb12u3 \ | ||
libblkid1=2.38.1-5+deb12u1 \ | ||
libmount1=2.38.1-5+deb12u1 \ | ||
libsmartcols1=2.38.1-5+deb12u1 \ | ||
libuuid1=2.38.1-5+deb12u1 \ | ||
libxmlsec1-dev \ | ||
pkg-config \ | ||
gcc && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
apt-get clean | ||
|
||
|
@@ -40,8 +40,8 @@ RUN apt-get update && \ | |
COPY ./requirements/default.txt /tmp/requirements.txt | ||
COPY ./requirements/ee.txt /tmp/ee-requirements.txt | ||
RUN pip install --no-cache-dir --upgrade \ | ||
-r /tmp/requirements.txt \ | ||
-r /tmp/ee-requirements.txt && \ | ||
-r /tmp/requirements.txt \ | ||
-r /tmp/ee-requirements.txt && \ | ||
pip uninstall -y py && \ | ||
playwright install chromium && \ | ||
playwright install-deps chromium && \ | ||
|
@@ -54,14 +54,14 @@ RUN pip install --no-cache-dir --upgrade \ | |
# perl-base could only be removed with --allow-remove-essential | ||
RUN apt-get update && \ | ||
apt-get remove -y --allow-remove-essential \ | ||
perl-base \ | ||
xserver-common \ | ||
xvfb \ | ||
cmake \ | ||
libldap-2.5-0 \ | ||
libxmlsec1-dev \ | ||
pkg-config \ | ||
gcc && \ | ||
perl-base \ | ||
xserver-common \ | ||
xvfb \ | ||
cmake \ | ||
libldap-2.5-0 \ | ||
libxmlsec1-dev \ | ||
pkg-config \ | ||
gcc && \ | ||
apt-get install -y libxmlsec1-openssl && \ | ||
apt-get autoremove -y && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
|
@@ -74,9 +74,9 @@ Tokenizer.from_pretrained('nomic-ai/nomic-embed-text-v1')" | |
|
||
# Pre-downloading NLTK for setups with limited egress | ||
RUN python -c "import nltk; \ | ||
nltk.download('stopwords', quiet=True); \ | ||
nltk.download('wordnet', quiet=True); \ | ||
nltk.download('punkt', quiet=True);" | ||
nltk.download('stopwords', quiet=True); \ | ||
nltk.download('wordnet', quiet=True); \ | ||
nltk.download('punkt', quiet=True);" | ||
|
||
# Set up application files | ||
WORKDIR /app | ||
|
@@ -98,6 +98,9 @@ COPY ./scripts/force_delete_connector_by_id.py /app/scripts/force_delete_connect | |
# Put logo in assets | ||
COPY ./assets /app/assets | ||
|
||
# Include the license in the modified image | ||
COPY . ../LICENSE | ||
|
||
ENV PYTHONPATH /app | ||
|
||
# Default command which does nothing | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.