Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!docker/
!docker/python.Dockerfile
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ You can set up your local environment natively or using `docker`, check out the

Example of running all the checks with docker:
```bash
docker-compose run --rm package bash -c "uv run mypy meilisearch && uv run ruff check && uv run ruff format --check && uv run pytest tests"
docker compose run --rm package bash -c "uv sync && uv run mypy meilisearch && uv run ruff check && uv run ruff format --check && uv run pytest tests"
```

To install dependencies:
Expand Down
17 changes: 12 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
services:
package:
build: .
build:
context: .
dockerfile: docker/python.Dockerfile
image: meilisearch-python-dev
tty: true
stdin_open: true
working_dir: /home/package
environment:
- MEILISEARCH_URL=http://meilisearch:7700
depends_on:
- meilisearch
links:
- meilisearch
volumes:
- ./:/home/package
# Hide the host virtualenv. Native wheels stay in this volume.
- package_venv:/home/package/.venv

meilisearch:
image: getmeili/meilisearch-enterprise:latest
image: getmeili/meilisearch-enterprise:v1.55
ports:
- "7700"
- "7700:7700"
Comment thread
Strift marked this conversation as resolved.
environment:
- MEILI_MASTER_KEY=masterKey
- MEILI_NO_ANALYTICS=true
- MEILI_EXPERIMENTAL_ALLOWED_IP_NETWORKS=any

volumes:
package_venv:
6 changes: 1 addition & 5 deletions Dockerfile → docker/python.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@ COPY --from=ghcr.io/astral-sh/uv:0.11.19 /uv /uvx /bin/

WORKDIR /home/package

COPY pyproject.toml .
COPY uv.lock .

# Install dependencies
RUN uv sync --frozen --no-install-project
CMD ["bash"]
Loading