mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-28 09:08:50 +02:00
add dask
This commit is contained in:
parent
0b8e609ba8
commit
a15ba11b48
@ -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
14
dask/README.md
Normal 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
33
dask/docker-compose.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user