mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-10-05 17:53:54 +02:00
Minor Docker Reference Updates
Minor Docker Reference Updates
This commit is contained in:
@@ -7,13 +7,13 @@ have a contract or agreement with DanswerAI, you are not permitted to use the En
|
|||||||
Edition features outside of personal development or testing purposes. Please reach out to \
|
Edition features outside of personal development or testing purposes. Please reach out to \
|
||||||
founders@onyx.app for more information. Please visit https://github.com/onyx-dot-app/onyx"
|
founders@onyx.app for more information. Please visit https://github.com/onyx-dot-app/onyx"
|
||||||
|
|
||||||
# Default DANSWER_VERSION, typically overriden during builds by GitHub Actions.
|
# Default ONYX_VERSION, typically overriden during builds by GitHub Actions.
|
||||||
ARG DANSWER_VERSION=0.8-dev
|
ARG ONYX_VERSION=0.8-dev
|
||||||
ENV DANSWER_VERSION=${DANSWER_VERSION} \
|
ENV ONYX_VERSION=${ONYX_VERSION} \
|
||||||
DANSWER_RUNNING_IN_DOCKER="true"
|
DANSWER_RUNNING_IN_DOCKER="true"
|
||||||
|
|
||||||
|
|
||||||
RUN echo "DANSWER_VERSION: ${DANSWER_VERSION}"
|
RUN echo "ONYX_VERSION: ${ONYX_VERSION}"
|
||||||
# Install system dependencies
|
# Install system dependencies
|
||||||
# cmake needed for psycopg (postgres)
|
# cmake needed for psycopg (postgres)
|
||||||
# libpq-dev needed for psycopg (postgres)
|
# libpq-dev needed for psycopg (postgres)
|
||||||
|
@@ -6,13 +6,13 @@ AI models for Onyx. This container and all the code is MIT Licensed and free for
|
|||||||
You can find it at https://hub.docker.com/r/onyx/onyx-model-server. For more details, \
|
You can find it at https://hub.docker.com/r/onyx/onyx-model-server. For more details, \
|
||||||
visit https://github.com/onyx-dot-app/onyx."
|
visit https://github.com/onyx-dot-app/onyx."
|
||||||
|
|
||||||
# Default DANSWER_VERSION, typically overriden during builds by GitHub Actions.
|
# Default ONYX_VERSION, typically overriden during builds by GitHub Actions.
|
||||||
ARG DANSWER_VERSION=0.8-dev
|
ARG ONYX_VERSION=0.8-dev
|
||||||
ENV DANSWER_VERSION=${DANSWER_VERSION} \
|
ENV ONYX_VERSION=${ONYX_VERSION} \
|
||||||
DANSWER_RUNNING_IN_DOCKER="true"
|
DANSWER_RUNNING_IN_DOCKER="true"
|
||||||
|
|
||||||
|
|
||||||
RUN echo "DANSWER_VERSION: ${DANSWER_VERSION}"
|
RUN echo "ONYX_VERSION: ${ONYX_VERSION}"
|
||||||
|
|
||||||
COPY ./requirements/model_server.txt /tmp/requirements.txt
|
COPY ./requirements/model_server.txt /tmp/requirements.txt
|
||||||
RUN pip install --no-cache-dir --upgrade \
|
RUN pip install --no-cache-dir --upgrade \
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
__version__ = os.environ.get("DANSWER_VERSION", "") or "Development"
|
__version__ = os.environ.get("ONYX_VERSION", "") or "Development"
|
||||||
|
@@ -30,7 +30,7 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: onyx-secrets
|
name: onyx-secrets
|
||||||
key: redis_password
|
key: redis_password
|
||||||
- name: DANSWER_VERSION
|
- name: ONYX_VERSION
|
||||||
value: "v0.11.0-cloud.beta.8"
|
value: "v0.11.0-cloud.beta.8"
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
|
@@ -33,7 +33,7 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: onyx-secrets
|
name: onyx-secrets
|
||||||
key: redis_password
|
key: redis_password
|
||||||
- name: DANSWER_VERSION
|
- name: ONYX_VERSION
|
||||||
value: "v0.11.0-cloud.beta.8"
|
value: "v0.11.0-cloud.beta.8"
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
|
@@ -35,7 +35,7 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: onyx-secrets
|
name: onyx-secrets
|
||||||
key: redis_password
|
key: redis_password
|
||||||
- name: DANSWER_VERSION
|
- name: ONYX_VERSION
|
||||||
value: "v0.11.0-cloud.beta.8"
|
value: "v0.11.0-cloud.beta.8"
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
|
@@ -35,7 +35,7 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: onyx-secrets
|
name: onyx-secrets
|
||||||
key: redis_password
|
key: redis_password
|
||||||
- name: DANSWER_VERSION
|
- name: ONYX_VERSION
|
||||||
value: "v0.11.0-cloud.beta.8"
|
value: "v0.11.0-cloud.beta.8"
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
|
@@ -35,7 +35,7 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: onyx-secrets
|
name: onyx-secrets
|
||||||
key: redis_password
|
key: redis_password
|
||||||
- name: DANSWER_VERSION
|
- name: ONYX_VERSION
|
||||||
value: "v0.11.0-cloud.beta.8"
|
value: "v0.11.0-cloud.beta.8"
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
|
@@ -7,10 +7,10 @@ have a contract or agreement with DanswerAI, you are not permitted to use the En
|
|||||||
Edition features outside of personal development or testing purposes. Please reach out to \
|
Edition features outside of personal development or testing purposes. Please reach out to \
|
||||||
founders@onyx.app for more information. Please visit https://github.com/onyx-dot-app/onyx"
|
founders@onyx.app for more information. Please visit https://github.com/onyx-dot-app/onyx"
|
||||||
|
|
||||||
# Default DANSWER_VERSION, typically overriden during builds by GitHub Actions.
|
# Default ONYX_VERSION, typically overriden during builds by GitHub Actions.
|
||||||
ARG DANSWER_VERSION=0.8-dev
|
ARG ONYX_VERSION=0.8-dev
|
||||||
ENV DANSWER_VERSION=${DANSWER_VERSION}
|
ENV ONYX_VERSION=${ONYX_VERSION}
|
||||||
RUN echo "DANSWER_VERSION: ${DANSWER_VERSION}"
|
RUN echo "ONYX_VERSION: ${ONYX_VERSION}"
|
||||||
|
|
||||||
# Step 1. Install dependencies + rebuild the source code only when needed
|
# Step 1. Install dependencies + rebuild the source code only when needed
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
// Get Onyx Web Version
|
// Get Onyx Web Version
|
||||||
const { version: package_version } = require("./package.json"); // version from package.json
|
const { version: package_version } = require("./package.json"); // version from package.json
|
||||||
const env_version = process.env.DANSWER_VERSION; // version from env variable
|
const env_version = process.env.ONYX_VERSION; // version from env variable
|
||||||
// Use env version if set & valid, otherwise default to package version
|
// Use env version if set & valid, otherwise default to package version
|
||||||
const version = env_version || package_version;
|
const version = env_version || package_version;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user