Skip to content

Commit d1760b1

Browse files
authored
(fix) clean up root repo - move entrypoint.sh and build_admin_ui to /docker (BerriAI#6110)
* fix move docker files to docker folders * move check file length * fix docker hub deploy * fix clean up root * fix circle ci config
1 parent cc960da commit d1760b1

File tree

10 files changed

+22
-22
lines changed

10 files changed

+22
-22
lines changed

.circleci/config.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ jobs:
6969
- ./venv
7070
key: v1-dependencies-{{ checksum ".circleci/requirements.txt" }}
7171
- run:
72-
name: Run prisma ./entrypoint.sh
72+
name: Run prisma ./docker/entrypoint.sh
7373
command: |
7474
set +e
75-
chmod +x entrypoint.sh
76-
./entrypoint.sh
75+
chmod +x docker/entrypoint.sh
76+
./docker/entrypoint.sh
7777
set -e
7878
- run:
7979
name: Black Formatting
@@ -128,11 +128,11 @@ jobs:
128128
- ./venv
129129
key: v1-dependencies-{{ checksum ".circleci/requirements.txt" }}
130130
- run:
131-
name: Run prisma ./entrypoint.sh
131+
name: Run prisma ./docker/entrypoint.sh
132132
command: |
133133
set +e
134-
chmod +x entrypoint.sh
135-
./entrypoint.sh
134+
chmod +x docker/entrypoint.sh
135+
./docker/entrypoint.sh
136136
set -e
137137
# Run pytest and generate JUnit XML report
138138
- run:

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN pip install --upgrade pip && \
2121
COPY . .
2222

2323
# Build Admin UI
24-
RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
24+
RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh
2525

2626
# Build the package
2727
RUN rm -rf dist/* && python -m build
@@ -44,7 +44,7 @@ RUN pip uninstall PyJWT -y
4444
RUN pip install PyJWT==2.9.0 --no-cache-dir
4545

4646
# Build Admin UI
47-
RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
47+
RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh
4848

4949
# Runtime stage
5050
FROM $LITELLM_RUNTIME_IMAGE AS runtime
@@ -66,7 +66,7 @@ RUN pip install *.whl /wheels/* --no-index --find-links=/wheels/ && rm -f *.whl
6666

6767
# Generate prisma client
6868
RUN prisma generate
69-
RUN chmod +x entrypoint.sh
69+
RUN chmod +x docker/entrypoint.sh
7070

7171
EXPOSE 4000/tcp
7272

deploy/Dockerfile.ghcr_base

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ WORKDIR /app
77
# Copy the configuration file into the container at /app
88
COPY config.yaml .
99

10-
# Make sure your entrypoint.sh is executable
11-
RUN chmod +x entrypoint.sh
10+
# Make sure your docker/entrypoint.sh is executable
11+
RUN chmod +x docker/entrypoint.sh
1212

1313
# Expose the necessary port
1414
EXPOSE 4000/tcp

docker/Dockerfile.custom_ui

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ RUN rm -rf /app/litellm/proxy/_experimental/out/* && \
3131
# Switch back to the main app directory
3232
WORKDIR /app
3333

34-
# Make sure your entrypoint.sh is executable
35-
RUN chmod +x entrypoint.sh
34+
# Make sure your docker/entrypoint.sh is executable
35+
RUN chmod +x docker/entrypoint.sh
3636

3737
# Expose the necessary port
3838
EXPOSE 4000/tcp

docker/Dockerfile.database

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN pip install --upgrade pip && \
2121
COPY . .
2222

2323
# Build Admin UI
24-
RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
24+
RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh
2525

2626
# Build the package
2727
RUN rm -rf dist/* && python -m build
@@ -62,11 +62,11 @@ RUN pip uninstall PyJWT -y
6262
RUN pip install PyJWT==2.9.0 --no-cache-dir
6363

6464
# Build Admin UI
65-
RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
65+
RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh
6666

6767
# Generate prisma client
6868
RUN prisma generate
69-
RUN chmod +x entrypoint.sh
69+
RUN chmod +x docker/entrypoint.sh
7070

7171
EXPOSE 4000/tcp
7272

docker/Dockerfile.non_root

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN pip install --upgrade pip && \
2121
COPY . .
2222

2323
# Build Admin UI
24-
RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
24+
RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh
2525

2626
# Build the package
2727
RUN rm -rf dist/* && python -m build
@@ -62,7 +62,7 @@ RUN pip uninstall PyJWT -y
6262
RUN pip install PyJWT==2.9.0 --no-cache-dir
6363

6464
# Build Admin UI
65-
RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
65+
RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh
6666

6767
# Generate prisma client
6868
ENV PRISMA_BINARY_CACHE_DIR=/app/prisma
@@ -71,7 +71,7 @@ RUN chmod -R 777 /.cache
7171
RUN pip install nodejs-bin
7272
RUN pip install prisma
7373
RUN prisma generate
74-
RUN chmod +x entrypoint.sh
74+
RUN chmod +x docker/entrypoint.sh
7575

7676
EXPOSE 4000/tcp
7777

File renamed without changes.
File renamed without changes.

docs/my-website/docs/proxy/deploy.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ WORKDIR /app
124124
# Copy the configuration file into the container at /app
125125
COPY config.yaml .
126126

127-
# Make sure your entrypoint.sh is executable
127+
# Make sure your docker/entrypoint.sh is executable
128128
RUN chmod +x entrypoint.sh
129129

130130
# Expose the necessary port

tests/test_entrypoint.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# What is this?
2-
## Unit tests for 'entrypoint.sh'
2+
## Unit tests for 'docker/entrypoint.sh'
33

44
import pytest
55
import sys
@@ -35,7 +35,7 @@ def test_entrypoint_decrypt_and_reset():
3535
os.environ["DATABASE_URL"] = (
3636
"aws_kms/AQICAHgwddjZ9xjVaZ9CNCG8smFU6FiQvfdrjL12DIqi9vUAQwHwF6U7caMgHQa6tK+TzaoMAAAAzjCBywYJKoZIhvcNAQcGoIG9MIG6AgEAMIG0BgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDCmu+DVeKTm5tFZu6AIBEICBhnOFQYviL8JsciGk0bZsn9pfzeYWtNkVXEsl01AdgHBqT9UOZOI4ZC+T3wO/fXA7wdNF4o8ASPDbVZ34ZFdBs8xt4LKp9niufL30WYBkuuzz89ztly0jvE9pZ8L6BMw0ATTaMgIweVtVSDCeCzEb5PUPyxt4QayrlYHBGrNH5Aq/axFTe0La"
3737
)
38-
command = "./entrypoint.sh"
38+
command = "./docker/entrypoint.sh"
3939
directory = ".." # Relative to the current directory
4040

4141
# Run the command using subprocess

0 commit comments

Comments
 (0)