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
(fix) clean up root repo - move entrypoint.sh and build_admin_ui to /docker (#6110)
Ishaan Jaffd1760b1b049d
diff --git a/.circleci/config.yml b/.circleci/config.ymlindex d34cca9e02f..27fca82362e 100644--- a/.circleci/config.yml+++ b/.circleci/config.yml@@ -69,11 +69,11 @@ jobs:- ./venvkey: v1-dependencies-{{ checksum ".circleci/requirements.txt" }}- run:- name: Run prisma ./entrypoint.sh+ name: Run prisma ./docker/entrypoint.shcommand: |set +e- chmod +x entrypoint.sh- ./entrypoint.sh+ chmod +x docker/entrypoint.sh+ ./docker/entrypoint.shset -e- run:name: Black Formatting@@ -128,11 +128,11 @@ jobs:- ./venvkey: v1-dependencies-{{ checksum ".circleci/requirements.txt" }}- run:- name: Run prisma ./entrypoint.sh+ name: Run prisma ./docker/entrypoint.shcommand: |set +e- chmod +x entrypoint.sh- ./entrypoint.sh+ chmod +x docker/entrypoint.sh+ ./docker/entrypoint.shset -e# Run pytest and generate JUnit XML report- run:diff --git a/Dockerfile b/Dockerfileindex 58dcfa9ac9d..a6127dd4e5d 100644--- a/Dockerfile+++ b/Dockerfile@@ -21,7 +21,7 @@ RUN pip install --upgrade pip && \COPY . .# Build Admin UI-RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh+RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh# Build the packageRUN rm -rf dist/* && python -m build@@ -44,7 +44,7 @@ RUN pip uninstall PyJWT -yRUN pip install PyJWT==2.9.0 --no-cache-dir# Build Admin UI-RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh+RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh# Runtime stageFROM $LITELLM_RUNTIME_IMAGE AS runtime@@ -66,7 +66,7 @@ RUN pip install *.whl /wheels/* --no-index --find-links=/wheels/ && rm -f *.whl# Generate prisma clientRUN prisma generate-RUN chmod +x entrypoint.sh+RUN chmod +x docker/entrypoint.shEXPOSE 4000/tcpdiff --git a/deploy/Dockerfile.ghcr_base b/deploy/Dockerfile.ghcr_baseindex 691f08272a2..dbfe0a5a206 100644--- a/deploy/Dockerfile.ghcr_base+++ b/deploy/Dockerfile.ghcr_base@@ -7,8 +7,8 @@ WORKDIR /app# Copy the configuration file into the container at /appCOPY config.yaml .-# Make sure your entrypoint.sh is executable-RUN chmod +x entrypoint.sh+# Make sure your docker/entrypoint.sh is executable+RUN chmod +x docker/entrypoint.sh# Expose the necessary portEXPOSE 4000/tcpdiff --git a/docker/Dockerfile.custom_ui b/docker/Dockerfile.custom_uiindex 1bd28f650ba..7dee3c1f16a 100644--- a/docker/Dockerfile.custom_ui+++ b/docker/Dockerfile.custom_ui@@ -31,8 +31,8 @@ RUN rm -rf /app/litellm/proxy/_experimental/out/* && \# Switch back to the main app directoryWORKDIR /app-# Make sure your entrypoint.sh is executable-RUN chmod +x entrypoint.sh+# Make sure your docker/entrypoint.sh is executable+RUN chmod +x docker/entrypoint.sh# Expose the necessary portEXPOSE 4000/tcpdiff --git a/docker/Dockerfile.database b/docker/Dockerfile.databaseindex ecfa16e72a1..733a6f70aed 100644--- a/docker/Dockerfile.database+++ b/docker/Dockerfile.database@@ -21,7 +21,7 @@ RUN pip install --upgrade pip && \COPY . .# Build Admin UI-RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh+RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh# Build the packageRUN rm -rf dist/* && python -m build@@ -62,11 +62,11 @@ RUN pip uninstall PyJWT -yRUN pip install PyJWT==2.9.0 --no-cache-dir# Build Admin UI-RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh+RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh# Generate prisma clientRUN prisma generate-RUN chmod +x entrypoint.sh+RUN chmod +x docker/entrypoint.shEXPOSE 4000/tcpdiff --git a/docker/Dockerfile.non_root b/docker/Dockerfile.non_rootindex c3aba4b6534..d31c9e1b7e8 100644--- a/docker/Dockerfile.non_root+++ b/docker/Dockerfile.non_root@@ -21,7 +21,7 @@ RUN pip install --upgrade pip && \COPY . .# Build Admin UI-RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh+RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh# Build the packageRUN rm -rf dist/* && python -m build@@ -62,7 +62,7 @@ RUN pip uninstall PyJWT -yRUN pip install PyJWT==2.9.0 --no-cache-dir# Build Admin UI-RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh+RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh# Generate prisma clientENV PRISMA_BINARY_CACHE_DIR=/app/prisma@@ -71,7 +71,7 @@ RUN chmod -R 777 /.cacheRUN pip install nodejs-binRUN pip install prismaRUN prisma generate-RUN chmod +x entrypoint.sh+RUN chmod +x docker/entrypoint.shEXPOSE 4000/tcpdiff --git a/build_admin_ui.sh b/docker/build_admin_ui.shsimilarity index 100%rename from build_admin_ui.shrename to docker/build_admin_ui.shdiff --git a/entrypoint.sh b/docker/entrypoint.shsimilarity index 100%rename from entrypoint.shrename to docker/entrypoint.shdiff --git a/docs/my-website/docs/proxy/deploy.md b/docs/my-website/docs/proxy/deploy.mdindex 7389ba02280..659806a2d13 100644--- a/docs/my-website/docs/proxy/deploy.md+++ b/docs/my-website/docs/proxy/deploy.md@@ -124,7 +124,7 @@ WORKDIR /app# Copy the configuration file into the container at /appCOPY config.yaml .-# Make sure your entrypoint.sh is executable+# Make sure your docker/entrypoint.sh is executableRUN chmod +x entrypoint.sh# Expose the necessary portdiff --git a/tests/test_entrypoint.py b/tests/test_entrypoint.pyindex 8a6708545ec..3ac20ea3ab2 100644--- a/tests/test_entrypoint.py+++ b/tests/test_entrypoint.py@@ -1,5 +1,5 @@# What is this?-## Unit tests for 'entrypoint.sh'+## Unit tests for 'docker/entrypoint.sh'import pytestimport sys@@ -35,7 +35,7 @@ def test_entrypoint_decrypt_and_reset():os.environ["DATABASE_URL"] = ("aws_kms/AQICAHgwddjZ9xjVaZ9CNCG8smFU6FiQvfdrjL12DIqi9vUAQwHwF6U7caMgHQa6tK+TzaoMAAAAzjCBywYJKoZIhvcNAQcGoIG9MIG6AgEAMIG0BgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDCmu+DVeKTm5tFZu6AIBEICBhnOFQYviL8JsciGk0bZsn9pfzeYWtNkVXEsl01AdgHBqT9UOZOI4ZC+T3wO/fXA7wdNF4o8ASPDbVZ34ZFdBs8xt4LKp9niufL30WYBkuuzz89ztly0jvE9pZ8L6BMw0ATTaMgIweVtVSDCeCzEb5PUPyxt4QayrlYHBGrNH5Aq/axFTe0La")- command = "./entrypoint.sh"+ command = "./docker/entrypoint.sh"directory = ".." # Relative to the current directory# Run the command using subprocess