The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Save database build to reusable workspace
yuneng-jiang5ccc1a762cf3
diff --git a/.circleci/config.yml b/.circleci/config.ymlindex d98fdaa4a4d..2f19ad19f06 100644--- a/.circleci/config.yml+++ b/.circleci/config.yml@@ -3421,64 +3421,61 @@ jobs:--coverage.reporter=html \--coverage.reportsDirectory=coverage/html- e2e_ui_testing:+ build_docker_database_image:machine:image: ubuntu-2204:2023.10.1resource_class: xlargeworking_directory: ~/projectsteps:- checkout- - setup_google_dns- - attach_workspace:- at: ~/project+- run:- name: Upgrade Docker to v24.x (API 1.44+)+ name: Upgrade Dockercommand: |curl -fsSL https://get.docker.com | sh- sudo usermod -aG docker $USERdocker version+- run:- name: Install Python 3.9+ name: Build Docker imagecommand: |- curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh --output miniconda.sh- bash miniconda.sh -b -p $HOME/miniconda- export PATH="$HOME/miniconda/bin:$PATH"- conda init bash- source ~/.bashrc- conda create -n myenv python=3.9 -y- conda activate myenv- python --version+ docker build \+ -t litellm-docker-database:ci \+ -f docker/Dockerfile.database .++ - run:+ name: Save Docker image to workspace+ command: |+ mkdir -p workspace+ docker save litellm-docker-database:ci | gzip > workspace/litellm-docker-database.tar.gz++ - persist_to_workspace:+ root: .+ paths:+ - litellm-docker-database.tar.gz++ e2e_ui_testing:+ machine:+ image: ubuntu-2204:2023.10.1+ resource_class: xlarge+ working_directory: ~/project+ steps:+ - checkout+ - setup_google_dns+ - attach_workspace:+ at: ~/project+ - run:+ name: Load Docker image+ command: |+ gunzip -c litellm-docker-database.tar.gz | docker load+ docker images | grep litellm-docker-database- run:name: Install Dependenciescommand: |npm install -D @playwright/test- npm install @google-cloud/vertexai- pip install "pytest==7.3.1"- pip install "pytest-retry==1.6.3"- pip install "pytest-asyncio==0.21.1"- pip install aiohttp- pip install "openai==1.100.1"- python -m pip install --upgrade pip- pip install "pydantic==2.10.2"- pip install "pytest==7.3.1"- pip install "pytest-mock==3.12.0"- pip install "pytest-asyncio==0.21.1"- pip install "mypy==1.18.2"- pip install pyarrow- pip install numpydoc- pip install prisma- pip install fastapi- pip install jsonschema- pip install "httpx==0.24.1"- pip install "anyio==3.7.1"- pip install "asyncio==3.4.3"- run:name: Install Playwright Browserscommand: |npx playwright install- - run:- name: Build Docker image- command: docker build -t my-app:latest -f ./docker/Dockerfile.database .- run:name: Run Docker containercommand: |@@ -3490,9 +3487,9 @@ jobs:-e UI_USERNAME="admin" \-e UI_PASSWORD="gm" \-e LITELLM_LICENSE=$LITELLM_LICENSE \- --name my-app \+ --name litellm-docker-database \-v $(pwd)/litellm/proxy/example_config_yaml/simple_config.yaml:/app/config.yaml \- my-app:latest \+ litellm-docker-database:latest \--config /app/config.yaml \--port 4000 \--detailed_debug@@ -3506,7 +3503,7 @@ jobs:sudo rm dockerize-linux-amd64-v0.6.1.tar.gz- run:name: Start outputting logs- command: docker logs -f my-app+ command: docker logs -f litellm-docker-databasebackground: true- run:name: Wait for app to be ready@@ -3710,6 +3707,7 @@ workflows:- e2e_ui_testing:requires:- ui_build+ - build_docker_database_imagefilters:branches:only: