1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:50 +02:00
This commit is contained in:
kev 2020-01-22 13:49:26 +08:00
parent 0b8e609ba8
commit a15ba11b48
3 changed files with 50 additions and 0 deletions

View File

@ -283,6 +283,9 @@ A collection of delicious docker recipes.
- [x] confluentinc/cp-kafka-mqtt
- [x] confluentinc/cp-kafka-rest
- [x] streamsets/datacollector
- [x] daskdev
- [x] dask
- [x] dask-notebook
- [x] cachethq/docker
- [x] snowzach/doods
- [x] drone/drone

14
dask/README.md Normal file
View File

@ -0,0 +1,14 @@
dask
====
[Dask][1] is a flexible library for parallel computing in Python.
```bash
$ mkdir -p data/{jupyter,work}
$ chown -R 1000:100 data
$ docker-compose up -d
$ docker-compose logs -f notebook
$ curl http://127.0.0.1:8888
```
[1]: https://docs.dask.org/en/latest/

33
dask/docker-compose.yml Normal file
View File

@ -0,0 +1,33 @@
version: "3.7"
services:
scheduler:
image: daskdev/dask
command: ["dask-scheduler"]
ports:
- "8786:8786"
- "8787:8787"
restart: unless-stopped
worker:
image: daskdev/dask
command: ["dask-worker", "tcp://scheduler:8786"]
depends_on:
- scheduler
restart: unless-stopped
notebook:
image: daskdev/dask-notebook
ports:
- "8888:8888"
volumes:
- ./data/jupyter:/home/jovyan/.jupyter
- ./data/work:/home/jovyan/work
- /opt/conda/lib/python3.7/site-packages
environment:
- DASK_SCHEDULER_ADDRESS=tcp://scheduler:8786
- EXTRA_PIP_PACKAGES=dateparser parsel
depends_on:
- scheduler
restart: unless-stopped