Skip to content

Commit

Permalink
Bump mlflow version to 2.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
burakince committed Dec 13, 2024
1 parent a8b7d06 commit f6bd7e8
Show file tree
Hide file tree
Showing 19 changed files with 2,138 additions and 3,262 deletions.
16 changes: 14 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
interval: "daily"
reviewers:
- "burakince"
groups:
actions-deps:
patterns:
- "*"

- package-ecosystem: "pip"
directory: "/"
Expand All @@ -25,13 +29,21 @@ updates:
update-types: ["version-update:semver-major"]
reviewers:
- "burakince"
groups:
pip-deps:
patterns:
- "*"

- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
interval: "daily"
ignore:
- dependency-name: "python"
update-types: ["version-update:semver-minor"]
reviewers:
- "burakince"
groups:
docker-deps:
patterns:
- "*"
20 changes: 7 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,39 @@ exclude: "^$"
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: check-merge-conflict
- id: check-toml

- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear, flake8-typing-imports]

- repo: https://github.com/psf/black
rev: 22.3.0
rev: 24.10.0
hooks:
- id: black
language_version: python3
args: [--quiet, -l 100]

- repo: https://github.com/asottile/pyupgrade
rev: v2.32.0
rev: v3.19.0
hooks:
- id: pyupgrade

- repo: https://github.com/timothycrosley/isort
rev: 5.10.1
rev: 5.13.2
hooks:
- id: isort
additional_dependencies: [toml]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.2
hooks:
- id: prettier
exclude_types: [yaml]

- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
rev: 1.8.0
hooks:
# - id: bandit
# args: [-x, "*/.venv/*, */tests/*"]
Expand Down
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9.16 AS foundation
FROM python:3.13.1 AS foundation

LABEL maintainer="Burak Ince <[email protected]>"

Expand All @@ -22,7 +22,6 @@ RUN apt-get update && \
libsqlite3-dev \
wget \
curl \
llvm-9 \
libncursesw5-dev \
xz-utils \
tk-dev \
Expand All @@ -39,7 +38,7 @@ RUN python -m pip install --upgrade pip
RUN pip install poetry wheel && \
poetry install --no-root --no-dev

FROM python:3.9.16-slim
FROM python:3.13.1-slim

WORKDIR /mlflow/

Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,12 @@ Run following command
```
docker run -d -p 5000:5000 burakince/mlflow
```

## Development

Enabling Colima for testcontainers.

```bash
export TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE=/var/run/docker.sock
export DOCKER_HOST="unix://${HOME}/.colima/docker.sock"
```
4 changes: 2 additions & 2 deletions docker-compose.aws-mysql-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ services:
build:
context: .
dockerfile: Dockerfile
command: "mlflow server --backend-store-uri=mysql+pymysql://mlflow:password@mysql:3306/mlflow --default-artifact-root=s3://mlflow/ --host=0.0.0.0 --port=5000"
command: "mlflow server --backend-store-uri=mysql+pymysql://mlflow:password@mysql:3306/mlflow --default-artifact-root=s3://mlflow/ --host=0.0.0.0 --port=8080"
environment:
MLFLOW_S3_ENDPOINT_URL: http://minio:9000
AWS_ACCESS_KEY_ID: minioadmin
AWS_SECRET_ACCESS_KEY: minioadmin
ports:
- "5000:5000"
- "8080:8080"
networks:
- aws_mysql_test_nw
volumes:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.aws-postgres-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:
build:
context: .
dockerfile: Dockerfile
command: "mlflow server --backend-store-uri=postgresql:// --default-artifact-root=s3://mlflow/ --host=0.0.0.0 --port=5000"
command: "mlflow server --backend-store-uri=postgresql:// --default-artifact-root=s3://mlflow/ --host=0.0.0.0 --port=8080"
environment:
MLFLOW_S3_ENDPOINT_URL: http://minio:9000
AWS_ACCESS_KEY_ID: minioadmin
Expand All @@ -47,7 +47,7 @@ services:
PGUSER: postgres
PGPASSWORD: postgres
ports:
- "5000:5000"
- "8080:8080"
networks:
- aws_pg_test_nw
volumes:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.azure-mysql-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ services:
build:
context: .
dockerfile: Dockerfile
command: "mlflow server --backend-store-uri=mysql+pymysql://mlflow:password@mysql:3306/mlflow --default-artifact-root=wasbs://[email protected] --host=0.0.0.0 --port=5000"
command: "mlflow server --backend-store-uri=mysql+pymysql://mlflow:password@mysql:3306/mlflow --default-artifact-root=wasbs://[email protected] --host=0.0.0.0 --port=8080"
environment:
AZURE_STORAGE_CONNECTION_STRING: DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1;QueueEndpoint=http://azurite:10001/devstoreaccount1
ports:
- "5000:5000"
- "8080:8080"
networks:
- azure_mysql_test_nw
volumes:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.azure-postgres-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ services:
build:
context: .
dockerfile: Dockerfile
command: "mlflow server --backend-store-uri=postgresql:// --default-artifact-root=wasbs://[email protected] --host=0.0.0.0 --port=5000"
command: "mlflow server --backend-store-uri=postgresql:// --default-artifact-root=wasbs://[email protected] --host=0.0.0.0 --port=8080"
environment:
AZURE_STORAGE_CONNECTION_STRING: DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1;QueueEndpoint=http://azurite:10001/devstoreaccount1
PGHOST: postgres
Expand All @@ -49,7 +49,7 @@ services:
PGUSER: postgres
PGPASSWORD: postgres
ports:
- "5000:5000"
- "8080:8080"
networks:
- azure_pg_test_nw
volumes:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.gcp-mysql-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ services:
build:
context: .
dockerfile: Dockerfile
command: "mlflow server --backend-store-uri=mysql+pymysql://mlflow:password@mysql:3306/mlflow --default-artifact-root=gs://mlflow/ --host=0.0.0.0 --port=5000"
command: "mlflow server --backend-store-uri=mysql+pymysql://mlflow:password@mysql:3306/mlflow --default-artifact-root=gs://mlflow/ --host=0.0.0.0 --port=8080"
environment:
GOOGLE_CLOUD_PROJECT: mlflow
STORAGE_EMULATOR_HOST: http://gcs:4443
ports:
- "5000:5000"
- "8080:8080"
networks:
- gcp_mysql_test_nw
volumes:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.gcp-postgres-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:
build:
context: .
dockerfile: Dockerfile
command: "mlflow server --backend-store-uri=postgresql:// --default-artifact-root=gs://mlflow/ --host=0.0.0.0 --port=5000"
command: "mlflow server --backend-store-uri=postgresql:// --default-artifact-root=gs://mlflow/ --host=0.0.0.0 --port=8080"
environment:
GOOGLE_CLOUD_PROJECT: mlflow
STORAGE_EMULATOR_HOST: http://gcs:4443
Expand All @@ -41,7 +41,7 @@ services:
PGUSER: postgres
PGPASSWORD: postgres
ports:
- "5000:5000"
- "8080:8080"
networks:
- gcp_pg_test_nw
volumes:
Expand Down
Loading

0 comments on commit f6bd7e8

Please sign in to comment.