Skip to content

Commit 5c65a89

Browse files
committed
Add docker-compose python
1 parent 035e889 commit 5c65a89

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ You can set up your local environment natively or using `docker`, check out the
3232

3333
Example of running all the checks with docker:
3434
```bash
35-
docker-compose run --rm package bash -c "list of the commands required to build + run tests + run linters"
35+
docker-compose run --rm package bash -c "pip3 install pipenv && pipenv install --dev && pipenv run mypy meilisearch && pipenv run pylint meilisearch"
3636
```
3737

3838
To install dependencies:

docker-compose.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
version: "3.8"
22

3-
# remove this line if you don't need a volume to map your dependencies
4-
# volumes:
5-
# bundle:
6-
73
services:
84
package:
9-
image: language-name:version
5+
image: python:3.8.4-buster
106
tty: true
117
stdin_open: true
128
working_dir: /home/package
139
environment:
1410
- MEILISEARCH_HOST=http://meilisearch:7700
15-
- MEILISEARCH_PORT=7700
1611
depends_on:
1712
- meilisearch
1813
links:
1914
- meilisearch
2015
volumes:
21-
# - bundle:/vendor/bundle
2216
- ./:/home/package
2317

2418
meilisearch:

0 commit comments

Comments
 (0)