-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
1,111 additions
and
198 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
dist | ||
build | ||
igneous.egg-info | ||
*.so | ||
.eggs | ||
*.pyc | ||
__pycache__ | ||
.cache | ||
test.py | ||
pipeline.py | ||
.pytest_cache |
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 |
---|---|---|
@@ -1,48 +1,32 @@ | ||
FROM python:3.4 | ||
MAINTAINER William Silversmith | ||
# This image contains private keys, make sure the image is not pushed to docker hub or any public repo. | ||
## INSTALL gsutil | ||
# Prepare the image. | ||
ENV DEBIAN_FRONTEND noninteractive | ||
RUN apt-get update && apt-get install -y -qq --no-install-recommends \ | ||
apt-utils \ | ||
curl \ | ||
git \ | ||
openssh-client \ | ||
python-openssl \ | ||
python \ | ||
python-pip \ | ||
python-dev \ | ||
# python-h5py \ | ||
python-numpy \ | ||
python-setuptools \ | ||
libboost-all-dev \ | ||
# libhdf5-dev \ | ||
liblzma-dev \ | ||
libgmp-dev \ | ||
# libmpfr-dev \ | ||
# libxml2-dev \ | ||
screen \ | ||
software-properties-common \ | ||
unzip \ | ||
vim \ | ||
wget \ | ||
zlib1g-dev \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip install setuptools Cython wheel numpy | ||
FROM python:3.6-slim | ||
LABEL maintainer="William Silversmith, Nico Kemnitz" | ||
|
||
# install neuroglancer | ||
RUN mkdir /.ssh | ||
ADD ./ /igneous | ||
RUN pip install -r /igneous/requirements.txt | ||
RUN pip install pyasn1 --upgrade | ||
RUN cd /igneous && pip install -e . | ||
RUN apt-get update \ | ||
# Build dependencies | ||
&& apt-get install -y -qq --no-install-recommends \ | ||
git \ | ||
libboost-dev \ | ||
build-essential \ | ||
# igneous + runtime dependencies | ||
&& cd igneous \ | ||
&& pip install --no-cache-dir -r requirements.txt \ | ||
&& pip install --no-cache-dir -e . \ | ||
\ | ||
# Cleanup build dependencies | ||
&& apt-get remove --purge -y \ | ||
libboost-dev \ | ||
build-essential \ | ||
&& apt-get autoremove --purge -y \ | ||
# Cleanup apt | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
# Cleanup temporary python files | ||
&& find /usr/local/lib/python3.6 -depth \ | ||
\( \ | ||
\( -type d -a \( -name __pycache__ \) \) \ | ||
-o \ | ||
\( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \ | ||
\) -exec rm -rf '{}' + | ||
|
||
CMD python /igneous/igneous/task_execution.py | ||
|
||
|
||
|
||
|
||
|
Oops, something went wrong.