-
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #156 from mrocklin/check-dask-master
Test against dask master
- Loading branch information
Showing
8 changed files
with
133 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: dask-kubernetes-test | ||
channels: | ||
- defaults | ||
- conda-forge | ||
dependencies: | ||
- python=3.7 | ||
- nomkl | ||
- pip | ||
# testing / CI | ||
- flake8 | ||
- ipywidgets | ||
- pytest | ||
- black | ||
- pyyaml | ||
# dask dependencies | ||
- cloudpickle | ||
- toolz | ||
- cytoolz | ||
- numpy | ||
- partd | ||
# distributed dependencies | ||
- click >=6.6 | ||
- msgpack-python | ||
- psutil >=5.0 | ||
- six | ||
- sortedcontainers !=2.0.0,!=2.0.1 | ||
- tblib | ||
- tornado >=5 | ||
- zict >=0.1.3 | ||
- pip: | ||
- kubernetes==9 | ||
- git+https://github.com/dask/dask | ||
- git+https://github.com/dask/distributed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM daskdev/dask:latest | ||
|
||
RUN conda uninstall -y --force dask-core distributed \ | ||
&& conda clean -afy | ||
RUN pip install --no-deps --no-cache-dir \ | ||
git+https://github.com/dask/dask \ | ||
git+https://github.com/dask/distributed | ||
|
||
ENTRYPOINT ["tini", "-g", "--", "/usr/bin/prepare.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
# We start by adding extra apt packages, since pip modules may required library | ||
if [ "$EXTRA_APT_PACKAGES" ]; then | ||
echo "EXTRA_APT_PACKAGES environment variable found. Installing." | ||
apt update -y | ||
apt install -y $EXTRA_APT_PACKAGES | ||
fi | ||
|
||
if [ -e "/opt/app/environment.yml" ]; then | ||
echo "environment.yml found. Installing packages" | ||
/opt/conda/bin/conda env update -f /opt/app/environment.yml | ||
else | ||
echo "no environment.yml" | ||
fi | ||
|
||
if [ "$EXTRA_CONDA_PACKAGES" ]; then | ||
echo "EXTRA_CONDA_PACKAGES environment variable found. Installing." | ||
/opt/conda/bin/conda install -y $EXTRA_CONDA_PACKAGES | ||
fi | ||
|
||
if [ "$EXTRA_PIP_PACKAGES" ]; then | ||
echo "EXTRA_PIP_PACKAGES environment variable found. Installing". | ||
/opt/conda/bin/pip install $EXTRA_PIP_PACKAGES | ||
fi | ||
|
||
# Run extra commands | ||
exec "$@" |